VTK  9.0.2
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, double zMin, double zMax);
121 
123 
126  void SetExtent(double extent[6]);
127  double* GetExtent() VTK_SIZEHINT(6) { return this->Extent; }
129 
131 
136  vtkSetMacro(Merging, vtkTypeBool);
137  vtkGetMacro(Merging, vtkTypeBool);
138  vtkBooleanMacro(Merging, vtkTypeBool);
140 
142 
147  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
149 
154 
158  vtkMTimeType GetMTime() override;
159 
160 protected:
163 
165 
170  double Extent[6];
174 
177 
178 private:
180  void operator=(const vtkExtractUnstructuredGrid&) = delete;
181 };
182 
183 #endif
extract subset of unstructured grid geometry
static vtkExtractUnstructuredGrid * New()
Construct with all types of clipping turned off.
void SetExtent(double extent[6])
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
void SetExtent(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax)
Specify a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
vtkIncrementalPointLocator * Locator
void CreateDefaultLocator()
Create default locator.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMTimeType GetMTime() override
Return the MTime also considering the locator.
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only unstructured grid as output.
@ extent
Definition: vtkX3D.h:351
int vtkTypeBool
Definition: vtkABI.h:69
int vtkIdType
Definition: vtkType.h:338
#define VTK_ID_MAX
Definition: vtkType.h:342
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293
#define VTK_SIZEHINT(...)