vtkExtractUnstructuredGrid.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00056 #ifndef __vtkExtractUnstructuredGrid_h
00057 #define __vtkExtractUnstructuredGrid_h
00058
00059 #include "vtkUnstructuredGridToUnstructuredGridFilter.h"
00060
00061 class vtkPointLocator;
00062
00063 class VTK_GRAPHICS_EXPORT vtkExtractUnstructuredGrid : public vtkUnstructuredGridToUnstructuredGridFilter
00064 {
00065 public:
00066 vtkTypeRevisionMacro(vtkExtractUnstructuredGrid,vtkUnstructuredGridToUnstructuredGridFilter);
00067 void PrintSelf(ostream& os, vtkIndent indent);
00068
00070 static vtkExtractUnstructuredGrid *New();
00071
00073
00074 vtkSetMacro(PointClipping,int);
00075 vtkGetMacro(PointClipping,int);
00076 vtkBooleanMacro(PointClipping,int);
00078
00080
00081 vtkSetMacro(CellClipping,int);
00082 vtkGetMacro(CellClipping,int);
00083 vtkBooleanMacro(CellClipping,int);
00085
00087
00088 vtkSetMacro(ExtentClipping,int);
00089 vtkGetMacro(ExtentClipping,int);
00090 vtkBooleanMacro(ExtentClipping,int);
00092
00094
00095 vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_LARGE_ID);
00096 vtkGetMacro(PointMinimum,vtkIdType);
00098
00100
00101 vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_LARGE_ID);
00102 vtkGetMacro(PointMaximum,vtkIdType);
00104
00106
00107 vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_LARGE_ID);
00108 vtkGetMacro(CellMinimum,vtkIdType);
00110
00112
00113 vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_LARGE_ID);
00114 vtkGetMacro(CellMaximum,vtkIdType);
00116
00118
00120 void SetExtent(double xMin, double xMax, double yMin, double yMax,
00121 double zMin, double zMax);
00123
00125
00127 void SetExtent(double extent[6]);
00128 double *GetExtent() { return this->Extent;};
00130
00132
00135 vtkSetMacro(Merging,int);
00136 vtkGetMacro(Merging,int);
00137 vtkBooleanMacro(Merging,int);
00139
00141
00143 void SetLocator(vtkPointLocator *locator);
00144 vtkGetObjectMacro(Locator,vtkPointLocator);
00146
00148 void CreateDefaultLocator();
00149
00151 unsigned long GetMTime();
00152
00153 protected:
00154 vtkExtractUnstructuredGrid();
00155 ~vtkExtractUnstructuredGrid() {};
00156
00157 void Execute();
00158
00159 vtkIdType PointMinimum;
00160 vtkIdType PointMaximum;
00161 vtkIdType CellMinimum;
00162 vtkIdType CellMaximum;
00163 double Extent[6];
00164 int PointClipping;
00165 int CellClipping;
00166 int ExtentClipping;
00167
00168 int Merging;
00169 vtkPointLocator *Locator;
00170 private:
00171 vtkExtractUnstructuredGrid(const vtkExtractUnstructuredGrid&);
00172 void operator=(const vtkExtractUnstructuredGrid&);
00173 };
00174
00175 #endif
00176
00177