VTK
vtkGeometryFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGeometryFilter.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 =========================================================================*/
59 #ifndef vtkGeometryFilter_h
60 #define vtkGeometryFilter_h
61 
62 #include "vtkFiltersGeometryModule.h" // For export macro
63 #include "vtkPolyDataAlgorithm.h"
64 
66 
67 class VTKFILTERSGEOMETRY_EXPORT vtkGeometryFilter : public vtkPolyDataAlgorithm
68 {
69 public:
70  static vtkGeometryFilter *New();
72  void PrintSelf(ostream& os, vtkIndent indent) override;
73 
75 
78  vtkSetMacro(PointClipping,vtkTypeBool);
79  vtkGetMacro(PointClipping,vtkTypeBool);
80  vtkBooleanMacro(PointClipping,vtkTypeBool);
82 
84 
87  vtkSetMacro(CellClipping,vtkTypeBool);
88  vtkGetMacro(CellClipping,vtkTypeBool);
89  vtkBooleanMacro(CellClipping,vtkTypeBool);
91 
93 
96  vtkSetMacro(ExtentClipping,vtkTypeBool);
97  vtkGetMacro(ExtentClipping,vtkTypeBool);
98  vtkBooleanMacro(ExtentClipping,vtkTypeBool);
100 
102 
105  vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_ID_MAX);
106  vtkGetMacro(PointMinimum,vtkIdType);
108 
110 
113  vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_ID_MAX);
114  vtkGetMacro(PointMaximum,vtkIdType);
116 
118 
121  vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_ID_MAX);
122  vtkGetMacro(CellMinimum,vtkIdType);
124 
126 
129  vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_ID_MAX);
130  vtkGetMacro(CellMaximum,vtkIdType);
132 
136  void SetExtent(double xMin, double xMax, double yMin, double yMax,
137  double zMin, double zMax);
138 
140 
143  void SetExtent(double extent[6]);
144  double *GetExtent() VTK_SIZEHINT(6) { return this->Extent;};
146 
148 
153  vtkSetMacro(Merging,vtkTypeBool);
154  vtkGetMacro(Merging,vtkTypeBool);
155  vtkBooleanMacro(Merging,vtkTypeBool);
157 
159 
163  void SetLocator(vtkIncrementalPointLocator *locator);
164  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
166 
170  void CreateDefaultLocator();
171 
175  vtkMTimeType GetMTime() override;
176 
178 
184  void SetOutputPointsPrecision(int precision);
185  int GetOutputPointsPrecision() const;
187 
188 protected:
190  ~vtkGeometryFilter() override;
191 
193  int FillInputPortInformation(int port, vtkInformation *info) override;
194 
195  //special cases for performance
196  void PolyDataExecute(vtkDataSet *, vtkPolyData *);
197  void UnstructuredGridExecute(vtkDataSet *, vtkPolyData *);
198  void StructuredGridExecute(vtkDataSet *, vtkPolyData *, vtkInformation *);
200 
205  double Extent[6];
210 
213 private:
214  vtkGeometryFilter(const vtkGeometryFilter&) = delete;
215  void operator=(const vtkGeometryFilter&) = delete;
216 };
217 
218 #endif
219 
220 
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Abstract class in support of both point location and point insertion.
vtkTypeBool PointClipping
int vtkIdType
Definition: vtkType.h:347
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkTypeBool CellClipping
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkTypeBool ExtentClipping
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual vtkMTimeType GetMTime()
Return this object's modified time.
#define VTK_SIZEHINT(...)
#define VTK_ID_MAX
Definition: vtkType.h:351
double * GetExtent()
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
extract geometry from data (or convert data to polygonal type)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIncrementalPointLocator * Locator