VTK
vtkExtractUnstructuredGrid.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractUnstructuredGrid.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
39 #ifndef vtkExtractUnstructuredGrid_h
40 #define vtkExtractUnstructuredGrid_h
41 
42 #include "vtkFiltersExtractionModule.h" // For export macro
44 
46 
47 class VTKFILTERSEXTRACTION_EXPORT vtkExtractUnstructuredGrid : public vtkUnstructuredGridAlgorithm
48 {
49 public:
51  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
52 
57 
59 
62  vtkSetMacro(PointClipping,int);
63  vtkGetMacro(PointClipping,int);
64  vtkBooleanMacro(PointClipping,int);
66 
68 
71  vtkSetMacro(CellClipping,int);
72  vtkGetMacro(CellClipping,int);
73  vtkBooleanMacro(CellClipping,int);
75 
77 
80  vtkSetMacro(ExtentClipping,int);
81  vtkGetMacro(ExtentClipping,int);
82  vtkBooleanMacro(ExtentClipping,int);
84 
86 
89  vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_ID_MAX);
90  vtkGetMacro(PointMinimum,vtkIdType);
92 
94 
97  vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_ID_MAX);
98  vtkGetMacro(PointMaximum,vtkIdType);
100 
102 
105  vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_ID_MAX);
106  vtkGetMacro(CellMinimum,vtkIdType);
108 
110 
113  vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_ID_MAX);
114  vtkGetMacro(CellMaximum,vtkIdType);
116 
120  void SetExtent(double xMin, double xMax, double yMin, double yMax,
121  double zMin, double zMax);
122 
124 
127  void SetExtent(double extent[6]);
128  double *GetExtent() { return this->Extent;};
130 
132 
137  vtkSetMacro(Merging,int);
138  vtkGetMacro(Merging,int);
139  vtkBooleanMacro(Merging,int);
141 
143 
147  void SetLocator(vtkIncrementalPointLocator *locator);
148  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
150 
154  void CreateDefaultLocator();
155 
159  vtkMTimeType GetMTime() VTK_OVERRIDE;
160 
161 protected:
164 
166 
171  double Extent[6];
175 
176  int Merging;
178 private:
179  vtkExtractUnstructuredGrid(const vtkExtractUnstructuredGrid&) VTK_DELETE_FUNCTION;
180  void operator=(const vtkExtractUnstructuredGrid&) VTK_DELETE_FUNCTION;
181 };
182 
183 #endif
184 
185 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
static vtkUnstructuredGridAlgorithm * New()
Abstract class in support of both point location and point insertion.
int vtkIdType
Definition: vtkType.h:345
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
double * GetExtent()
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
Superclass for algorithms that produce only unstructured grid as output.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
#define VTK_ID_MAX
Definition: vtkType.h:349
vtkIncrementalPointLocator * Locator
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
extract subset of unstructured grid geometry