VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
71 
72 VTK_ABI_NAMESPACE_BEGIN
73 class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkStaticCleanPolyData : public vtkPolyDataAlgorithm
74 {
75 public:
77 
80  static vtkStaticCleanPolyData* New();
81  void PrintSelf(ostream& os, vtkIndent indent) override;
84 
86 
91  vtkSetMacro(ToleranceIsAbsolute, bool);
92  vtkBooleanMacro(ToleranceIsAbsolute, bool);
93  vtkGetMacro(ToleranceIsAbsolute, bool);
95 
97 
101  vtkSetClampMacro(Tolerance, double, 0.0, 1.0);
102  vtkGetMacro(Tolerance, double);
104 
106 
109  vtkSetClampMacro(AbsoluteTolerance, double, 0.0, VTK_DOUBLE_MAX);
110  vtkGetMacro(AbsoluteTolerance, double);
112 
114 
125  vtkSetStringMacro(MergingArray);
126  vtkGetStringMacro(MergingArray);
128 
130 
133  vtkSetMacro(ConvertLinesToPoints, bool);
134  vtkBooleanMacro(ConvertLinesToPoints, bool);
135  vtkGetMacro(ConvertLinesToPoints, bool);
137 
139 
142  vtkSetMacro(ConvertPolysToLines, bool);
143  vtkBooleanMacro(ConvertPolysToLines, bool);
144  vtkGetMacro(ConvertPolysToLines, bool);
146 
148 
151  vtkSetMacro(ConvertStripsToPolys, bool);
152  vtkBooleanMacro(ConvertStripsToPolys, bool);
153  vtkGetMacro(ConvertStripsToPolys, bool);
155 
157 
163  vtkSetMacro(RemoveUnusedPoints, bool);
164  vtkBooleanMacro(RemoveUnusedPoints, bool);
165  vtkGetMacro(RemoveUnusedPoints, bool);
167 
169 
176  vtkSetMacro(ProduceMergeMap, bool);
177  vtkBooleanMacro(ProduceMergeMap, bool);
178  vtkGetMacro(ProduceMergeMap, bool);
180 
182 
190  vtkSetMacro(AveragePointData, bool);
191  vtkBooleanMacro(AveragePointData, bool);
192  vtkGetMacro(AveragePointData, bool);
194 
196 
201  vtkSetMacro(OutputPointsPrecision, int);
202  vtkGetMacro(OutputPointsPrecision, int);
204 
210  vtkGetObjectMacro(Locator, vtkStaticPointLocator);
211 
213  // This filter is difficult to stream. To produce invariant results, the
214  // whole input must be processed at once. This flag allows the user to
215  // select whether strict piece invariance is required. By default it is
216  // on. When off, the filter can stream, but results may change.
217  vtkSetMacro(PieceInvariant, bool);
218  vtkGetMacro(PieceInvariant, bool);
219  vtkBooleanMacro(PieceInvariant, bool);
221 
225  vtkMTimeType GetMTime() override;
226 
227 protected:
229  ~vtkStaticCleanPolyData() override = default;
230 
231  // Usual data generation method
234 
235  double Tolerance;
247 
248  // Internal locator for performing point merging
250 
251 private:
253  void operator=(const vtkStaticCleanPolyData&) = delete;
254 };
255 
256 VTK_ABI_NAMESPACE_END
257 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:202
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:318
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.
#define VTK_MARSHALAUTO
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.