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 
vtkGeometryFilter::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkGeometryFilter.h:209
vtkGeometryFilter::CellClipping
vtkTypeBool CellClipping
Definition: vtkGeometryFilter.h:207
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkGeometryFilter
extract geometry from data (or convert data to polygonal type)
Definition: vtkGeometryFilter.h:67
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkGeometryFilter::GetExtent
double * GetExtent()
Definition: vtkGeometryFilter.h:144
vtkPolyDataAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkGeometryFilter::CellMinimum
vtkIdType CellMinimum
Definition: vtkGeometryFilter.h:203
vtkGeometryFilter::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkGeometryFilter.h:212
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGeometryFilter::PointMinimum
vtkIdType PointMinimum
Definition: vtkGeometryFilter.h:202
vtkPolyDataAlgorithm.h
vtkX3D::port
Definition: vtkX3D.h:447
VTK_SIZEHINT
#define VTK_SIZEHINT(...)
Definition: vtkWrappingHints.h:42
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:51
vtkGeometryFilter::PointMaximum
vtkIdType PointMaximum
Definition: vtkGeometryFilter.h:201
vtkPolyDataAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkGeometryFilter::PointClipping
vtkTypeBool PointClipping
Definition: vtkGeometryFilter.h:206
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
VTK_ID_MAX
#define VTK_ID_MAX
Definition: vtkType.h:351
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkGeometryFilter::ExtentClipping
vtkTypeBool ExtentClipping
Definition: vtkGeometryFilter.h:208
vtkGeometryFilter::Merging
vtkTypeBool Merging
Definition: vtkGeometryFilter.h:211
vtkX3D::extent
Definition: vtkX3D.h:345
vtkGeometryFilter::CellMaximum
vtkIdType CellMaximum
Definition: vtkGeometryFilter.h:204
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44