VTK
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:
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
63 
66  vtkSetMacro(PointClipping,vtkTypeBool);
67  vtkGetMacro(PointClipping,vtkTypeBool);
68  vtkBooleanMacro(PointClipping,vtkTypeBool);
70 
72 
75  vtkSetMacro(CellClipping,vtkTypeBool);
76  vtkGetMacro(CellClipping,vtkTypeBool);
77  vtkBooleanMacro(CellClipping,vtkTypeBool);
79 
81 
84  vtkSetMacro(ExtentClipping,vtkTypeBool);
85  vtkGetMacro(ExtentClipping,vtkTypeBool);
86  vtkBooleanMacro(ExtentClipping,vtkTypeBool);
88 
90 
94  vtkSetMacro(DuplicateGhostCellClipping,vtkTypeBool);
95  vtkGetMacro(DuplicateGhostCellClipping,vtkTypeBool);
96  vtkBooleanMacro(DuplicateGhostCellClipping,vtkTypeBool);
98 
100 
103  vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_ID_MAX);
104  vtkGetMacro(PointMinimum,vtkIdType);
106 
108 
111  vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_ID_MAX);
112  vtkGetMacro(PointMaximum,vtkIdType);
114 
116 
119  vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_ID_MAX);
120  vtkGetMacro(CellMinimum,vtkIdType);
122 
124 
127  vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_ID_MAX);
128  vtkGetMacro(CellMaximum,vtkIdType);
130 
134  void SetExtent(double xMin, double xMax, double yMin, double yMax,
135  double zMin, double zMax);
136 
138 
141  void SetExtent(double extent[6]);
142  double *GetExtent() { return this->Extent;};
144 
146 
151  vtkSetMacro(Merging,vtkTypeBool);
152  vtkGetMacro(Merging,vtkTypeBool);
153  vtkBooleanMacro(Merging,vtkTypeBool);
155 
157 
165  vtkSetMacro(PassThroughCellIds,vtkTypeBool);
166  vtkGetMacro(PassThroughCellIds,vtkTypeBool);
167  vtkBooleanMacro(PassThroughCellIds,vtkTypeBool);
168  vtkSetMacro(PassThroughPointIds,vtkTypeBool);
169  vtkGetMacro(PassThroughPointIds,vtkTypeBool);
170  vtkBooleanMacro(PassThroughPointIds,vtkTypeBool);
172 
174 
180  vtkSetStringMacro(OriginalCellIdsName);
181  virtual const char *GetOriginalCellIdsName() {
182  return ( this->OriginalCellIdsName
183  ? this->OriginalCellIdsName : "vtkOriginalCellIds");
184  }
185  vtkSetStringMacro(OriginalPointIdsName);
186  virtual const char *GetOriginalPointIdsName() {
187  return ( this->OriginalPointIdsName
188  ? this->OriginalPointIdsName : "vtkOriginalPointIds");
189  }
191 
193 
197  void SetLocator(vtkIncrementalPointLocator *locator);
198  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
200 
204  void CreateDefaultLocator();
205 
209  vtkMTimeType GetMTime() override;
210 
211 protected:
214 
216  int FillInputPortInformation(int port, vtkInformation *info) override;
217 
219 
224  double Extent[6];
229 
234 
237 
238  vtkHashTableOfSurfels *HashTable;
239 
240 private:
242  void operator=(const vtkUnstructuredGridGeometryFilter&) = delete;
243 };
244 
245 #endif
virtual const char * GetOriginalPointIdsName()
If PassThroughCellIds or PassThroughPointIds is on, then these ivars control the name given to the fi...
Superclass for algorithms that produce only vtkUnstructureGridBase subclasses as output.
virtual const char * GetOriginalCellIdsName()
If PassThroughCellIds or PassThroughPointIds is on, then these ivars control the name given to the fi...
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
Abstract class in support of both point location and point insertion.
int vtkIdType
Definition: vtkType.h:347
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int vtkTypeBool
Definition: vtkABI.h:69
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual vtkMTimeType GetMTime()
Return this object's modified time.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static vtkUnstructuredGridBaseAlgorithm * New()
extract geometry from an unstructured grid
#define VTK_ID_MAX
Definition: vtkType.h:351
Store zero or more vtkInformation instances.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.