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 "vtkFiltersGeneralModule.h" // For export macro 00038 #include "vtkArrayDataAlgorithm.h" 00039 00040 class VTKFILTERSGENERAL_EXPORT vtkExtractArray : public vtkArrayDataAlgorithm 00041 { 00042 public: 00043 static vtkExtractArray* New(); 00044 vtkTypeMacro(vtkExtractArray, vtkArrayDataAlgorithm); 00045 void PrintSelf(ostream& os, vtkIndent indent); 00046 00048 00049 vtkGetMacro(Index, vtkIdType); 00050 vtkSetMacro(Index, vtkIdType); 00052 00053 protected: 00054 vtkExtractArray(); 00055 ~vtkExtractArray(); 00056 00057 int FillInputPortInformation(int port, vtkInformation* info); 00058 00059 int RequestData( 00060 vtkInformation*, 00061 vtkInformationVector**, 00062 vtkInformationVector*); 00063 00064 private: 00065 vtkExtractArray(const vtkExtractArray&); // Not implemented 00066 void operator=(const vtkExtractArray&); // Not implemented 00067 00068 vtkIdType Index; 00069 }; 00070 00071 #endif 00072