VTK  9.2.6
vtkStaticCleanPolyData.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkStaticCleanPolyData.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=========================================================================*/
76#ifndef vtkStaticCleanPolyData_h
77#define vtkStaticCleanPolyData_h
78
79#include "vtkFiltersCoreModule.h" // For export macro
81#include "vtkStaticPointLocator.h" // For enums
82
83class VTKFILTERSCORE_EXPORT vtkStaticCleanPolyData : public vtkPolyDataAlgorithm
84{
85public:
87
91 void PrintSelf(ostream& os, vtkIndent indent) override;
94
96
101 vtkSetMacro(ToleranceIsAbsolute, bool);
102 vtkBooleanMacro(ToleranceIsAbsolute, bool);
103 vtkGetMacro(ToleranceIsAbsolute, bool);
105
107
111 vtkSetClampMacro(Tolerance, double, 0.0, 1.0);
112 vtkGetMacro(Tolerance, double);
114
116
119 vtkSetClampMacro(AbsoluteTolerance, double, 0.0, VTK_DOUBLE_MAX);
120 vtkGetMacro(AbsoluteTolerance, double);
122
124
135 vtkSetStringMacro(MergingArray);
136 vtkGetStringMacro(MergingArray);
138
140
143 vtkSetMacro(ConvertLinesToPoints, bool);
144 vtkBooleanMacro(ConvertLinesToPoints, bool);
145 vtkGetMacro(ConvertLinesToPoints, bool);
147
149
152 vtkSetMacro(ConvertPolysToLines, bool);
153 vtkBooleanMacro(ConvertPolysToLines, bool);
154 vtkGetMacro(ConvertPolysToLines, bool);
156
158
161 vtkSetMacro(ConvertStripsToPolys, bool);
162 vtkBooleanMacro(ConvertStripsToPolys, bool);
163 vtkGetMacro(ConvertStripsToPolys, bool);
165
167
173 vtkSetMacro(RemoveUnusedPoints, bool);
174 vtkBooleanMacro(RemoveUnusedPoints, bool);
175 vtkGetMacro(RemoveUnusedPoints, bool);
177
179
186 vtkSetMacro(ProduceMergeMap, bool);
187 vtkBooleanMacro(ProduceMergeMap, bool);
188 vtkGetMacro(ProduceMergeMap, bool);
190
192
200 vtkSetMacro(AveragePointData, bool);
201 vtkBooleanMacro(AveragePointData, bool);
202 vtkGetMacro(AveragePointData, bool);
204
206
211 vtkSetMacro(OutputPointsPrecision, int);
212 vtkGetMacro(OutputPointsPrecision, int);
214
220 vtkGetObjectMacro(Locator, vtkStaticPointLocator);
221
223 // This filter is difficult to stream. To produce invariant results, the
224 // whole input must be processed at once. This flag allows the user to
225 // select whether strict piece invariance is required. By default it is
226 // on. When off, the filter can stream, but results may change.
227 vtkSetMacro(PieceInvariant, bool);
228 vtkGetMacro(PieceInvariant, bool);
229 vtkBooleanMacro(PieceInvariant, bool);
231
236
237protected:
239 ~vtkStaticCleanPolyData() override = default;
240
241 // Usual data generation method
244
245 double Tolerance;
257
258 // Internal locator for performing point merging
260
261private:
263 void operator=(const vtkStaticCleanPolyData&) = delete;
264};
265
266#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
Hold a reference to a vtkObjectBase instance.
merge duplicate points, and/or remove unused points and/or remove degenerate cells
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkMTimeType GetMTime() override
Get the MTime of this object also considering the locator.
static vtkStaticCleanPolyData * New()
Standard methods to instantiate, print, and provide type information.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to instantiate, print, and provide type information.
vtkSmartPointer< vtkStaticPointLocator > Locator
~vtkStaticCleanPolyData() override=default
quickly locate points in 3-space
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165