VTK  9.0.20200712
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 
114  static vtkSmoothPolyDataFilter* New();
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 
204  void SetSourceData(vtkPolyData* source);
205  vtkPolyData* GetSource();
207 
209 
214  vtkSetMacro(OutputPointsPrecision, int);
215  vtkGetMacro(OutputPointsPrecision, int);
217 
218 protected:
220  ~vtkSmoothPolyDataFilter() override = default;
221 
223  int FillInputPortInformation(int port, vtkInformation* info) override;
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
vtkSmoothPolyDataFilter::NumberOfIterations
int NumberOfIterations
Definition: vtkSmoothPolyDataFilter.h:226
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:147
vtkSmoothPolyDataFilter::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkSmoothPolyDataFilter.h:234
vtkSmoothPolyDataFilter::RelaxationFactor
double RelaxationFactor
Definition: vtkSmoothPolyDataFilter.h:227
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSmoothPolyDataFilter::Convergence
double Convergence
Definition: vtkSmoothPolyDataFilter.h:225
vtkSmoothPolyDataFilter::FeatureAngle
double FeatureAngle
Definition: vtkSmoothPolyDataFilter.h:229
vtkPolyDataAlgorithm.h
vtkSmoothPolyDataFilter::GenerateErrorVectors
vtkTypeBool GenerateErrorVectors
Definition: vtkSmoothPolyDataFilter.h:233
vtkX3D::port
Definition: vtkX3D.h:453
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkSmoothPolyDataFilter::SmoothPoints
vtkSmoothPoints * SmoothPoints
Definition: vtkSmoothPolyDataFilter.h:236
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSmoothPolyDataFilter::FeatureEdgeSmoothing
vtkTypeBool FeatureEdgeSmoothing
Definition: vtkSmoothPolyDataFilter.h:228
vtkSmoothPolyDataFilter
adjust point positions using Laplacian smoothing
Definition: vtkSmoothPolyDataFilter.h:101
vtkPolyDataAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
Definition: vtkX3D.h:382
vtkSmoothPolyDataFilter::BoundarySmoothing
vtkTypeBool BoundarySmoothing
Definition: vtkSmoothPolyDataFilter.h:231
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:959
vtkSmoothPolyDataFilter::GenerateErrorScalars
vtkTypeBool GenerateErrorScalars
Definition: vtkSmoothPolyDataFilter.h:232
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41
vtkSmoothPolyDataFilter::EdgeAngle
double EdgeAngle
Definition: vtkSmoothPolyDataFilter.h:230