25 #ifndef vtkPVAxesActor_h 26 #define vtkPVAxesActor_h 28 #include "vtkPVVTKExtensionsRenderingModule.h" 29 #include "vtkProp3D.h" 32 class vtkPropCollection;
37 class vtkCylinderSource;
40 class vtkSphereSource;
49 void PrintSelf(ostream& os, vtkIndent indent);
56 virtual void GetActors(vtkPropCollection*);
62 virtual int RenderOpaqueGeometry(vtkViewport* viewport);
63 virtual int RenderTranslucentPolygonalGeometry(vtkViewport* viewport);
64 virtual int HasTranslucentPolygonalGeometry();
70 void ShallowCopy(vtkProp* prop);
77 void ReleaseGraphicsResources(vtkWindow*);
84 void GetBounds(
double bounds[6]);
91 vtkMTimeType GetMTime();
99 virtual vtkMTimeType GetRedrawMTime();
106 void SetTotalLength(
float x,
float y,
float z);
107 vtkGetVectorMacro(TotalLength,
float, 3);
115 void SetNormalizedShaftLength(
float x,
float y,
float z);
116 vtkGetVectorMacro(NormalizedShaftLength,
float, 3);
124 void SetNormalizedTipLength(
float x,
float y,
float z);
125 vtkGetVectorMacro(NormalizedTipLength,
float, 3);
132 vtkSetClampMacro(ConeResolution,
int, 3, 128);
133 vtkGetMacro(ConeResolution,
int);
134 vtkSetClampMacro(SphereResolution,
int, 3, 128);
135 vtkGetMacro(SphereResolution,
int);
136 vtkSetClampMacro(CylinderResolution,
int, 3, 128);
137 vtkGetMacro(CylinderResolution,
int);
144 vtkSetClampMacro(ConeRadius,
float, 0, VTK_FLOAT_MAX);
145 vtkGetMacro(ConeRadius,
float);
146 vtkSetClampMacro(SphereRadius,
float, 0, VTK_FLOAT_MAX);
147 vtkGetMacro(SphereRadius,
float);
148 vtkSetClampMacro(CylinderRadius,
float, 0, VTK_FLOAT_MAX);
149 vtkGetMacro(CylinderRadius,
float);
156 vtkSetClampMacro(XAxisLabelPosition,
float, 0, 1);
157 vtkGetMacro(XAxisLabelPosition,
float);
158 vtkSetClampMacro(YAxisLabelPosition,
float, 0, 1);
159 vtkGetMacro(YAxisLabelPosition,
float);
160 vtkSetClampMacro(ZAxisLabelPosition,
float, 0, 1);
161 vtkGetMacro(ZAxisLabelPosition,
float);
167 void SetShaftType(
int type);
175 void SetTipType(
int type);
184 void SetUserDefinedTip(vtkPolyData*);
185 vtkGetObjectMacro(UserDefinedTip, vtkPolyData);
192 void SetUserDefinedShaft(vtkPolyData*);
193 vtkGetObjectMacro(UserDefinedShaft, vtkPolyData);
200 vtkProperty* GetXAxisTipProperty();
201 vtkProperty* GetYAxisTipProperty();
202 vtkProperty* GetZAxisTipProperty();
209 vtkProperty* GetXAxisShaftProperty();
210 vtkProperty* GetYAxisShaftProperty();
211 vtkProperty* GetZAxisShaftProperty();
218 vtkProperty* GetXAxisLabelProperty();
219 vtkProperty* GetYAxisLabelProperty();
220 vtkProperty* GetZAxisLabelProperty();
228 vtkSetStringMacro(XAxisLabelText);
229 vtkSetStringMacro(YAxisLabelText);
230 vtkSetStringMacro(ZAxisLabelText);
266 float TotalLength[3];
267 float NormalizedShaftLength[3];
268 float NormalizedTipLength[3];
void SetShaftTypeToUserDefined()
vtkVectorText * XAxisVectorText
vtkVectorText * YAxisVectorText
void SetNormalizedTipLength(float v[3])
Set the normalized (0-1) length of the tip.
void SetShaftTypeToLine()
vtkSphereSource * SphereSource
void SetShaftTypeToCylinder()
void SetTotalLength(float v[3])
Set the total length of the axes in 3 dimensions.
void SetNormalizedShaftLength(float v[3])
Set the normalized (0-1) length of the shaft.
vtkCylinderSource * CylinderSource
vtkPolyData * UserDefinedTip
vtkVectorText * ZAxisVectorText
vtkConeSource * ConeSource
vtkLineSource * LineSource
void SetTipTypeToSphere()
vtkPolyData * UserDefinedShaft
void SetTipTypeToUserDefined()