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
00081 #ifndef __vtkLinearExtrusionFilter_h
00082 #define __vtkLinearExtrusionFilter_h
00083
00084 #include "vtkPolyDataToPolyDataFilter.h"
00085
00086 #define VTK_VECTOR_EXTRUSION 1
00087 #define VTK_NORMAL_EXTRUSION 2
00088 #define VTK_POINT_EXTRUSION 3
00089
00090 class VTK_GRAPHICS_EXPORT vtkLinearExtrusionFilter : public vtkPolyDataToPolyDataFilter
00091 {
00092 public:
00093 vtkTypeMacro(vtkLinearExtrusionFilter,vtkPolyDataToPolyDataFilter);
00094 void PrintSelf(ostream& os, vtkIndent indent);
00095
00098 static vtkLinearExtrusionFilter *New();
00099
00101
00102 vtkSetClampMacro(ExtrusionType,int,VTK_VECTOR_EXTRUSION,VTK_POINT_EXTRUSION);
00103 vtkGetMacro(ExtrusionType,int);
00104 void SetExtrusionTypeToVectorExtrusion()
00105 {this->SetExtrusionType(VTK_VECTOR_EXTRUSION);};
00106 void SetExtrusionTypeToNormalExtrusion()
00107 {this->SetExtrusionType(VTK_NORMAL_EXTRUSION);};
00108 void SetExtrusionTypeToPointExtrusion()
00109 {this->SetExtrusionType(VTK_POINT_EXTRUSION);};
00111
00113
00114 vtkSetMacro(Capping,int);
00115 vtkGetMacro(Capping,int);
00116 vtkBooleanMacro(Capping,int);
00118
00120
00121 vtkSetMacro(ScaleFactor,float);
00122 vtkGetMacro(ScaleFactor,float);
00124
00126
00128 vtkSetVector3Macro(Vector,float);
00129 vtkGetVectorMacro(Vector,float,3);
00131
00133
00135 vtkSetVector3Macro(ExtrusionPoint,float);
00136 vtkGetVectorMacro(ExtrusionPoint,float,3);
00138
00139 protected:
00140 vtkLinearExtrusionFilter();
00141 ~vtkLinearExtrusionFilter() {};
00142
00143 void Execute();
00144 int ExtrusionType;
00145 int Capping;
00146 float ScaleFactor;
00147 float Vector[3];
00148 float ExtrusionPoint[3];
00149
00150
00151 float *(vtkLinearExtrusionFilter::*ExtrudePoint)(float x[3], vtkIdType id,
00152 vtkDataArray *normals);
00153 float *ViaNormal(float x[3], vtkIdType id, vtkDataArray *normals);
00154 float *ViaVector(float x[3], vtkIdType id, vtkDataArray *normals=0);
00155 float *ViaPoint(float x[3], vtkIdType id, vtkDataArray *normals=0);
00156
00157
00158 private:
00159 vtkLinearExtrusionFilter(const vtkLinearExtrusionFilter&);
00160 void operator=(const vtkLinearExtrusionFilter&);
00161 };
00162
00163 #endif