VTK  9.3.1
vtkStaticCleanPolyData.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
64 #ifndef vtkStaticCleanPolyData_h
65 #define vtkStaticCleanPolyData_h
66 
67 #include "vtkFiltersCoreModule.h" // For export macro
68 #include "vtkPolyDataAlgorithm.h"
69 #include "vtkStaticPointLocator.h" // For enums
70 
71 VTK_ABI_NAMESPACE_BEGIN
72 class VTKFILTERSCORE_EXPORT vtkStaticCleanPolyData : public vtkPolyDataAlgorithm
73 {
74 public:
76 
79  static vtkStaticCleanPolyData* New();
80  void PrintSelf(ostream& os, vtkIndent indent) override;
83 
85 
90  vtkSetMacro(ToleranceIsAbsolute, bool);
91  vtkBooleanMacro(ToleranceIsAbsolute, bool);
92  vtkGetMacro(ToleranceIsAbsolute, bool);
94 
96 
100  vtkSetClampMacro(Tolerance, double, 0.0, 1.0);
101  vtkGetMacro(Tolerance, double);
103 
105 
108  vtkSetClampMacro(AbsoluteTolerance, double, 0.0, VTK_DOUBLE_MAX);
109  vtkGetMacro(AbsoluteTolerance, double);
111 
113 
124  vtkSetStringMacro(MergingArray);
125  vtkGetStringMacro(MergingArray);
127 
129 
132  vtkSetMacro(ConvertLinesToPoints, bool);
133  vtkBooleanMacro(ConvertLinesToPoints, bool);
134  vtkGetMacro(ConvertLinesToPoints, bool);
136 
138 
141  vtkSetMacro(ConvertPolysToLines, bool);
142  vtkBooleanMacro(ConvertPolysToLines, bool);
143  vtkGetMacro(ConvertPolysToLines, bool);
145 
147 
150  vtkSetMacro(ConvertStripsToPolys, bool);
151  vtkBooleanMacro(ConvertStripsToPolys, bool);
152  vtkGetMacro(ConvertStripsToPolys, bool);
154 
156 
162  vtkSetMacro(RemoveUnusedPoints, bool);
163  vtkBooleanMacro(RemoveUnusedPoints, bool);
164  vtkGetMacro(RemoveUnusedPoints, bool);
166 
168 
175  vtkSetMacro(ProduceMergeMap, bool);
176  vtkBooleanMacro(ProduceMergeMap, bool);
177  vtkGetMacro(ProduceMergeMap, bool);
179 
181 
189  vtkSetMacro(AveragePointData, bool);
190  vtkBooleanMacro(AveragePointData, bool);
191  vtkGetMacro(AveragePointData, bool);
193 
195 
200  vtkSetMacro(OutputPointsPrecision, int);
201  vtkGetMacro(OutputPointsPrecision, int);
203 
209  vtkGetObjectMacro(Locator, vtkStaticPointLocator);
210 
212  // This filter is difficult to stream. To produce invariant results, the
213  // whole input must be processed at once. This flag allows the user to
214  // select whether strict piece invariance is required. By default it is
215  // on. When off, the filter can stream, but results may change.
216  vtkSetMacro(PieceInvariant, bool);
217  vtkGetMacro(PieceInvariant, bool);
218  vtkBooleanMacro(PieceInvariant, bool);
220 
224  vtkMTimeType GetMTime() override;
225 
226 protected:
228  ~vtkStaticCleanPolyData() override = default;
229 
230  // Usual data generation method
233 
234  double Tolerance;
246 
247  // Internal locator for performing point merging
249 
250 private:
252  void operator=(const vtkStaticCleanPolyData&) = delete;
253 };
254 
255 VTK_ABI_NAMESPACE_END
256 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:154
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static vtkPolyDataAlgorithm * New()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual vtkMTimeType GetMTime()
Return this object's modified time.
quickly locate points in 3-space
vtkSmartPointer< vtkStaticPointLocator > Locator
merge duplicate points, and/or remove unused points and/or remove degenerate cells ...
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.