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 =========================================================================*/
41 #ifndef vtkUnstructuredGridGeometryFilter_h
42 #define vtkUnstructuredGridGeometryFilter_h
43 
44 #include "vtkFiltersGeometryModule.h" // For export macro
46 
48 class vtkHashTableOfSurfels; // internal class
49 
50 class VTKFILTERSGEOMETRY_EXPORT vtkUnstructuredGridGeometryFilter
52 {
53 public:
57  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
58 
60 
63  vtkSetMacro(PointClipping,int);
64  vtkGetMacro(PointClipping,int);
65  vtkBooleanMacro(PointClipping,int);
67 
69 
72  vtkSetMacro(CellClipping,int);
73  vtkGetMacro(CellClipping,int);
74  vtkBooleanMacro(CellClipping,int);
76 
78 
81  vtkSetMacro(ExtentClipping,int);
82  vtkGetMacro(ExtentClipping,int);
83  vtkBooleanMacro(ExtentClipping,int);
85 
87 
91  vtkSetMacro(DuplicateGhostCellClipping,int);
92  vtkGetMacro(DuplicateGhostCellClipping,int);
93  vtkBooleanMacro(DuplicateGhostCellClipping,int);
95 
97 
100  vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_ID_MAX);
101  vtkGetMacro(PointMinimum,vtkIdType);
103 
105 
108  vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_ID_MAX);
109  vtkGetMacro(PointMaximum,vtkIdType);
111 
113 
116  vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_ID_MAX);
117  vtkGetMacro(CellMinimum,vtkIdType);
119 
121 
124  vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_ID_MAX);
125  vtkGetMacro(CellMaximum,vtkIdType);
127 
131  void SetExtent(double xMin, double xMax, double yMin, double yMax,
132  double zMin, double zMax);
133 
135 
138  void SetExtent(double extent[6]);
139  double *GetExtent() { return this->Extent;};
141 
143 
148  vtkSetMacro(Merging,int);
149  vtkGetMacro(Merging,int);
150  vtkBooleanMacro(Merging,int);
152 
154 
162  vtkSetMacro(PassThroughCellIds,int);
163  vtkGetMacro(PassThroughCellIds,int);
164  vtkBooleanMacro(PassThroughCellIds,int);
165  vtkSetMacro(PassThroughPointIds,int);
166  vtkGetMacro(PassThroughPointIds,int);
167  vtkBooleanMacro(PassThroughPointIds,int);
169 
171 
177  vtkSetStringMacro(OriginalCellIdsName);
178  virtual const char *GetOriginalCellIdsName() {
179  return ( this->OriginalCellIdsName
180  ? this->OriginalCellIdsName : "vtkOriginalCellIds");
181  }
182  vtkSetStringMacro(OriginalPointIdsName);
183  virtual const char *GetOriginalPointIdsName() {
184  return ( this->OriginalPointIdsName
185  ? this->OriginalPointIdsName : "vtkOriginalPointIds");
186  }
188 
190 
194  void SetLocator(vtkIncrementalPointLocator *locator);
195  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
197 
201  void CreateDefaultLocator();
202 
206  vtkMTimeType GetMTime() VTK_OVERRIDE;
207 
208 protected:
210  ~vtkUnstructuredGridGeometryFilter() VTK_OVERRIDE;
211 
212  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
213  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
214 
215  int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
216 
217  vtkIdType PointMaximum;
218  vtkIdType PointMinimum;
219  vtkIdType CellMinimum;
220  vtkIdType CellMaximum;
221  double Extent[6];
222  int PointClipping;
223  int CellClipping;
224  int ExtentClipping;
225  int DuplicateGhostCellClipping;
226 
227  int PassThroughCellIds;
228  int PassThroughPointIds;
229  char *OriginalCellIdsName;
230  char *OriginalPointIdsName;
231 
232  int Merging;
234 
235  vtkHashTableOfSurfels *HashTable;
236 
237 private:
239  void operator=(const vtkUnstructuredGridGeometryFilter&) VTK_DELETE_FUNCTION;
240 };
241 
242 #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:300
Abstract class in support of both point location and point insertion.
int vtkIdType
Definition: vtkType.h:345
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double * GetExtent()
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual vtkMTimeType GetMTime()
Return this object's modified time.
static vtkUnstructuredGridBaseAlgorithm * New()
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
extract geometry from an unstructured grid
#define VTK_ID_MAX
Definition: vtkType.h:349
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.