VTK  9.4.20241221
vtkGenericGeometryFilter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
38#ifndef vtkGenericGeometryFilter_h
39#define vtkGenericGeometryFilter_h
40
41#include "vtkFiltersGenericModule.h" // For export macro
43
44VTK_ABI_NAMESPACE_BEGIN
46class vtkPointData;
47
48class VTKFILTERSGENERIC_EXPORT vtkGenericGeometryFilter : public vtkPolyDataAlgorithm
49{
50public:
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
56
59 vtkSetMacro(PointClipping, vtkTypeBool);
60 vtkGetMacro(PointClipping, vtkTypeBool);
61 vtkBooleanMacro(PointClipping, vtkTypeBool);
63
65
68 vtkSetMacro(CellClipping, vtkTypeBool);
69 vtkGetMacro(CellClipping, vtkTypeBool);
70 vtkBooleanMacro(CellClipping, vtkTypeBool);
72
74
77 vtkSetMacro(ExtentClipping, vtkTypeBool);
78 vtkGetMacro(ExtentClipping, vtkTypeBool);
79 vtkBooleanMacro(ExtentClipping, vtkTypeBool);
81
83
86 vtkSetClampMacro(PointMinimum, vtkIdType, 0, VTK_ID_MAX);
87 vtkGetMacro(PointMinimum, vtkIdType);
89
91
94 vtkSetClampMacro(PointMaximum, vtkIdType, 0, VTK_ID_MAX);
95 vtkGetMacro(PointMaximum, vtkIdType);
97
99
102 vtkSetClampMacro(CellMinimum, vtkIdType, 0, VTK_ID_MAX);
103 vtkGetMacro(CellMinimum, vtkIdType);
105
107
110 vtkSetClampMacro(CellMaximum, vtkIdType, 0, VTK_ID_MAX);
111 vtkGetMacro(CellMaximum, vtkIdType);
113
117 void SetExtent(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax);
118
120
123 void SetExtent(double extent[6]);
124 double* GetExtent() { return this->Extent; }
126
128
133 vtkSetMacro(Merging, vtkTypeBool);
134 vtkGetMacro(Merging, vtkTypeBool);
135 vtkBooleanMacro(Merging, vtkTypeBool);
137
139
144 vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
146
151
156
158
164 vtkSetMacro(PassThroughCellIds, vtkTypeBool);
165 vtkGetMacro(PassThroughCellIds, vtkTypeBool);
166 vtkBooleanMacro(PassThroughCellIds, vtkTypeBool);
168
169protected:
172
174 void PolyDataExecute(); // special cases for performance
178
180
185 double Extent[6];
189
192
193 // Used internal by vtkGenericAdaptorCell::Tessellate()
195
197
198private:
200 void operator=(const vtkGenericGeometryFilter&) = delete;
201};
202
203VTK_ABI_NAMESPACE_END
204#endif
extract geometry from data (or convert data to polygonal type)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
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.
static vtkGenericGeometryFilter * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkGenericGeometryFilter() override
double * GetExtent()
Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.
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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate point attribute data
Superclass for algorithms that produce only polydata as output.
int vtkTypeBool
Definition vtkABI.h:64
int vtkIdType
Definition vtkType.h:315
#define VTK_ID_MAX
Definition vtkType.h:319
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270