VTK  9.2.6
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 =========================================================================*/
44 #ifndef vtkUnstructuredGridGeometryFilter_h
45 #define vtkUnstructuredGridGeometryFilter_h
46 
47 #include "vtkFiltersGeometryModule.h" // For export macro
49 
51 class vtkHashTableOfSurfels; // internal class
52 
53 class VTKFILTERSGEOMETRY_EXPORT vtkUnstructuredGridGeometryFilter
55 {
56 public:
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
65  vtkSetMacro(PointClipping, vtkTypeBool);
66  vtkGetMacro(PointClipping, vtkTypeBool);
67  vtkBooleanMacro(PointClipping, vtkTypeBool);
69 
71 
74  vtkSetMacro(CellClipping, vtkTypeBool);
75  vtkGetMacro(CellClipping, vtkTypeBool);
76  vtkBooleanMacro(CellClipping, vtkTypeBool);
78 
80 
83  vtkSetMacro(ExtentClipping, vtkTypeBool);
84  vtkGetMacro(ExtentClipping, vtkTypeBool);
85  vtkBooleanMacro(ExtentClipping, vtkTypeBool);
87 
89 
93  vtkSetMacro(DuplicateGhostCellClipping, vtkTypeBool);
94  vtkGetMacro(DuplicateGhostCellClipping, vtkTypeBool);
95  vtkBooleanMacro(DuplicateGhostCellClipping, vtkTypeBool);
97 
99 
102  vtkSetClampMacro(PointMinimum, vtkIdType, 0, VTK_ID_MAX);
103  vtkGetMacro(PointMinimum, vtkIdType);
105 
107 
110  vtkSetClampMacro(PointMaximum, vtkIdType, 0, VTK_ID_MAX);
111  vtkGetMacro(PointMaximum, vtkIdType);
113 
115 
118  vtkSetClampMacro(CellMinimum, vtkIdType, 0, VTK_ID_MAX);
119  vtkGetMacro(CellMinimum, vtkIdType);
121 
123 
126  vtkSetClampMacro(CellMaximum, vtkIdType, 0, VTK_ID_MAX);
127  vtkGetMacro(CellMaximum, vtkIdType);
129 
133  void SetExtent(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax);
134 
136 
139  void SetExtent(double extent[6]);
140  double* GetExtent() { return this->Extent; }
142 
144 
149  vtkSetMacro(Merging, vtkTypeBool);
150  vtkGetMacro(Merging, vtkTypeBool);
151  vtkBooleanMacro(Merging, vtkTypeBool);
153 
155 
163  vtkSetMacro(PassThroughCellIds, vtkTypeBool);
164  vtkGetMacro(PassThroughCellIds, vtkTypeBool);
165  vtkBooleanMacro(PassThroughCellIds, vtkTypeBool);
166  vtkSetMacro(PassThroughPointIds, vtkTypeBool);
167  vtkGetMacro(PassThroughPointIds, vtkTypeBool);
168  vtkBooleanMacro(PassThroughPointIds, vtkTypeBool);
170 
172 
178  vtkSetStringMacro(OriginalCellIdsName);
179  virtual const char* GetOriginalCellIdsName()
180  {
181  return (this->OriginalCellIdsName ? this->OriginalCellIdsName : "vtkOriginalCellIds");
182  }
183  vtkSetStringMacro(OriginalPointIdsName);
184  virtual const char* GetOriginalPointIdsName()
185  {
186  return (this->OriginalPointIdsName ? this->OriginalPointIdsName : "vtkOriginalPointIds");
187  }
189 
191 
196  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
198 
203 
207  vtkMTimeType GetMTime() override;
208 
209 protected:
212 
215 
217 
222  double Extent[6];
227 
232 
235 
236  vtkHashTableOfSurfels* HashTable;
237 
238 private:
240  void operator=(const vtkUnstructuredGridGeometryFilter&) = delete;
241 };
242 
243 #endif
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:119
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
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.
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
static vtkUnstructuredGridGeometryFilter * New()
void CreateDefaultLocator()
Create default locator.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkMTimeType GetMTime() override
Return the MTime also considering the locator.
double * GetExtent()
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual const char * GetOriginalPointIdsName()
If PassThroughCellIds or PassThroughPointIds is on, then these ivars control the name given to the fi...
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
virtual const char * GetOriginalCellIdsName()
If PassThroughCellIds or PassThroughPointIds is on, then these ivars control the name given to the fi...
@ 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