VTK
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 
104 class vtkSmoothPoints;
105 
107 {
108 public:
110  void PrintSelf(ostream& os, vtkIndent indent);
111 
117  static vtkSmoothPolyDataFilter *New();
118 
120 
122  vtkSetClampMacro(Convergence,double,0.0,1.0);
123  vtkGetMacro(Convergence,double);
125 
127 
128  vtkSetClampMacro(NumberOfIterations,int,0,VTK_INT_MAX);
129  vtkGetMacro(NumberOfIterations,int);
131 
133 
138  vtkSetMacro(RelaxationFactor,double);
139  vtkGetMacro(RelaxationFactor,double);
141 
143 
144  vtkSetMacro(FeatureEdgeSmoothing,int);
145  vtkGetMacro(FeatureEdgeSmoothing,int);
146  vtkBooleanMacro(FeatureEdgeSmoothing,int);
148 
150 
151  vtkSetClampMacro(FeatureAngle,double,0.0,180.0);
152  vtkGetMacro(FeatureAngle,double);
154 
156 
158  vtkSetClampMacro(EdgeAngle,double,0.0,180.0);
159  vtkGetMacro(EdgeAngle,double);
161 
163 
164  vtkSetMacro(BoundarySmoothing,int);
165  vtkGetMacro(BoundarySmoothing,int);
166  vtkBooleanMacro(BoundarySmoothing,int);
168 
170 
171  vtkSetMacro(GenerateErrorScalars,int);
172  vtkGetMacro(GenerateErrorScalars,int);
173  vtkBooleanMacro(GenerateErrorScalars,int);
175 
177 
178  vtkSetMacro(GenerateErrorVectors,int);
179  vtkGetMacro(GenerateErrorVectors,int);
180  vtkBooleanMacro(GenerateErrorVectors,int);
182 
184 
187  void SetSourceData(vtkPolyData *source);
188  vtkPolyData *GetSource();
190 
192 
195  vtkSetMacro(OutputPointsPrecision,int);
196  vtkGetMacro(OutputPointsPrecision,int);
198 
199 protected:
202 
205 
206  double Convergence;
210  double FeatureAngle;
211  double EdgeAngle;
216 
217  vtkSmoothPoints *SmoothPoints;
218 private:
219  vtkSmoothPolyDataFilter(const vtkSmoothPolyDataFilter&); // Not implemented.
220  void operator=(const vtkSmoothPolyDataFilter&); // Not implemented.
221 };
222 
223 #endif
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKFILTERSCORE_EXPORT
#define VTK_INT_MAX
Definition: vtkType.h:130
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Store zero or more vtkInformation instances.
adjust point positions using Laplacian smoothing