VTK  9.1.0
vtkSmoothPolyDataFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkSmoothPolyDataFilter.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=========================================================================*/
132#ifndef vtkSmoothPolyDataFilter_h
133#define vtkSmoothPolyDataFilter_h
134
135#include "vtkFiltersCoreModule.h" // For export macro
136#include "vtkPolyDataAlgorithm.h"
137
138class vtkSmoothPoints;
139
140class VTKFILTERSCORE_EXPORT vtkSmoothPolyDataFilter : public vtkPolyDataAlgorithm
141{
142public:
144 void PrintSelf(ostream& os, vtkIndent indent) override;
145
154
156
160 vtkSetClampMacro(Convergence, double, 0.0, 1.0);
161 vtkGetMacro(Convergence, double);
163
165
168 vtkSetClampMacro(NumberOfIterations, int, 0, VTK_INT_MAX);
169 vtkGetMacro(NumberOfIterations, int);
171
173
180 vtkSetMacro(RelaxationFactor, double);
181 vtkGetMacro(RelaxationFactor, double);
183
185
188 vtkSetMacro(FeatureEdgeSmoothing, vtkTypeBool);
189 vtkGetMacro(FeatureEdgeSmoothing, vtkTypeBool);
190 vtkBooleanMacro(FeatureEdgeSmoothing, vtkTypeBool);
192
194
197 vtkSetClampMacro(FeatureAngle, double, 0.0, 180.0);
198 vtkGetMacro(FeatureAngle, double);
200
202
206 vtkSetClampMacro(EdgeAngle, double, 0.0, 180.0);
207 vtkGetMacro(EdgeAngle, double);
209
211
214 vtkSetMacro(BoundarySmoothing, vtkTypeBool);
215 vtkGetMacro(BoundarySmoothing, vtkTypeBool);
216 vtkBooleanMacro(BoundarySmoothing, vtkTypeBool);
218
220
223 vtkSetMacro(GenerateErrorScalars, vtkTypeBool);
224 vtkGetMacro(GenerateErrorScalars, vtkTypeBool);
225 vtkBooleanMacro(GenerateErrorScalars, vtkTypeBool);
227
229
232 vtkSetMacro(GenerateErrorVectors, vtkTypeBool);
233 vtkGetMacro(GenerateErrorVectors, vtkTypeBool);
234 vtkBooleanMacro(GenerateErrorVectors, vtkTypeBool);
236
238
246
248
253 vtkSetMacro(OutputPointsPrecision, int);
254 vtkGetMacro(OutputPointsPrecision, int);
256
257protected:
259 ~vtkSmoothPolyDataFilter() override = default;
260
262 int FillInputPortInformation(int port, vtkInformation* info) override;
263
269 double EdgeAngle;
274
275 vtkSmoothPoints* SmoothPoints;
276
277private:
279 void operator=(const vtkSmoothPolyDataFilter&) = delete;
280};
281
282#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
adjust point positions using Laplacian smoothing
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkSmoothPolyDataFilter() override=default
void SetSourceData(vtkPolyData *source)
Specify the source object which is used to constrain smoothing.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkPolyData * GetSource()
Specify the source object which is used to constrain smoothing.
static vtkSmoothPolyDataFilter * New()
Construct object with number of iterations 20; relaxation factor .01; feature edge smoothing turned o...
int vtkTypeBool
Definition: vtkABI.h:69
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define VTK_INT_MAX
Definition: vtkType.h:155