VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkIdFilter.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00032 #ifndef __vtkIdFilter_h 00033 #define __vtkIdFilter_h 00034 00035 #include "vtkDataSetAlgorithm.h" 00036 00037 class VTK_GRAPHICS_EXPORT vtkIdFilter : public vtkDataSetAlgorithm 00038 { 00039 public: 00040 vtkTypeRevisionMacro(vtkIdFilter,vtkDataSetAlgorithm); 00041 void PrintSelf(ostream& os, vtkIndent indent); 00042 00045 static vtkIdFilter *New(); 00046 00048 00049 vtkSetMacro(PointIds,int); 00050 vtkGetMacro(PointIds,int); 00051 vtkBooleanMacro(PointIds,int); 00053 00055 00056 vtkSetMacro(CellIds,int); 00057 vtkGetMacro(CellIds,int); 00058 vtkBooleanMacro(CellIds,int); 00060 00062 00065 vtkSetMacro(FieldData,int); 00066 vtkGetMacro(FieldData,int); 00067 vtkBooleanMacro(FieldData,int); 00069 00071 00074 vtkSetStringMacro(IdsArrayName); 00075 vtkGetStringMacro(IdsArrayName); 00077 00078 protected: 00079 vtkIdFilter(); 00080 ~vtkIdFilter(); 00081 00082 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00083 00084 int PointIds; 00085 int CellIds; 00086 int FieldData; 00087 char *IdsArrayName; 00088 00089 private: 00090 vtkIdFilter(const vtkIdFilter&); // Not implemented. 00091 void operator=(const vtkIdFilter&); // Not implemented. 00092 }; 00093 00094 #endif 00095 00096