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 
55 {
56 public:
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
63 
66  vtkSetMacro(PointClipping,int);
67  vtkGetMacro(PointClipping,int);
68  vtkBooleanMacro(PointClipping,int);
70 
72 
75  vtkSetMacro(CellClipping,int);
76  vtkGetMacro(CellClipping,int);
77  vtkBooleanMacro(CellClipping,int);
79 
81 
84  vtkSetMacro(ExtentClipping,int);
85  vtkGetMacro(ExtentClipping,int);
86  vtkBooleanMacro(ExtentClipping,int);
88 
90 
94  vtkSetMacro(DuplicateGhostCellClipping,int);
95  vtkGetMacro(DuplicateGhostCellClipping,int);
96  vtkBooleanMacro(DuplicateGhostCellClipping,int);
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,int);
152  vtkGetMacro(Merging,int);
153  vtkBooleanMacro(Merging,int);
155 
157 
165  vtkSetMacro(PassThroughCellIds,int);
166  vtkGetMacro(PassThroughCellIds,int);
167  vtkBooleanMacro(PassThroughCellIds,int);
168  vtkSetMacro(PassThroughPointIds,int);
169  vtkGetMacro(PassThroughPointIds,int);
170  vtkBooleanMacro(PassThroughPointIds,int);
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 
220  vtkIdType PointMaximum;
221  vtkIdType PointMinimum;
222  vtkIdType CellMinimum;
223  vtkIdType CellMaximum;
224  double Extent[6];
229 
234 
235  int Merging;
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:300
Abstract class in support of both point location and point insertion.
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.
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: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()
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
extract geometry from an unstructured grid
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
#define VTKFILTERSGEOMETRY_EXPORT
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.