00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00042 #ifndef __vtkTextureMapToPlane_h
00043 #define __vtkTextureMapToPlane_h
00044
00045 #include "vtkDataSetAlgorithm.h"
00046
00047 class VTK_GRAPHICS_EXPORT vtkTextureMapToPlane : public vtkDataSetAlgorithm
00048 {
00049 public:
00050 vtkTypeRevisionMacro(vtkTextureMapToPlane,vtkDataSetAlgorithm);
00051 void PrintSelf(ostream& os, vtkIndent indent);
00052
00055 static vtkTextureMapToPlane *New();
00056
00058
00060 vtkSetVector3Macro(Origin,double);
00061 vtkGetVectorMacro(Origin,double,3);
00063
00065
00066 vtkSetVector3Macro(Point1,double);
00067 vtkGetVectorMacro(Point1,double,3);
00069
00071
00072 vtkSetVector3Macro(Point2,double);
00073 vtkGetVectorMacro(Point2,double,3);
00075
00077
00080 vtkSetVector3Macro(Normal,double);
00081 vtkGetVectorMacro(Normal,double,3);
00083
00085
00086 vtkSetVector2Macro(SRange,double);
00087 vtkGetVectorMacro(SRange,double,2);
00089
00091
00092 vtkSetVector2Macro(TRange,double);
00093 vtkGetVectorMacro(TRange,double,2);
00095
00097
00098 vtkSetMacro(AutomaticPlaneGeneration,int);
00099 vtkGetMacro(AutomaticPlaneGeneration,int);
00100 vtkBooleanMacro(AutomaticPlaneGeneration,int);
00102
00103 protected:
00104 vtkTextureMapToPlane();
00105 ~vtkTextureMapToPlane() {};
00106
00107 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00108 void ComputeNormal(vtkDataSet *output);
00109
00110 double Origin[3];
00111 double Point1[3];
00112 double Point2[3];
00113 double Normal[3];
00114 double SRange[2];
00115 double TRange[2];
00116 int AutomaticPlaneGeneration;
00117
00118 private:
00119 vtkTextureMapToPlane(const vtkTextureMapToPlane&);
00120 void operator=(const vtkTextureMapToPlane&);
00121 };
00122
00123 #endif