VTK
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 =========================================================================*/
73 #ifndef vtkStaticCleanPolyData_h
74 #define vtkStaticCleanPolyData_h
75 
76 #include "vtkFiltersCoreModule.h" // For export macro
77 #include "vtkPolyDataAlgorithm.h"
78 
80 
81 class VTKFILTERSCORE_EXPORT vtkStaticCleanPolyData : public vtkPolyDataAlgorithm
82 {
83 public:
85 
88  static vtkStaticCleanPolyData *New();
89  void PrintSelf(ostream& os, vtkIndent indent) override;
92 
94 
99  vtkSetMacro(ToleranceIsAbsolute,vtkTypeBool);
100  vtkBooleanMacro(ToleranceIsAbsolute,vtkTypeBool);
101  vtkGetMacro(ToleranceIsAbsolute,vtkTypeBool);
103 
105 
109  vtkSetClampMacro(Tolerance,double,0.0,1.0);
110  vtkGetMacro(Tolerance,double);
112 
114 
117  vtkSetClampMacro(AbsoluteTolerance,double,0.0,VTK_DOUBLE_MAX);
118  vtkGetMacro(AbsoluteTolerance,double);
120 
122 
125  vtkSetMacro(ConvertLinesToPoints,vtkTypeBool);
126  vtkBooleanMacro(ConvertLinesToPoints,vtkTypeBool);
127  vtkGetMacro(ConvertLinesToPoints,vtkTypeBool);
129 
131 
134  vtkSetMacro(ConvertPolysToLines,vtkTypeBool);
135  vtkBooleanMacro(ConvertPolysToLines,vtkTypeBool);
136  vtkGetMacro(ConvertPolysToLines,vtkTypeBool);
138 
140 
143  vtkSetMacro(ConvertStripsToPolys,vtkTypeBool);
144  vtkBooleanMacro(ConvertStripsToPolys,vtkTypeBool);
145  vtkGetMacro(ConvertStripsToPolys,vtkTypeBool);
147 
148  // This filter is difficult to stream.
149  // To get invariant results, the whole input must be processed at once.
150  // This flag allows the user to select whether strict piece invariance
151  // is required. By default it is on. When off, the filter can stream,
152  // but results may change.
153  vtkSetMacro(PieceInvariant, vtkTypeBool);
154  vtkGetMacro(PieceInvariant, vtkTypeBool);
155  vtkBooleanMacro(PieceInvariant, vtkTypeBool);
156 
158 
163  vtkSetMacro(OutputPointsPrecision,int);
164  vtkGetMacro(OutputPointsPrecision,int);
166 
168 
174  { return this->Locator; }
176 
180  vtkMTimeType GetMTime() override;
181 
182 protected:
184  ~vtkStaticCleanPolyData() override;
185 
186  // Usual data generation method
189 
190  double Tolerance;
197 
200 
201 private:
203  void operator=(const vtkStaticCleanPolyData&) = delete;
204 };
205 
206 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:169
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Superclass for algorithms that produce only polydata as output.
vtkStaticPointLocator * Locator
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
merge duplicate points, and/or remove unused points and/or remove degenerate cells ...
vtkStaticPointLocator * GetLocator()
Retrieve the internal locator to manually configure it, for example specifying the number of points p...
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.