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
00083 #ifndef __vtkCleanPolyData_h
00084 #define __vtkCleanPolyData_h
00085
00086 #include "vtkPolyDataToPolyDataFilter.h"
00087
00088 class VTK_EXPORT vtkCleanPolyData : public vtkPolyDataToPolyDataFilter
00089 {
00090 public:
00091 static vtkCleanPolyData *New();
00092 const char *GetClassName() {return "vtkCleanPolyData";};
00093 void PrintSelf(ostream& os, vtkIndent indent);
00094
00098 vtkSetMacro(ToleranceIsAbsolute,int);
00099 vtkBooleanMacro(ToleranceIsAbsolute,int);
00100 vtkGetMacro(ToleranceIsAbsolute,int);
00101
00103 vtkSetClampMacro(Tolerance,float,0.0,1.0);
00104 vtkGetMacro(Tolerance,float);
00105
00107 vtkSetClampMacro(AbsoluteTolerance,float,0.0,VTK_LARGE_FLOAT);
00108 vtkGetMacro(AbsoluteTolerance,float);
00109
00111 vtkSetMacro(ConvertLinesToPoints,int);
00112 vtkBooleanMacro(ConvertLinesToPoints,int);
00113 vtkGetMacro(ConvertLinesToPoints,int);
00114
00116 vtkSetMacro(ConvertPolysToLines,int);
00117 vtkBooleanMacro(ConvertPolysToLines,int);
00118 vtkGetMacro(ConvertPolysToLines,int);
00119
00121 vtkSetMacro(ConvertStripsToPolys,int);
00122 vtkBooleanMacro(ConvertStripsToPolys,int);
00123 vtkGetMacro(ConvertStripsToPolys,int);
00124
00127 void SetLocator(vtkPointLocator *locator);
00128 vtkGetObjectMacro(Locator,vtkPointLocator);
00129
00131 void CreateDefaultLocator(void);
00132
00134 void ReleaseLocator(void);
00135
00137 unsigned long int GetMTime();
00138
00140 virtual void OperateOnPoint(float in[3], float out[3]);
00141
00143 virtual void OperateOnBounds(float in[6], float out[6]);
00144
00145 protected:
00146 vtkCleanPolyData();
00147 ~vtkCleanPolyData();
00148 vtkCleanPolyData(const vtkCleanPolyData&) {};
00149 void operator=(const vtkCleanPolyData&) {};
00150
00151
00152 void Execute();
00153
00154 float Tolerance;
00155 float AbsoluteTolerance;
00156 int ConvertLinesToPoints;
00157 int ConvertPolysToLines;
00158 int ConvertStripsToPolys;
00159 int ToleranceIsAbsolute;
00160 vtkPointLocator *Locator;
00161 };
00162
00163 #endif
00164
00165