VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkExtractArray.h 00005 00006 ------------------------------------------------------------------------- 00007 Copyright 2008 Sandia Corporation. 00008 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00009 the U.S. Government retains certain rights in this software. 00010 ------------------------------------------------------------------------- 00011 00012 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00013 All rights reserved. 00014 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00015 00016 This software is distributed WITHOUT ANY WARRANTY; without even 00017 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00018 PURPOSE. See the above copyright notice for more information. 00019 00020 =========================================================================*/ 00021 00034 #ifndef __vtkExtractArray_h 00035 #define __vtkExtractArray_h 00036 00037 #include "vtkArrayDataAlgorithm.h" 00038 00039 class VTK_INFOVIS_EXPORT vtkExtractArray : public vtkArrayDataAlgorithm 00040 { 00041 public: 00042 static vtkExtractArray* New(); 00043 vtkTypeMacro(vtkExtractArray, vtkArrayDataAlgorithm); 00044 void PrintSelf(ostream& os, vtkIndent indent); 00045 00047 00048 vtkGetMacro(Index, vtkIdType); 00049 vtkSetMacro(Index, vtkIdType); 00051 00052 protected: 00053 vtkExtractArray(); 00054 ~vtkExtractArray(); 00055 00056 int FillInputPortInformation(int port, vtkInformation* info); 00057 00058 int RequestData( 00059 vtkInformation*, 00060 vtkInformationVector**, 00061 vtkInformationVector*); 00062 00063 private: 00064 vtkExtractArray(const vtkExtractArray&); // Not implemented 00065 void operator=(const vtkExtractArray&); // Not implemented 00066 00067 vtkIdType Index; 00068 }; 00069 00070 #endif 00071