48 #ifndef vtkAxesActor_h
49 #define vtkAxesActor_h
51 #include "vtkRenderingAnnotationModule.h"
83 int RenderOpaqueGeometry(
vtkViewport *viewport) VTK_OVERRIDE;
84 int RenderTranslucentPolygonalGeometry(
vtkViewport *viewport) VTK_OVERRIDE;
85 int RenderOverlay(
vtkViewport *viewport) VTK_OVERRIDE;
91 int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
96 void ShallowCopy(
vtkProp *prop) VTK_OVERRIDE;
103 void ReleaseGraphicsResources(
vtkWindow *) VTK_OVERRIDE;
110 void GetBounds(
double bounds[6]);
111 double *GetBounds() VTK_OVERRIDE;
131 void SetTotalLength(
double v[3] )
132 { this->SetTotalLength( v[0], v[1], v[2] ); }
133 void SetTotalLength(
double x,
double y,
double z );
134 vtkGetVectorMacro( TotalLength,
double, 3 );
142 { this->SetNormalizedShaftLength( v[0], v[1], v[2] ); }
143 void SetNormalizedShaftLength(
double x,
double y,
double z );
144 vtkGetVectorMacro( NormalizedShaftLength,
double, 3 );
153 { this->SetNormalizedTipLength( v[0], v[1], v[2] ); }
154 void SetNormalizedTipLength(
double x,
double y,
double z );
155 vtkGetVectorMacro( NormalizedTipLength,
double, 3 );
164 { this->SetNormalizedLabelPosition( v[0], v[1], v[2] ); }
165 void SetNormalizedLabelPosition(
double x,
double y,
double z );
166 vtkGetVectorMacro( NormalizedLabelPosition,
double, 3 );
173 vtkSetClampMacro(ConeResolution,
int, 3, 128);
174 vtkGetMacro(ConeResolution,
int);
175 vtkSetClampMacro(SphereResolution,
int, 3, 128);
176 vtkGetMacro(SphereResolution,
int);
177 vtkSetClampMacro(CylinderResolution,
int, 3, 128);
178 vtkGetMacro(CylinderResolution,
int);
186 vtkGetMacro(ConeRadius,
double);
188 vtkGetMacro(SphereRadius,
double);
190 vtkGetMacro(CylinderRadius,
double);
197 void SetShaftType(
int type );
204 vtkGetMacro(ShaftType,
int);
211 void SetTipType(
int type );
218 vtkGetMacro(TipType,
int);
234 vtkGetObjectMacro( UserDefinedShaft,
vtkPolyData );
260 {
return this->XAxisLabel;}
262 {
return this->YAxisLabel;}
264 {
return this->ZAxisLabel;}
270 vtkSetStringMacro( XAxisLabelText );
272 vtkSetStringMacro( YAxisLabelText );
274 vtkSetStringMacro( ZAxisLabelText );
283 vtkGetMacro(AxisLabels,
int);
320 double TotalLength[3];
321 double NormalizedShaftLength[3];
322 double NormalizedTipLength[3];
323 double NormalizedLabelPosition[3];
331 char *XAxisLabelText;
332 char *YAxisLabelText;
333 char *ZAxisLabelText;
343 int SphereResolution;
344 int CylinderResolution;
348 double CylinderRadius;
352 void operator=(const
vtkAxesActor&) VTK_DELETE_FUNCTION;
abstract superclass for all actors, volumes and annotations
vtkCaptionActor2D * GetXAxisCaptionActor2D()
Retrieve handles to the X, Y and Z axis (so that you can set their text properties for example) ...
represents an object (geometry & properties) in a rendered scene
generate a cylinder centered at origin
vtkTypeUInt32 vtkMTimeType
abstract specification for Viewports
represent surface properties of a geometric object
vtkCaptionActor2D * GetYAxisCaptionActor2D()
vtkCaptionActor2D * GetZAxisCaptionActor2D()
abstract specification for renderers
represents an 3D object for placement in a rendered scene
concrete dataset represents vertices, lines, polygons, and triangle strips
window superclass for vtkRenderWindow
create a polygonal sphere centered at the origin
a simple class to control print indentation
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
create a line defined by two end points
void SetShaftTypeToUserDefined()
Set the type of the shaft to a cylinder, line, or user defined geometry.
void SetShaftTypeToLine()
Set the type of the shaft to a cylinder, line, or user defined geometry.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetTipTypeToCone()
Set the type of the tip to a cone, sphere, or user defined geometry.
draw text label associated with a point
void SetNormalizedLabelPosition(double v[3])
Set the normalized (0-1) position of the label along the length of the shaft.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void SetShaftTypeToCylinder()
Set the type of the shaft to a cylinder, line, or user defined geometry.
void SetNormalizedTipLength(double v[3])
Set the normalized (0-1) length of the tip.
virtual void GetActors(vtkPropCollection *)
For some exporters and other other operations we must be able to collect all the actors or volumes...
void SetTipTypeToUserDefined()
Set the type of the tip to a cone, sphere, or user defined geometry.
void SetTipTypeToSphere()
Set the type of the tip to a cone, sphere, or user defined geometry.
void SetNormalizedShaftLength(double v[3])
Set the normalized (0-1) length of the shaft.