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=========================================================================*/
72
73#ifndef vtkStaticCleanPolyData_h
74#define vtkStaticCleanPolyData_h
75
76#include "vtkFiltersCoreModule.h" // For export macro
78#include "vtkStaticPointLocator.h" // For enums
79
80class VTKFILTERSCORE_EXPORT vtkStaticCleanPolyData : public vtkPolyDataAlgorithm
81{
82public:
84
88 void PrintSelf(ostream& os, vtkIndent indent) override;
91
93
98 vtkSetMacro(ToleranceIsAbsolute, bool);
99 vtkBooleanMacro(ToleranceIsAbsolute, bool);
100 vtkGetMacro(ToleranceIsAbsolute, bool);
102
104
108 vtkSetClampMacro(Tolerance, double, 0.0, 1.0);
109 vtkGetMacro(Tolerance, double);
111
113
116 vtkSetClampMacro(AbsoluteTolerance, double, 0.0, VTK_DOUBLE_MAX);
117 vtkGetMacro(AbsoluteTolerance, double);
119
121
132 vtkSetStringMacro(MergingArray);
133 vtkGetStringMacro(MergingArray);
135
137
140 vtkSetMacro(ConvertLinesToPoints, bool);
141 vtkBooleanMacro(ConvertLinesToPoints, bool);
142 vtkGetMacro(ConvertLinesToPoints, bool);
144
146
149 vtkSetMacro(ConvertPolysToLines, bool);
150 vtkBooleanMacro(ConvertPolysToLines, bool);
151 vtkGetMacro(ConvertPolysToLines, bool);
153
155
158 vtkSetMacro(ConvertStripsToPolys, bool);
159 vtkBooleanMacro(ConvertStripsToPolys, bool);
160 vtkGetMacro(ConvertStripsToPolys, bool);
162
164
170 vtkSetMacro(RemoveUnusedPoints, bool);
171 vtkBooleanMacro(RemoveUnusedPoints, bool);
172 vtkGetMacro(RemoveUnusedPoints, bool);
174
176
183 vtkSetMacro(ProduceMergeMap, bool);
184 vtkBooleanMacro(ProduceMergeMap, bool);
185 vtkGetMacro(ProduceMergeMap, bool);
187
189
197 vtkSetMacro(AveragePointData, bool);
198 vtkBooleanMacro(AveragePointData, bool);
199 vtkGetMacro(AveragePointData, bool);
201
203
208 vtkSetMacro(OutputPointsPrecision, int);
209 vtkGetMacro(OutputPointsPrecision, int);
211
217 vtkGetObjectMacro(Locator, vtkStaticPointLocator);
218
220 // This filter is difficult to stream. To produce invariant results, the
221 // whole input must be processed at once. This flag allows the user to
222 // select whether strict piece invariance is required. By default it is
223 // on. When off, the filter can stream, but results may change.
224 vtkSetMacro(PieceInvariant, bool);
225 vtkGetMacro(PieceInvariant, bool);
226 vtkBooleanMacro(PieceInvariant, bool);
228
233
234protected:
236 ~vtkStaticCleanPolyData() override = default;
237
238 // Usual data generation method
241
242 double Tolerance;
254
255 // Internal locator for performing point merging
257
258private:
260 void operator=(const vtkStaticCleanPolyData&) = delete;
261};
262
263#endif
a simple class to control print indentation
Definition vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Hold a reference to a vtkObjectBase instance.
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