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
00053 #ifndef __vtkProperty2D_h
00054 #define __vtkProperty2D_h
00055
00056 #include "vtkObject.h"
00057
00058 class vtkViewport;
00059
00060 #define VTK_BACKGROUND_LOCATION 0
00061 #define VTK_FOREGROUND_LOCATION 1
00062
00063 class VTK_COMMON_EXPORT vtkProperty2D : public vtkObject
00064 {
00065 public:
00066 vtkTypeMacro(vtkProperty2D,vtkObject);
00067 void PrintSelf(ostream& os, vtkIndent indent);
00068
00071 static vtkProperty2D *New();
00072
00074 void DeepCopy(vtkProperty2D *p);
00075
00077
00078 vtkSetVector3Macro(Color, float);
00079 vtkGetVectorMacro(Color, float, 3);
00081
00083
00084 vtkGetMacro(Opacity, float);
00085 vtkSetMacro(Opacity, float);
00087
00089
00091 vtkSetClampMacro(PointSize,float,0,VTK_LARGE_FLOAT);
00092 vtkGetMacro(PointSize,float);
00094
00096
00098 vtkSetClampMacro(LineWidth,float,0,VTK_LARGE_FLOAT);
00099 vtkGetMacro(LineWidth,float);
00101
00103
00106 vtkSetMacro(LineStipplePattern,int);
00107 vtkGetMacro(LineStipplePattern,int);
00109
00111
00114 vtkSetClampMacro(LineStippleRepeatFactor,int,1,VTK_LARGE_INTEGER);
00115 vtkGetMacro(LineStippleRepeatFactor,int);
00117
00119
00125 vtkSetClampMacro( DisplayLocation, int,
00126 VTK_BACKGROUND_LOCATION, VTK_FOREGROUND_LOCATION );
00127 vtkGetMacro( DisplayLocation, int );
00128 void SetDisplayLocationToBackground()
00129 {this->DisplayLocation = VTK_BACKGROUND_LOCATION;};
00130 void SetDisplayLocationToForeground()
00131 {this->DisplayLocation = VTK_FOREGROUND_LOCATION;};
00133
00134
00136 virtual void Render (vtkViewport* vtkNotUsed(viewport)) {}
00137
00138 protected:
00139 vtkProperty2D();
00140 ~vtkProperty2D();
00141
00142 float Color[3];
00143 float Opacity;
00144 float PointSize;
00145 float LineWidth;
00146 int LineStipplePattern;
00147 int LineStippleRepeatFactor;
00148 int DisplayLocation;
00149 private:
00150 vtkProperty2D(const vtkProperty2D&);
00151 void operator=(const vtkProperty2D&);
00152 };
00153
00154
00155 #endif
00156
00157
00158