VTK  9.1.0
vtkUnstructuredGridGeometryFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkUnstructuredGridGeometryFilter.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=========================================================================*/
41#ifndef vtkUnstructuredGridGeometryFilter_h
42#define vtkUnstructuredGridGeometryFilter_h
43
44#include "vtkFiltersGeometryModule.h" // For export macro
46
48class vtkHashTableOfSurfels; // internal class
49
50class VTKFILTERSGEOMETRY_EXPORT vtkUnstructuredGridGeometryFilter
52{
53public:
56 void PrintSelf(ostream& os, vtkIndent indent) override;
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
90 vtkSetMacro(DuplicateGhostCellClipping, vtkTypeBool);
91 vtkGetMacro(DuplicateGhostCellClipping, vtkTypeBool);
92 vtkBooleanMacro(DuplicateGhostCellClipping, vtkTypeBool);
94
96
99 vtkSetClampMacro(PointMinimum, vtkIdType, 0, VTK_ID_MAX);
100 vtkGetMacro(PointMinimum, vtkIdType);
102
104
107 vtkSetClampMacro(PointMaximum, vtkIdType, 0, VTK_ID_MAX);
108 vtkGetMacro(PointMaximum, vtkIdType);
110
112
115 vtkSetClampMacro(CellMinimum, vtkIdType, 0, VTK_ID_MAX);
116 vtkGetMacro(CellMinimum, vtkIdType);
118
120
123 vtkSetClampMacro(CellMaximum, vtkIdType, 0, VTK_ID_MAX);
124 vtkGetMacro(CellMaximum, vtkIdType);
126
130 void SetExtent(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax);
131
133
136 void SetExtent(double extent[6]);
137 double* GetExtent() { return this->Extent; }
139
141
146 vtkSetMacro(Merging, vtkTypeBool);
147 vtkGetMacro(Merging, vtkTypeBool);
148 vtkBooleanMacro(Merging, vtkTypeBool);
150
152
160 vtkSetMacro(PassThroughCellIds, vtkTypeBool);
161 vtkGetMacro(PassThroughCellIds, vtkTypeBool);
162 vtkBooleanMacro(PassThroughCellIds, vtkTypeBool);
163 vtkSetMacro(PassThroughPointIds, vtkTypeBool);
164 vtkGetMacro(PassThroughPointIds, vtkTypeBool);
165 vtkBooleanMacro(PassThroughPointIds, vtkTypeBool);
167
169
175 vtkSetStringMacro(OriginalCellIdsName);
176 virtual const char* GetOriginalCellIdsName()
177 {
178 return (this->OriginalCellIdsName ? this->OriginalCellIdsName : "vtkOriginalCellIds");
179 }
180 vtkSetStringMacro(OriginalPointIdsName);
181 virtual const char* GetOriginalPointIdsName()
182 {
183 return (this->OriginalPointIdsName ? this->OriginalPointIdsName : "vtkOriginalPointIds");
184 }
186
188
193 vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
195
200
205
206protected:
209
212
214
219 double Extent[6];
224
229
232
233 vtkHashTableOfSurfels* HashTable;
234
235private:
237 void operator=(const vtkUnstructuredGridGeometryFilter&) = delete;
238};
239
240#endif
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:113
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.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
@ extent
Definition: vtkX3D.h:351
int vtkTypeBool
Definition: vtkABI.h:69
int vtkIdType
Definition: vtkType.h:332
#define VTK_ID_MAX
Definition: vtkType.h:336
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287