00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00121 #ifndef __vtkSmoothPolyDataFilter_h
00122 #define __vtkSmoothPolyDataFilter_h
00123
00124 #include "vtkPolyDataToPolyDataFilter.h"
00125
00126 class vtkSmoothPoints;
00127
00128 class VTK_EXPORT vtkSmoothPolyDataFilter : public vtkPolyDataToPolyDataFilter
00129 {
00130 public:
00131 vtkTypeMacro(vtkSmoothPolyDataFilter,vtkPolyDataToPolyDataFilter);
00132 void PrintSelf(ostream& os, vtkIndent indent);
00133
00139 static vtkSmoothPolyDataFilter *New();
00140
00143 vtkSetClampMacro(Convergence,float,0.0,1.0);
00144 vtkGetMacro(Convergence,float);
00145
00147 vtkSetClampMacro(NumberOfIterations,int,0,VTK_LARGE_INTEGER);
00148 vtkGetMacro(NumberOfIterations,int);
00149
00155 vtkSetMacro(RelaxationFactor,float);
00156 vtkGetMacro(RelaxationFactor,float);
00157
00159 vtkSetMacro(FeatureEdgeSmoothing,int);
00160 vtkGetMacro(FeatureEdgeSmoothing,int);
00161 vtkBooleanMacro(FeatureEdgeSmoothing,int);
00162
00164 vtkSetClampMacro(FeatureAngle,float,0.0,180.0);
00165 vtkGetMacro(FeatureAngle,float);
00166
00169 vtkSetClampMacro(EdgeAngle,float,0.0,180.0);
00170 vtkGetMacro(EdgeAngle,float);
00171
00173 vtkSetMacro(BoundarySmoothing,int);
00174 vtkGetMacro(BoundarySmoothing,int);
00175 vtkBooleanMacro(BoundarySmoothing,int);
00176
00178 vtkSetMacro(GenerateErrorScalars,int);
00179 vtkGetMacro(GenerateErrorScalars,int);
00180 vtkBooleanMacro(GenerateErrorScalars,int);
00181
00183 vtkSetMacro(GenerateErrorVectors,int);
00184 vtkGetMacro(GenerateErrorVectors,int);
00185 vtkBooleanMacro(GenerateErrorVectors,int);
00186
00190 void SetSource(vtkPolyData *source);
00191 vtkPolyData *GetSource();
00192
00193 protected:
00194 vtkSmoothPolyDataFilter();
00195 ~vtkSmoothPolyDataFilter() {};
00196 vtkSmoothPolyDataFilter(const vtkSmoothPolyDataFilter&) {};
00197 void operator=(const vtkSmoothPolyDataFilter&) {};
00198
00199 void Execute();
00200
00201 float Convergence;
00202 int NumberOfIterations;
00203 float RelaxationFactor;
00204 int FeatureEdgeSmoothing;
00205 float FeatureAngle;
00206 float EdgeAngle;
00207 int BoundarySmoothing;
00208 int GenerateErrorScalars;
00209 int GenerateErrorVectors;
00210
00211 vtkSmoothPoints *SmoothPoints;
00212
00213 };
00214
00215
00216 #endif
00217
00218