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 =========================================================================*/
107 #ifndef vtkSmoothPolyDataFilter_h
108 #define vtkSmoothPolyDataFilter_h
109 
110 #include "vtkFiltersCoreModule.h" // For export macro
111 #include "vtkPolyDataAlgorithm.h"
112 #include <memory> // For std::unique_ptr<>
113 
114 class vtkSmoothPoints;
115 
116 class VTKFILTERSCORE_EXPORT vtkSmoothPolyDataFilter : public vtkPolyDataAlgorithm
117 {
118 public:
127 
129 
134  void PrintSelf(ostream& os, vtkIndent indent) override;
136 
138 
142  vtkSetClampMacro(Convergence, double, 0.0, 1.0);
143  vtkGetMacro(Convergence, double);
145 
147 
150  vtkSetClampMacro(NumberOfIterations, int, 0, VTK_INT_MAX);
151  vtkGetMacro(NumberOfIterations, int);
153 
155 
162  vtkSetMacro(RelaxationFactor, double);
163  vtkGetMacro(RelaxationFactor, double);
165 
167 
170  vtkSetMacro(FeatureEdgeSmoothing, vtkTypeBool);
171  vtkGetMacro(FeatureEdgeSmoothing, vtkTypeBool);
172  vtkBooleanMacro(FeatureEdgeSmoothing, vtkTypeBool);
174 
176 
179  vtkSetClampMacro(FeatureAngle, double, 0.0, 180.0);
180  vtkGetMacro(FeatureAngle, double);
182 
184 
188  vtkSetClampMacro(EdgeAngle, double, 0.0, 180.0);
189  vtkGetMacro(EdgeAngle, double);
191 
193 
196  vtkSetMacro(BoundarySmoothing, vtkTypeBool);
197  vtkGetMacro(BoundarySmoothing, vtkTypeBool);
198  vtkBooleanMacro(BoundarySmoothing, vtkTypeBool);
200 
202 
205  vtkSetMacro(GenerateErrorScalars, vtkTypeBool);
206  vtkGetMacro(GenerateErrorScalars, vtkTypeBool);
207  vtkBooleanMacro(GenerateErrorScalars, vtkTypeBool);
209 
211 
214  vtkSetMacro(GenerateErrorVectors, vtkTypeBool);
215  vtkGetMacro(GenerateErrorVectors, vtkTypeBool);
216  vtkBooleanMacro(GenerateErrorVectors, vtkTypeBool);
218 
220 
228 
230 
235  vtkSetMacro(OutputPointsPrecision, int);
236  vtkGetMacro(OutputPointsPrecision, int);
238 
239 protected:
241  ~vtkSmoothPolyDataFilter() override = default;
242 
245 
246  double Convergence;
250  double FeatureAngle;
251  double EdgeAngle;
256 
257  std::unique_ptr<vtkSmoothPoints> SmoothPoints;
258 
259 private:
261  void operator=(const vtkSmoothPolyDataFilter&) = delete;
262 };
263 
264 #endif
a simple class to control print indentation
Definition: vtkIndent.h:49
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:100
adjust point positions using Laplacian smoothing
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
std::unique_ptr< vtkSmoothPoints > SmoothPoints
static vtkSmoothPolyDataFilter * New()
Construct object with number of iterations 20; relaxation factor .01; feature edge smoothing turned o...
~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.
@ 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