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=========================================================================*/
94
95#ifndef vtkSmoothPolyDataFilter_h
96#define vtkSmoothPolyDataFilter_h
97
98#include "vtkFiltersCoreModule.h" // For export macro
100#include <memory> // For std::unique_ptr<>
101
102class vtkSmoothPoints;
103
104class VTKFILTERSCORE_EXPORT vtkSmoothPolyDataFilter : public vtkPolyDataAlgorithm
105{
106public:
115
117
122 void PrintSelf(ostream& os, vtkIndent indent) override;
124
126
130 vtkSetClampMacro(Convergence, double, 0.0, 1.0);
131 vtkGetMacro(Convergence, double);
133
135
138 vtkSetClampMacro(NumberOfIterations, int, 0, VTK_INT_MAX);
139 vtkGetMacro(NumberOfIterations, int);
141
143
150 vtkSetMacro(RelaxationFactor, double);
151 vtkGetMacro(RelaxationFactor, double);
153
155
162
164
167 vtkSetClampMacro(FeatureAngle, double, 0.0, 180.0);
168 vtkGetMacro(FeatureAngle, double);
170
172
176 vtkSetClampMacro(EdgeAngle, double, 0.0, 180.0);
177 vtkGetMacro(EdgeAngle, double);
179
181
188
190
197
199
206
208
216
218
223 vtkSetMacro(OutputPointsPrecision, int);
224 vtkGetMacro(OutputPointsPrecision, int);
226
227protected:
229 ~vtkSmoothPolyDataFilter() override = default;
230
232 int FillInputPortInformation(int port, vtkInformation* info) override;
233
239 double EdgeAngle;
244
245 std::unique_ptr<vtkSmoothPoints> SmoothPoints;
246
247private:
249 void operator=(const vtkSmoothPolyDataFilter&) = delete;
250};
251
252#endif
a simple class to control print indentation
Definition vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:85
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