VTK  9.2.5
vtkGenericGeometryFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericGeometryFilter.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 =========================================================================*/
50 #ifndef vtkGenericGeometryFilter_h
51 #define vtkGenericGeometryFilter_h
52 
53 #include "vtkFiltersGenericModule.h" // For export macro
54 #include "vtkPolyDataAlgorithm.h"
55 
57 class vtkPointData;
58 
59 class VTKFILTERSGENERIC_EXPORT vtkGenericGeometryFilter : public vtkPolyDataAlgorithm
60 {
61 public:
64  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
67 
70  vtkSetMacro(PointClipping, vtkTypeBool);
71  vtkGetMacro(PointClipping, vtkTypeBool);
72  vtkBooleanMacro(PointClipping, vtkTypeBool);
74 
76 
79  vtkSetMacro(CellClipping, vtkTypeBool);
80  vtkGetMacro(CellClipping, vtkTypeBool);
81  vtkBooleanMacro(CellClipping, vtkTypeBool);
83 
85 
88  vtkSetMacro(ExtentClipping, vtkTypeBool);
89  vtkGetMacro(ExtentClipping, vtkTypeBool);
90  vtkBooleanMacro(ExtentClipping, vtkTypeBool);
92 
94 
97  vtkSetClampMacro(PointMinimum, vtkIdType, 0, VTK_ID_MAX);
98  vtkGetMacro(PointMinimum, vtkIdType);
100 
102 
105  vtkSetClampMacro(PointMaximum, vtkIdType, 0, VTK_ID_MAX);
106  vtkGetMacro(PointMaximum, vtkIdType);
108 
110 
113  vtkSetClampMacro(CellMinimum, vtkIdType, 0, VTK_ID_MAX);
114  vtkGetMacro(CellMinimum, vtkIdType);
116 
118 
121  vtkSetClampMacro(CellMaximum, vtkIdType, 0, VTK_ID_MAX);
122  vtkGetMacro(CellMaximum, vtkIdType);
124 
128  void SetExtent(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax);
129 
131 
134  void SetExtent(double extent[6]);
135  double* GetExtent() { return this->Extent; }
137 
139 
144  vtkSetMacro(Merging, vtkTypeBool);
145  vtkGetMacro(Merging, vtkTypeBool);
146  vtkBooleanMacro(Merging, vtkTypeBool);
148 
150 
155  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
157 
162 
166  vtkMTimeType GetMTime() override;
167 
169 
175  vtkSetMacro(PassThroughCellIds, vtkTypeBool);
176  vtkGetMacro(PassThroughCellIds, vtkTypeBool);
177  vtkBooleanMacro(PassThroughCellIds, vtkTypeBool);
179 
180 protected:
183 
185  void PolyDataExecute(); // special cases for performance
189 
191 
196  double Extent[6];
200 
203 
204  // Used internal by vtkGenericAdaptorCell::Tessellate()
206 
208 
209 private:
211  void operator=(const vtkGenericGeometryFilter&) = delete;
212 };
213 
214 #endif
extract geometry from data (or convert data to polygonal type)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkGenericGeometryFilter * New()
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
vtkMTimeType GetMTime() override
Return the MTime also considering the locator.
void SetExtent(double extent[6])
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
void CreateDefaultLocator()
Create default locator.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
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.
double * GetExtent()
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkGenericGeometryFilter() override
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
vtkIncrementalPointLocator * Locator
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate point attribute data
Definition: vtkPointData.h:151
Superclass for algorithms that produce only polydata as output.
@ extent
Definition: vtkX3D.h:351
int vtkTypeBool
Definition: vtkABI.h:69
int vtkIdType
Definition: vtkType.h:332
#define VTK_ID_MAX
Definition: vtkType.h:336
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287