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
vtkUnstructuredGridBaseAlgorithm.h
vtkUnstructuredGridGeometryFilter::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkUnstructuredGridGeometryFilter.h:236
vtkUnstructuredGridGeometryFilter::PointMaximum
vtkIdType PointMaximum
Definition: vtkUnstructuredGridGeometryFilter.h:220
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:231
vtkUnstructuredGridBaseAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkUnstructuredGridGeometryFilter::CellClipping
vtkTypeBool CellClipping
Definition: vtkUnstructuredGridGeometryFilter.h:226
vtkUnstructuredGridGeometryFilter::PointClipping
vtkTypeBool PointClipping
Definition: vtkUnstructuredGridGeometryFilter.h:225
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:232
vtkUnstructuredGridBaseAlgorithm::New
static vtkUnstructuredGridBaseAlgorithm * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkUnstructuredGridGeometryFilter::Merging
vtkTypeBool Merging
Definition: vtkUnstructuredGridGeometryFilter.h:235
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:53
vtkUnstructuredGridBaseAlgorithm
Superclass for algorithms that produce only vtkUnstructureGridBase subclasses as output.
Definition: vtkUnstructuredGridBaseAlgorithm.h:39
vtkUnstructuredGridGeometryFilter::HashTable
vtkHashTableOfSurfels * HashTable
Definition: vtkUnstructuredGridGeometryFilter.h:238
vtkUnstructuredGridGeometryFilter::DuplicateGhostCellClipping
vtkTypeBool DuplicateGhostCellClipping
Definition: vtkUnstructuredGridGeometryFilter.h:228
vtkUnstructuredGridGeometryFilter::ExtentClipping
vtkTypeBool ExtentClipping
Definition: vtkUnstructuredGridGeometryFilter.h:227
vtkUnstructuredGridGeometryFilter::PassThroughCellIds
vtkTypeBool PassThroughCellIds
Definition: vtkUnstructuredGridGeometryFilter.h:230
vtkUnstructuredGridGeometryFilter::CellMinimum
vtkIdType CellMinimum
Definition: vtkUnstructuredGridGeometryFilter.h:222
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkUnstructuredGridGeometryFilter::OriginalPointIdsName
char * OriginalPointIdsName
Definition: vtkUnstructuredGridGeometryFilter.h:233
vtkX3D::info
Definition: vtkX3D.h:376
vtkUnstructuredGridGeometryFilter::GetExtent
double * GetExtent()
Definition: vtkUnstructuredGridGeometryFilter.h:142
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:181
VTK_ID_MAX
#define VTK_ID_MAX
Definition: vtkType.h:351
vtkUnstructuredGridGeometryFilter::CellMaximum
vtkIdType CellMaximum
Definition: vtkUnstructuredGridGeometryFilter.h:223
vtkX3D::extent
Definition: vtkX3D.h:345
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkUnstructuredGridGeometryFilter::PointMinimum
vtkIdType PointMinimum
Definition: vtkUnstructuredGridGeometryFilter.h:221
vtkUnstructuredGridGeometryFilter::GetOriginalPointIdsName
virtual const char * GetOriginalPointIdsName()
Definition: vtkUnstructuredGridGeometryFilter.h:186
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302