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) override;
58 
60 
63  vtkSetMacro(PointClipping,vtkTypeBool);
64  vtkGetMacro(PointClipping,vtkTypeBool);
65  vtkBooleanMacro(PointClipping,vtkTypeBool);
67 
69 
72  vtkSetMacro(CellClipping,vtkTypeBool);
73  vtkGetMacro(CellClipping,vtkTypeBool);
74  vtkBooleanMacro(CellClipping,vtkTypeBool);
76 
78 
81  vtkSetMacro(ExtentClipping,vtkTypeBool);
82  vtkGetMacro(ExtentClipping,vtkTypeBool);
83  vtkBooleanMacro(ExtentClipping,vtkTypeBool);
85 
87 
91  vtkSetMacro(DuplicateGhostCellClipping,vtkTypeBool);
92  vtkGetMacro(DuplicateGhostCellClipping,vtkTypeBool);
93  vtkBooleanMacro(DuplicateGhostCellClipping,vtkTypeBool);
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,vtkTypeBool);
149  vtkGetMacro(Merging,vtkTypeBool);
150  vtkBooleanMacro(Merging,vtkTypeBool);
152 
154 
162  vtkSetMacro(PassThroughCellIds,vtkTypeBool);
163  vtkGetMacro(PassThroughCellIds,vtkTypeBool);
164  vtkBooleanMacro(PassThroughCellIds,vtkTypeBool);
165  vtkSetMacro(PassThroughPointIds,vtkTypeBool);
166  vtkGetMacro(PassThroughPointIds,vtkTypeBool);
167  vtkBooleanMacro(PassThroughPointIds,vtkTypeBool);
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() override;
207 
208 protected:
211 
213  int FillInputPortInformation(int port, vtkInformation *info) override;
214 
216 
221  double Extent[6];
226 
231 
234 
235  vtkHashTableOfSurfels *HashTable;
236 
237 private:
239  void operator=(const vtkUnstructuredGridGeometryFilter&) = delete;
240 };
241 
242 #endif
vtkUnstructuredGridBaseAlgorithm.h
vtkUnstructuredGridGeometryFilter::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkUnstructuredGridGeometryFilter.h:233
vtkUnstructuredGridGeometryFilter::PointMaximum
vtkIdType PointMaximum
Definition: vtkUnstructuredGridGeometryFilter.h:217
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkUnstructuredGridBaseAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkUnstructuredGridGeometryFilter::PassThroughPointIds
vtkTypeBool PassThroughPointIds
Definition: vtkUnstructuredGridGeometryFilter.h:228
vtkUnstructuredGridBaseAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkUnstructuredGridGeometryFilter::CellClipping
vtkTypeBool CellClipping
Definition: vtkUnstructuredGridGeometryFilter.h:223
vtkUnstructuredGridGeometryFilter::PointClipping
vtkTypeBool PointClipping
Definition: vtkUnstructuredGridGeometryFilter.h:222
vtkUnstructuredGridBaseAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::port
Definition: vtkX3D.h:447
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkUnstructuredGridGeometryFilter::OriginalCellIdsName
char * OriginalCellIdsName
Definition: vtkUnstructuredGridGeometryFilter.h:229
vtkUnstructuredGridBaseAlgorithm::New
static vtkUnstructuredGridBaseAlgorithm * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkUnstructuredGridGeometryFilter::Merging
vtkTypeBool Merging
Definition: vtkUnstructuredGridGeometryFilter.h:232
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:51
vtkUnstructuredGridGeometryFilter
extract geometry from an unstructured grid
Definition: vtkUnstructuredGridGeometryFilter.h:50
vtkUnstructuredGridBaseAlgorithm
Superclass for algorithms that produce only vtkUnstructureGridBase subclasses as output.
Definition: vtkUnstructuredGridBaseAlgorithm.h:39
vtkUnstructuredGridGeometryFilter::HashTable
vtkHashTableOfSurfels * HashTable
Definition: vtkUnstructuredGridGeometryFilter.h:235
vtkUnstructuredGridGeometryFilter::DuplicateGhostCellClipping
vtkTypeBool DuplicateGhostCellClipping
Definition: vtkUnstructuredGridGeometryFilter.h:225
vtkUnstructuredGridGeometryFilter::ExtentClipping
vtkTypeBool ExtentClipping
Definition: vtkUnstructuredGridGeometryFilter.h:224
vtkUnstructuredGridGeometryFilter::PassThroughCellIds
vtkTypeBool PassThroughCellIds
Definition: vtkUnstructuredGridGeometryFilter.h:227
vtkUnstructuredGridGeometryFilter::CellMinimum
vtkIdType CellMinimum
Definition: vtkUnstructuredGridGeometryFilter.h:219
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkUnstructuredGridGeometryFilter::OriginalPointIdsName
char * OriginalPointIdsName
Definition: vtkUnstructuredGridGeometryFilter.h:230
vtkX3D::info
Definition: vtkX3D.h:376
vtkUnstructuredGridGeometryFilter::GetExtent
double * GetExtent()
Definition: vtkUnstructuredGridGeometryFilter.h:139
vtkUnstructuredGridBaseAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnstructuredGridGeometryFilter::GetOriginalCellIdsName
virtual const char * GetOriginalCellIdsName()
Definition: vtkUnstructuredGridGeometryFilter.h:178
VTK_ID_MAX
#define VTK_ID_MAX
Definition: vtkType.h:351
vtkUnstructuredGridGeometryFilter::CellMaximum
vtkIdType CellMaximum
Definition: vtkUnstructuredGridGeometryFilter.h:220
vtkX3D::extent
Definition: vtkX3D.h:345
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkUnstructuredGridGeometryFilter::PointMinimum
vtkIdType PointMinimum
Definition: vtkUnstructuredGridGeometryFilter.h:218
vtkUnstructuredGridGeometryFilter::GetOriginalPointIdsName
virtual const char * GetOriginalPointIdsName()
Definition: vtkUnstructuredGridGeometryFilter.h:183
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302