VTK  9.0.1
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 =========================================================================*/
93 #ifndef vtkSmoothPolyDataFilter_h
94 #define vtkSmoothPolyDataFilter_h
95 
96 #include "vtkFiltersCoreModule.h" // For export macro
97 #include "vtkPolyDataAlgorithm.h"
98 
99 class vtkSmoothPoints;
100 
101 class VTKFILTERSCORE_EXPORT vtkSmoothPolyDataFilter : public vtkPolyDataAlgorithm
102 {
103 public:
105  void PrintSelf(ostream& os, vtkIndent indent) override;
106 
115 
117 
121  vtkSetClampMacro(Convergence, double, 0.0, 1.0);
122  vtkGetMacro(Convergence, double);
124 
126 
129  vtkSetClampMacro(NumberOfIterations, int, 0, VTK_INT_MAX);
130  vtkGetMacro(NumberOfIterations, int);
132 
134 
141  vtkSetMacro(RelaxationFactor, double);
142  vtkGetMacro(RelaxationFactor, double);
144 
146 
149  vtkSetMacro(FeatureEdgeSmoothing, vtkTypeBool);
150  vtkGetMacro(FeatureEdgeSmoothing, vtkTypeBool);
151  vtkBooleanMacro(FeatureEdgeSmoothing, vtkTypeBool);
153 
155 
158  vtkSetClampMacro(FeatureAngle, double, 0.0, 180.0);
159  vtkGetMacro(FeatureAngle, double);
161 
163 
167  vtkSetClampMacro(EdgeAngle, double, 0.0, 180.0);
168  vtkGetMacro(EdgeAngle, double);
170 
172 
175  vtkSetMacro(BoundarySmoothing, vtkTypeBool);
176  vtkGetMacro(BoundarySmoothing, vtkTypeBool);
177  vtkBooleanMacro(BoundarySmoothing, vtkTypeBool);
179 
181 
184  vtkSetMacro(GenerateErrorScalars, vtkTypeBool);
185  vtkGetMacro(GenerateErrorScalars, vtkTypeBool);
186  vtkBooleanMacro(GenerateErrorScalars, vtkTypeBool);
188 
190 
193  vtkSetMacro(GenerateErrorVectors, vtkTypeBool);
194  vtkGetMacro(GenerateErrorVectors, vtkTypeBool);
195  vtkBooleanMacro(GenerateErrorVectors, vtkTypeBool);
197 
199 
207 
209 
214  vtkSetMacro(OutputPointsPrecision, int);
215  vtkGetMacro(OutputPointsPrecision, int);
217 
218 protected:
221 
224 
225  double Convergence;
229  double FeatureAngle;
230  double EdgeAngle;
235 
236  vtkSmoothPoints* SmoothPoints;
237 
238 private:
240  void operator=(const vtkSmoothPolyDataFilter&) = delete;
241 };
242 
243 #endif
a simple class to control print indentation
Definition: vtkIndent.h:34
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:85
adjust point positions using Laplacian smoothing
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkSmoothPolyDataFilter * New()
Construct object with number of iterations 20; relaxation factor .01; feature edge smoothing turned o...
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()
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
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