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) override;
52 
57 
59 
62  vtkSetMacro(PointClipping,vtkTypeBool);
63  vtkGetMacro(PointClipping,vtkTypeBool);
64  vtkBooleanMacro(PointClipping,vtkTypeBool);
66 
68 
71  vtkSetMacro(CellClipping,vtkTypeBool);
72  vtkGetMacro(CellClipping,vtkTypeBool);
73  vtkBooleanMacro(CellClipping,vtkTypeBool);
75 
77 
80  vtkSetMacro(ExtentClipping,vtkTypeBool);
81  vtkGetMacro(ExtentClipping,vtkTypeBool);
82  vtkBooleanMacro(ExtentClipping,vtkTypeBool);
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() VTK_SIZEHINT(6) { return this->Extent;};
130 
132 
137  vtkSetMacro(Merging,vtkTypeBool);
138  vtkGetMacro(Merging,vtkTypeBool);
139  vtkBooleanMacro(Merging,vtkTypeBool);
141 
143 
147  void SetLocator(vtkIncrementalPointLocator *locator);
148  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
150 
154  void CreateDefaultLocator();
155 
159  vtkMTimeType GetMTime() override;
160 
161 protected:
164 
166 
171  double Extent[6];
175 
178 private:
180  void operator=(const vtkExtractUnstructuredGrid&) = delete;
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
int vtkTypeBool
Definition: vtkABI.h:69
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.
#define VTK_SIZEHINT(...)
Superclass for algorithms that produce only unstructured grid as output.
#define VTK_ID_MAX
Definition: vtkType.h:349
vtkIncrementalPointLocator * Locator
Store zero or more vtkInformation instances.
extract subset of unstructured grid geometry