VTK  9.3.20240419
vtkExtractUnstructuredGrid.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
30 #ifndef vtkExtractUnstructuredGrid_h
31 #define vtkExtractUnstructuredGrid_h
32 
33 #include "vtkFiltersExtractionModule.h" // For export macro
35 
36 VTK_ABI_NAMESPACE_BEGIN
38 
39 class VTKFILTERSEXTRACTION_EXPORT vtkExtractUnstructuredGrid : public vtkUnstructuredGridAlgorithm
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
49 
51 
54  vtkSetMacro(PointClipping, vtkTypeBool);
55  vtkGetMacro(PointClipping, vtkTypeBool);
56  vtkBooleanMacro(PointClipping, vtkTypeBool);
58 
60 
63  vtkSetMacro(CellClipping, vtkTypeBool);
64  vtkGetMacro(CellClipping, vtkTypeBool);
65  vtkBooleanMacro(CellClipping, vtkTypeBool);
67 
69 
72  vtkSetMacro(ExtentClipping, vtkTypeBool);
73  vtkGetMacro(ExtentClipping, vtkTypeBool);
74  vtkBooleanMacro(ExtentClipping, vtkTypeBool);
76 
78 
81  vtkSetClampMacro(PointMinimum, vtkIdType, 0, VTK_ID_MAX);
82  vtkGetMacro(PointMinimum, vtkIdType);
84 
86 
89  vtkSetClampMacro(PointMaximum, vtkIdType, 0, VTK_ID_MAX);
90  vtkGetMacro(PointMaximum, vtkIdType);
92 
94 
97  vtkSetClampMacro(CellMinimum, vtkIdType, 0, VTK_ID_MAX);
98  vtkGetMacro(CellMinimum, vtkIdType);
100 
102 
105  vtkSetClampMacro(CellMaximum, vtkIdType, 0, VTK_ID_MAX);
106  vtkGetMacro(CellMaximum, vtkIdType);
108 
112  void SetExtent(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax);
113 
115 
118  void SetExtent(double extent[6]);
119  double* GetExtent() VTK_SIZEHINT(6) { return this->Extent; }
121 
123 
128  vtkSetMacro(Merging, vtkTypeBool);
129  vtkGetMacro(Merging, vtkTypeBool);
130  vtkBooleanMacro(Merging, vtkTypeBool);
132 
134 
139  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
141 
146 
150  vtkMTimeType GetMTime() override;
151 
152 protected:
154  ~vtkExtractUnstructuredGrid() override = default;
155 
157 
162  double Extent[6];
166 
169 
170 private:
172  void operator=(const vtkExtractUnstructuredGrid&) = delete;
173 };
174 
175 VTK_ABI_NAMESPACE_END
176 #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.
double * GetExtent()
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
~vtkExtractUnstructuredGrid() override=default
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:108
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:345
int vtkTypeBool
Definition: vtkABI.h:64
int vtkIdType
Definition: vtkType.h:315
#define VTK_ID_MAX
Definition: vtkType.h:319
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
#define VTK_SIZEHINT(...)