VTK  9.2.6
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=========================================================================*/
97
98#ifndef vtkSmoothPolyDataFilter_h
99#define vtkSmoothPolyDataFilter_h
100
101#include "vtkFiltersCoreModule.h" // For export macro
102#include "vtkPolyDataAlgorithm.h"
103#include <memory> // For std::unique_ptr<>
104
105class vtkSmoothPoints;
106
107class VTKFILTERSCORE_EXPORT vtkSmoothPolyDataFilter : public vtkPolyDataAlgorithm
108{
109public:
118
120
125 void PrintSelf(ostream& os, vtkIndent indent) override;
127
129
133 vtkSetClampMacro(Convergence, double, 0.0, 1.0);
134 vtkGetMacro(Convergence, double);
136
138
141 vtkSetClampMacro(NumberOfIterations, int, 0, VTK_INT_MAX);
142 vtkGetMacro(NumberOfIterations, int);
144
146
153 vtkSetMacro(RelaxationFactor, double);
154 vtkGetMacro(RelaxationFactor, double);
156
158
165
167
170 vtkSetClampMacro(FeatureAngle, double, 0.0, 180.0);
171 vtkGetMacro(FeatureAngle, double);
173
175
179 vtkSetClampMacro(EdgeAngle, double, 0.0, 180.0);
180 vtkGetMacro(EdgeAngle, double);
182
184
191
193
200
202
209
211
219
221
226 vtkSetMacro(OutputPointsPrecision, int);
227 vtkGetMacro(OutputPointsPrecision, int);
229
230protected:
232 ~vtkSmoothPolyDataFilter() override = default;
233
235 int FillInputPortInformation(int port, vtkInformation* info) override;
236
242 double EdgeAngle;
247
248 std::unique_ptr<vtkSmoothPoints> SmoothPoints;
249
250private:
252 void operator=(const vtkSmoothPolyDataFilter&) = delete;
253};
254
255#endif
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:91
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
std::unique_ptr< vtkSmoothPoints > SmoothPoints
~vtkSmoothPolyDataFilter() override=default
void SetSourceData(vtkPolyData *source)
Specify the source object which is used to constrain smoothing.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to obtain type information, and print the state of a class instance.
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