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 =========================================================================*/
98 #ifndef vtkSmoothPolyDataFilter_h
99 #define vtkSmoothPolyDataFilter_h
100 
101 #include "vtkFiltersCoreModule.h" // For export macro
102 #include "vtkPolyDataAlgorithm.h"
103 #include <memory> // For std::unique_ptr<>
104 
105 class vtkSmoothPoints;
106 
107 class VTKFILTERSCORE_EXPORT vtkSmoothPolyDataFilter : public vtkPolyDataAlgorithm
108 {
109 public:
117  static vtkSmoothPolyDataFilter* New();
118 
120 
125  void PrintSelf(ostream& os, vtkIndent indent) override;
127 
129 
133  vtkSetClampMacro(Convergence, double, 0.0, 1.0);
134  vtkGetMacro(Convergence, double);
136 
138 
141  vtkSetClampMacro(NumberOfIterations, int, 0, VTK_INT_MAX);
142  vtkGetMacro(NumberOfIterations, int);
144 
146 
153  vtkSetMacro(RelaxationFactor, double);
154  vtkGetMacro(RelaxationFactor, double);
156 
158 
161  vtkSetMacro(FeatureEdgeSmoothing, vtkTypeBool);
162  vtkGetMacro(FeatureEdgeSmoothing, vtkTypeBool);
163  vtkBooleanMacro(FeatureEdgeSmoothing, vtkTypeBool);
165 
167 
170  vtkSetClampMacro(FeatureAngle, double, 0.0, 180.0);
171  vtkGetMacro(FeatureAngle, double);
173 
175 
179  vtkSetClampMacro(EdgeAngle, double, 0.0, 180.0);
180  vtkGetMacro(EdgeAngle, double);
182 
184 
187  vtkSetMacro(BoundarySmoothing, vtkTypeBool);
188  vtkGetMacro(BoundarySmoothing, vtkTypeBool);
189  vtkBooleanMacro(BoundarySmoothing, vtkTypeBool);
191 
193 
196  vtkSetMacro(GenerateErrorScalars, vtkTypeBool);
197  vtkGetMacro(GenerateErrorScalars, vtkTypeBool);
198  vtkBooleanMacro(GenerateErrorScalars, vtkTypeBool);
200 
202 
205  vtkSetMacro(GenerateErrorVectors, vtkTypeBool);
206  vtkGetMacro(GenerateErrorVectors, vtkTypeBool);
207  vtkBooleanMacro(GenerateErrorVectors, vtkTypeBool);
209 
211 
216  void SetSourceData(vtkPolyData* source);
217  vtkPolyData* GetSource();
219 
221 
226  vtkSetMacro(OutputPointsPrecision, int);
227  vtkGetMacro(OutputPointsPrecision, int);
229 
230 protected:
232  ~vtkSmoothPolyDataFilter() override = default;
233 
235  int FillInputPortInformation(int port, vtkInformation* info) override;
236 
237  double Convergence;
241  double FeatureAngle;
242  double EdgeAngle;
247 
248  std::unique_ptr<vtkSmoothPoints> SmoothPoints;
249 
250 private:
252  void operator=(const vtkSmoothPolyDataFilter&) = delete;
253 };
254 
255 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:155
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:90
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
std::unique_ptr< vtkSmoothPoints > SmoothPoints
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
adjust point positions using Laplacian smoothing