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 =========================================================================*/
45 #ifndef vtkExtractUnstructuredGrid_h
46 #define vtkExtractUnstructuredGrid_h
47 
48 #include "vtkFiltersExtractionModule.h" // For export macro
50 
52 
53 class VTKFILTERSEXTRACTION_EXPORT vtkExtractUnstructuredGrid : public vtkUnstructuredGridAlgorithm
54 {
55 public:
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
63 
65 
68  vtkSetMacro(PointClipping,vtkTypeBool);
69  vtkGetMacro(PointClipping,vtkTypeBool);
70  vtkBooleanMacro(PointClipping,vtkTypeBool);
72 
74 
77  vtkSetMacro(CellClipping,vtkTypeBool);
78  vtkGetMacro(CellClipping,vtkTypeBool);
79  vtkBooleanMacro(CellClipping,vtkTypeBool);
81 
83 
86  vtkSetMacro(ExtentClipping,vtkTypeBool);
87  vtkGetMacro(ExtentClipping,vtkTypeBool);
88  vtkBooleanMacro(ExtentClipping,vtkTypeBool);
90 
92 
95  vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_ID_MAX);
96  vtkGetMacro(PointMinimum,vtkIdType);
98 
100 
103  vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_ID_MAX);
104  vtkGetMacro(PointMaximum,vtkIdType);
106 
108 
111  vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_ID_MAX);
112  vtkGetMacro(CellMinimum,vtkIdType);
114 
116 
119  vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_ID_MAX);
120  vtkGetMacro(CellMaximum,vtkIdType);
122 
126  void SetExtent(double xMin, double xMax, double yMin, double yMax,
127  double zMin, double zMax);
128 
130 
133  void SetExtent(double extent[6]);
134  double *GetExtent() VTK_SIZEHINT(6) { return this->Extent;};
136 
138 
143  vtkSetMacro(Merging,vtkTypeBool);
144  vtkGetMacro(Merging,vtkTypeBool);
145  vtkBooleanMacro(Merging,vtkTypeBool);
147 
149 
153  void SetLocator(vtkIncrementalPointLocator *locator);
154  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
156 
160  void CreateDefaultLocator();
161 
165  vtkMTimeType GetMTime() override;
166 
167 protected:
170 
172 
177  double Extent[6];
181 
184 private:
186  void operator=(const vtkExtractUnstructuredGrid&) = delete;
187 };
188 
189 #endif
190 
191 
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:302
static vtkUnstructuredGridAlgorithm * New()
Abstract class in support of both point location and point insertion.
int vtkIdType
Definition: vtkType.h:347
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:39
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:351
vtkIncrementalPointLocator * Locator
Store zero or more vtkInformation instances.
extract subset of unstructured grid geometry