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 "vtkPolyDataAlgorithm.h"
102 
103 class vtkSmoothPoints;
104 
106 {
107 public:
109  void PrintSelf(ostream& os, vtkIndent indent);
110 
116  static vtkSmoothPolyDataFilter *New();
117 
119 
121  vtkSetClampMacro(Convergence,double,0.0,1.0);
122  vtkGetMacro(Convergence,double);
124 
126 
127  vtkSetClampMacro(NumberOfIterations,int,0,VTK_LARGE_INTEGER);
128  vtkGetMacro(NumberOfIterations,int);
130 
132 
137  vtkSetMacro(RelaxationFactor,double);
138  vtkGetMacro(RelaxationFactor,double);
140 
142 
143  vtkSetMacro(FeatureEdgeSmoothing,int);
144  vtkGetMacro(FeatureEdgeSmoothing,int);
145  vtkBooleanMacro(FeatureEdgeSmoothing,int);
147 
149 
150  vtkSetClampMacro(FeatureAngle,double,0.0,180.0);
151  vtkGetMacro(FeatureAngle,double);
153 
155 
157  vtkSetClampMacro(EdgeAngle,double,0.0,180.0);
158  vtkGetMacro(EdgeAngle,double);
160 
162 
163  vtkSetMacro(BoundarySmoothing,int);
164  vtkGetMacro(BoundarySmoothing,int);
165  vtkBooleanMacro(BoundarySmoothing,int);
167 
169 
170  vtkSetMacro(GenerateErrorScalars,int);
171  vtkGetMacro(GenerateErrorScalars,int);
172  vtkBooleanMacro(GenerateErrorScalars,int);
174 
176 
177  vtkSetMacro(GenerateErrorVectors,int);
178  vtkGetMacro(GenerateErrorVectors,int);
179  vtkBooleanMacro(GenerateErrorVectors,int);
181 
183 
186  void SetSource(vtkPolyData *source);
187  vtkPolyData *GetSource();
189 
190 protected:
193 
196 
197  double Convergence;
201  double FeatureAngle;
202  double EdgeAngle;
206 
207  vtkSmoothPoints *SmoothPoints;
208 private:
209  vtkSmoothPolyDataFilter(const vtkSmoothPolyDataFilter&); // Not implemented.
210  void operator=(const vtkSmoothPolyDataFilter&); // Not implemented.
211 };
212 
213 #endif
#define VTK_GRAPHICS_EXPORT
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:81
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:37
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Store zero or more vtkInformation instances.
#define VTK_LARGE_INTEGER
Definition: vtkType.h:148
adjust point positions using Laplacian smoothing