VTK  9.3.0
vtkUnstructuredGridGeometryFilter.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
32#ifndef vtkUnstructuredGridGeometryFilter_h
33#define vtkUnstructuredGridGeometryFilter_h
34
35#include "vtkFiltersGeometryModule.h" // For export macro
37
38VTK_ABI_NAMESPACE_BEGIN
40class vtkHashTableOfSurfels; // internal class
41
42class VTKFILTERSGEOMETRY_EXPORT vtkUnstructuredGridGeometryFilter
44{
45public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
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
82 vtkSetMacro(DuplicateGhostCellClipping, vtkTypeBool);
83 vtkGetMacro(DuplicateGhostCellClipping, vtkTypeBool);
84 vtkBooleanMacro(DuplicateGhostCellClipping, vtkTypeBool);
86
88
91 vtkSetClampMacro(PointMinimum, vtkIdType, 0, VTK_ID_MAX);
92 vtkGetMacro(PointMinimum, vtkIdType);
94
96
99 vtkSetClampMacro(PointMaximum, vtkIdType, 0, VTK_ID_MAX);
100 vtkGetMacro(PointMaximum, vtkIdType);
102
104
107 vtkSetClampMacro(CellMinimum, vtkIdType, 0, VTK_ID_MAX);
108 vtkGetMacro(CellMinimum, vtkIdType);
110
112
115 vtkSetClampMacro(CellMaximum, vtkIdType, 0, VTK_ID_MAX);
116 vtkGetMacro(CellMaximum, vtkIdType);
118
122 void SetExtent(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax);
123
125
128 void SetExtent(double extent[6]);
129 double* GetExtent() { return this->Extent; }
131
133
138 vtkSetMacro(Merging, vtkTypeBool);
139 vtkGetMacro(Merging, vtkTypeBool);
140 vtkBooleanMacro(Merging, vtkTypeBool);
142
144
152 vtkSetMacro(PassThroughCellIds, vtkTypeBool);
153 vtkGetMacro(PassThroughCellIds, vtkTypeBool);
154 vtkBooleanMacro(PassThroughCellIds, vtkTypeBool);
155 vtkSetMacro(PassThroughPointIds, vtkTypeBool);
156 vtkGetMacro(PassThroughPointIds, vtkTypeBool);
157 vtkBooleanMacro(PassThroughPointIds, vtkTypeBool);
159
161
167 vtkSetStringMacro(OriginalCellIdsName);
168 virtual const char* GetOriginalCellIdsName()
169 {
170 return (this->OriginalCellIdsName ? this->OriginalCellIdsName : "vtkOriginalCellIds");
171 }
172 vtkSetStringMacro(OriginalPointIdsName);
173 virtual const char* GetOriginalPointIdsName()
174 {
175 return (this->OriginalPointIdsName ? this->OriginalPointIdsName : "vtkOriginalPointIds");
176 }
178
180
185 vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
187
192
197
198protected:
201
203 int FillInputPortInformation(int port, vtkInformation* info) override;
204
206
211 double Extent[6];
216
221
224
225 vtkHashTableOfSurfels* HashTable;
226
227private:
229 void operator=(const vtkUnstructuredGridGeometryFilter&) = delete;
230};
231
232VTK_ABI_NAMESPACE_END
233#endif
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkUnstructureGridBase subclasses as output.
extract geometry from an unstructured grid
static vtkUnstructuredGridGeometryFilter * New()
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.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetExtent(double extent[6])
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
virtual const char * GetOriginalPointIdsName()
If PassThroughCellIds or PassThroughPointIds is on, then these ivars control the name given to the fi...
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
double * GetExtent()
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
void CreateDefaultLocator()
Create default locator.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
virtual const char * GetOriginalCellIdsName()
If PassThroughCellIds or PassThroughPointIds is on, then these ivars control the name given to the fi...
vtkMTimeType GetMTime() override
Return the MTime also considering the locator.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
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