00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00043 #ifndef __vtkButtonSource_h
00044 #define __vtkButtonSource_h
00045
00046 #include "vtkPolyDataAlgorithm.h"
00047
00048 #define VTK_TEXTURE_STYLE_FIT_IMAGE 0
00049 #define VTK_TEXTURE_STYLE_PROPORTIONAL 1
00050
00051 class VTK_GRAPHICS_EXPORT vtkButtonSource : public vtkPolyDataAlgorithm
00052 {
00053 public:
00054 void PrintSelf(ostream& os, vtkIndent indent);
00055 vtkTypeRevisionMacro(vtkButtonSource,vtkPolyDataAlgorithm);
00056
00058
00059 vtkSetVector3Macro(Center,double);
00060 vtkGetVectorMacro(Center,double,3);
00062
00064
00067 vtkSetClampMacro(TextureStyle,int,VTK_TEXTURE_STYLE_FIT_IMAGE,
00068 VTK_TEXTURE_STYLE_PROPORTIONAL);
00069 vtkGetMacro(TextureStyle,int);
00070 void SetTextureStyleToFitImage()
00071 {this->SetTextureStyle(VTK_TEXTURE_STYLE_FIT_IMAGE);}
00072 void SetTextureStyleToProportional()
00073 {this->SetTextureStyle(VTK_TEXTURE_STYLE_PROPORTIONAL);}
00075
00077
00079 vtkSetVector2Macro(TextureDimensions,int);
00080 vtkGetVector2Macro(TextureDimensions,int);
00082
00084
00085 vtkSetVector2Macro(ShoulderTextureCoordinate,double);
00086 vtkGetVector2Macro(ShoulderTextureCoordinate,double);
00088
00090
00094 vtkSetMacro(TwoSided,int);
00095 vtkGetMacro(TwoSided,int);
00096 vtkBooleanMacro(TwoSided,int);
00098
00099 protected:
00100 vtkButtonSource();
00101 ~vtkButtonSource() {}
00102
00103 double Center[3];
00104 double ShoulderTextureCoordinate[2];
00105 int TextureStyle;
00106 int TextureDimensions[2];
00107 int TwoSided;
00108
00109 private:
00110 vtkButtonSource(const vtkButtonSource&);
00111 void operator=(const vtkButtonSource&);
00112
00113 };
00114
00115 #endif
00116
00117