42 #ifndef __salomevtkPVAxesActor_h
43 #define __salomevtkPVAxesActor_h
46 #include "vtkProp3D.h"
48 #include <vtkVersion.h>
51 class vtkPropCollection;
56 class vtkCylinderSource;
59 class vtkSphereSource;
73 void PrintSelf(ostream& os, vtkIndent indent);
80 virtual void GetActors(vtkPropCollection *);
84 virtual int RenderOpaqueGeometry(vtkViewport *viewport);
85 #if (VTK_MAJOR_VERSION>5 || VTK_MINOR_VERSION>=2)
86 virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
87 virtual int HasTranslucentPolygonalGeometry();
89 virtual int RenderTranslucentGeometry(vtkViewport *viewport);
94 void ShallowCopy(vtkProp *prop);
100 void ReleaseGraphicsResources(vtkWindow *);
105 void GetBounds(
double bounds[6]);
121 void SetTotalLength(
float v[3] )
123 void SetTotalLength(
float x,
float y,
float z );
124 vtkGetVectorMacro( TotalLength,
float, 3 );
128 void SetNormalizedShaftLength(
float v[3] )
130 void SetNormalizedShaftLength(
float x,
float y,
float z );
131 vtkGetVectorMacro( NormalizedShaftLength,
float, 3 );
135 void SetNormalizedTipLength(
float v[3] )
137 void SetNormalizedTipLength(
float x,
float y,
float z );
138 vtkGetVectorMacro( NormalizedTipLength,
float, 3 );
142 vtkSetClampMacro(ConeResolution,
int, 3, 128);
143 vtkGetMacro(ConeResolution,
int);
144 vtkSetClampMacro(SphereResolution,
int, 3, 128);
145 vtkGetMacro(SphereResolution,
int);
146 vtkSetClampMacro(CylinderResolution,
int, 3, 128);
147 vtkGetMacro(CylinderResolution,
int);
151 vtkSetClampMacro(ConeRadius,
float, 0, VTK_FLOAT_MAX);
152 vtkGetMacro(ConeRadius,
float);
153 vtkSetClampMacro(SphereRadius,
float, 0, VTK_FLOAT_MAX);
154 vtkGetMacro(SphereRadius,
float);
155 vtkSetClampMacro(CylinderRadius,
float, 0, VTK_FLOAT_MAX);
156 vtkGetMacro(CylinderRadius,
float);
160 vtkSetClampMacro(XAxisLabelPosition,
float, 0, 1);
161 vtkGetMacro(XAxisLabelPosition,
float);
162 vtkSetClampMacro(YAxisLabelPosition,
float, 0, 1);
163 vtkGetMacro(YAxisLabelPosition,
float);
164 vtkSetClampMacro(ZAxisLabelPosition,
float, 0, 1);
165 vtkGetMacro(ZAxisLabelPosition,
float);
169 void SetShaftType(
int type );
170 void SetShaftTypeToCylinder()
172 void SetShaftTypeToLine()
174 void SetShaftTypeToUserDefined()
179 void SetTipType(
int type );
180 void SetTipTypeToCone()
182 void SetTipTypeToSphere()
184 void SetTipTypeToUserDefined()
190 void SetUserDefinedTip( vtkPolyData * );
191 vtkGetObjectMacro( UserDefinedTip, vtkPolyData );
195 void SetUserDefinedShaft( vtkPolyData * );
196 vtkGetObjectMacro( UserDefinedShaft, vtkPolyData );
200 vtkProperty *GetXAxisTipProperty();
201 vtkProperty *GetYAxisTipProperty();
202 vtkProperty *GetZAxisTipProperty();
206 vtkProperty *GetXAxisShaftProperty();
207 vtkProperty *GetYAxisShaftProperty();
208 vtkProperty *GetZAxisShaftProperty();
212 vtkProperty *GetXAxisLabelProperty();
213 vtkProperty *GetYAxisLabelProperty();
214 vtkProperty *GetZAxisLabelProperty();
219 vtkSetStringMacro( XAxisLabelText );
220 vtkSetStringMacro( YAxisLabelText );
221 vtkSetStringMacro( ZAxisLabelText );
241 void AddToRender( vtkRenderer* theRenderer );
262 float TotalLength[3];
263 float NormalizedShaftLength[3];
264 float NormalizedTipLength[3];