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
80 #include "vtkPolyDataAlgorithm.h"
81 #include "vtkStaticPointLocator.h" // For enums
82 
83 class VTKFILTERSCORE_EXPORT vtkStaticCleanPolyData : public vtkPolyDataAlgorithm
84 {
85 public:
87 
90  static vtkStaticCleanPolyData* New();
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 
235  vtkMTimeType GetMTime() override;
236 
237 protected:
239  ~vtkStaticCleanPolyData() override = default;
240 
241  // Usual data generation method
244 
245  double Tolerance;
257 
258  // Internal locator for performing point merging
260 
261 private:
263  void operator=(const vtkStaticCleanPolyData&) = delete;
264 };
265 
266 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
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:39
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.