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 
138 class vtkSmoothPoints;
139 
140 class VTKFILTERSCORE_EXPORT vtkSmoothPolyDataFilter : public vtkPolyDataAlgorithm
141 {
142 public:
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 
257 protected:
259  ~vtkSmoothPolyDataFilter() override = default;
260 
263 
264  double Convergence;
268  double FeatureAngle;
269  double EdgeAngle;
274 
275  vtkSmoothPoints* SmoothPoints;
276 
277 private:
279  void operator=(const vtkSmoothPolyDataFilter&) = delete;
280 };
281 
282 #endif
vtkSmoothPolyDataFilter::NumberOfIterations
int NumberOfIterations
Definition: vtkSmoothPolyDataFilter.h:265
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:155
vtkSmoothPolyDataFilter::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkSmoothPolyDataFilter.h:273
vtkSmoothPolyDataFilter::RelaxationFactor
double RelaxationFactor
Definition: vtkSmoothPolyDataFilter.h:266
vtkSmoothPolyDataFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSmoothPolyDataFilter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkSmoothPolyDataFilter::~vtkSmoothPolyDataFilter
~vtkSmoothPolyDataFilter() override=default
vtkSmoothPolyDataFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkSmoothPolyDataFilter::Convergence
double Convergence
Definition: vtkSmoothPolyDataFilter.h:264
vtkSmoothPolyDataFilter::FeatureAngle
double FeatureAngle
Definition: vtkSmoothPolyDataFilter.h:268
vtkSmoothPolyDataFilter::SetSourceData
void SetSourceData(vtkPolyData *source)
Specify the source object which is used to constrain smoothing.
vtkPolyDataAlgorithm.h
vtkSmoothPolyDataFilter::GenerateErrorVectors
vtkTypeBool GenerateErrorVectors
Definition: vtkSmoothPolyDataFilter.h:272
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkSmoothPolyDataFilter::GetSource
vtkPolyData * GetSource()
Specify the source object which is used to constrain smoothing.
vtkSmoothPolyDataFilter::SmoothPoints
vtkSmoothPoints * SmoothPoints
Definition: vtkSmoothPolyDataFilter.h:275
vtkSmoothPolyDataFilter::New
static vtkSmoothPolyDataFilter * New()
Construct object with number of iterations 20; relaxation factor .01; feature edge smoothing turned o...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkSmoothPolyDataFilter::FeatureEdgeSmoothing
vtkTypeBool FeatureEdgeSmoothing
Definition: vtkSmoothPolyDataFilter.h:267
vtkSmoothPolyDataFilter
adjust point positions using Laplacian smoothing
Definition: vtkSmoothPolyDataFilter.h:141
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkSmoothPolyDataFilter::vtkSmoothPolyDataFilter
vtkSmoothPolyDataFilter()
vtkSmoothPolyDataFilter::BoundarySmoothing
vtkTypeBool BoundarySmoothing
Definition: vtkSmoothPolyDataFilter.h:270
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:998
vtkSmoothPolyDataFilter::GenerateErrorScalars
vtkTypeBool GenerateErrorScalars
Definition: vtkSmoothPolyDataFilter.h:271
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:151
vtkSmoothPolyDataFilter::EdgeAngle
double EdgeAngle
Definition: vtkSmoothPolyDataFilter.h:269