VTK  9.0.1
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 =========================================================================*/
53 #ifndef vtkGeometryFilter_h
54 #define vtkGeometryFilter_h
55 
56 #include "vtkFiltersGeometryModule.h" // For export macro
57 #include "vtkPolyDataAlgorithm.h"
58 
60 
61 class VTKFILTERSGEOMETRY_EXPORT vtkGeometryFilter : public vtkPolyDataAlgorithm
62 {
63 public:
66  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
69 
72  vtkSetMacro(PointClipping, vtkTypeBool);
73  vtkGetMacro(PointClipping, vtkTypeBool);
74  vtkBooleanMacro(PointClipping, vtkTypeBool);
76 
78 
81  vtkSetMacro(CellClipping, vtkTypeBool);
82  vtkGetMacro(CellClipping, vtkTypeBool);
83  vtkBooleanMacro(CellClipping, vtkTypeBool);
85 
87 
90  vtkSetMacro(ExtentClipping, vtkTypeBool);
91  vtkGetMacro(ExtentClipping, vtkTypeBool);
92  vtkBooleanMacro(ExtentClipping, vtkTypeBool);
94 
96 
99  vtkSetClampMacro(PointMinimum, vtkIdType, 0, VTK_ID_MAX);
100  vtkGetMacro(PointMinimum, vtkIdType);
102 
104 
107  vtkSetClampMacro(PointMaximum, vtkIdType, 0, VTK_ID_MAX);
108  vtkGetMacro(PointMaximum, vtkIdType);
110 
112 
115  vtkSetClampMacro(CellMinimum, vtkIdType, 0, VTK_ID_MAX);
116  vtkGetMacro(CellMinimum, vtkIdType);
118 
120 
123  vtkSetClampMacro(CellMaximum, vtkIdType, 0, VTK_ID_MAX);
124  vtkGetMacro(CellMaximum, vtkIdType);
126 
130  void SetExtent(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax);
131 
133 
136  void SetExtent(double extent[6]);
137  double* GetExtent() VTK_SIZEHINT(6) { return this->Extent; }
139 
141 
146  vtkSetMacro(Merging, vtkTypeBool);
147  vtkGetMacro(Merging, vtkTypeBool);
148  vtkBooleanMacro(Merging, vtkTypeBool);
150 
152 
157  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
159 
164 
168  vtkMTimeType GetMTime() override;
169 
171 
177  void SetOutputPointsPrecision(int precision);
180 
181 protected:
183  ~vtkGeometryFilter() override;
184 
187 
188  // special cases for performance
193 
198  double Extent[6];
203 
206 
207 private:
208  vtkGeometryFilter(const vtkGeometryFilter&) = delete;
209  void operator=(const vtkGeometryFilter&) = delete;
210 };
211 
212 #endif
vtkGeometryFilter::SetExtent
void SetExtent(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax)
Specify a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
vtkGeometryFilter::SetOutputPointsPrecision
void SetOutputPointsPrecision(int precision)
Set/get the desired precision for the output types.
vtkGeometryFilter::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkGeometryFilter.h:202
vtkGeometryFilter::CellClipping
vtkTypeBool CellClipping
Definition: vtkGeometryFilter.h:200
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkGeometryFilter::StructuredGridExecute
void StructuredGridExecute(vtkDataSet *, vtkPolyData *, vtkInformation *)
vtkGeometryFilter
extract geometry from data (or convert data to polygonal type)
Definition: vtkGeometryFilter.h:62
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkGeometryFilter::New
static vtkGeometryFilter * New()
vtkGeometryFilter::GetExtent
double * GetExtent()
Definition: vtkGeometryFilter.h:137
vtkGeometryFilter::CellMinimum
vtkIdType CellMinimum
Definition: vtkGeometryFilter.h:196
vtkGeometryFilter::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkGeometryFilter.h:205
vtkGeometryFilter::PointMinimum
vtkIdType PointMinimum
Definition: vtkGeometryFilter.h:195
vtkGeometryFilter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkPolyDataAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:453
VTK_SIZEHINT
#define VTK_SIZEHINT(...)
Definition: vtkWrappingHints.h:45
vtkGeometryFilter::CreateDefaultLocator
void CreateDefaultLocator()
Create default locator.
vtkGeometryFilter::~vtkGeometryFilter
~vtkGeometryFilter() override
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkGeometryFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:52
vtkGeometryFilter::PointMaximum
vtkIdType PointMaximum
Definition: vtkGeometryFilter.h:194
vtkGeometryFilter::SetLocator
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
vtkGeometryFilter::SetExtent
void SetExtent(double extent[6])
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
vtkGeometryFilter::PointClipping
vtkTypeBool PointClipping
Definition: vtkGeometryFilter.h:199
vtkGeometryFilter::UnstructuredGridExecute
void UnstructuredGridExecute(vtkDataSet *, vtkPolyData *)
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:65
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkGeometryFilter::GetOutputPointsPrecision
int GetOutputPointsPrecision() const
vtkGeometryFilter::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
VTK_ID_MAX
#define VTK_ID_MAX
Definition: vtkType.h:342
vtkGeometryFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGeometryFilter::GetMTime
vtkMTimeType GetMTime() override
Return the MTime also considering the locator.
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkGeometryFilter::vtkGeometryFilter
vtkGeometryFilter()
vtkGeometryFilter::ExtentClipping
vtkTypeBool ExtentClipping
Definition: vtkGeometryFilter.h:201
vtkGeometryFilter::Merging
vtkTypeBool Merging
Definition: vtkGeometryFilter.h:204
vtkX3D::extent
@ extent
Definition: vtkX3D.h:351
vtkGeometryFilter::CellMaximum
vtkIdType CellMaximum
Definition: vtkGeometryFilter.h:197
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293
vtkGeometryFilter::PolyDataExecute
void PolyDataExecute(vtkDataSet *, vtkPolyData *)
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:42