VTK
|
a 3D axes representation More...
#include <vtkAxesActor.h>
Public Types | |
enum | { CYLINDER_SHAFT, LINE_SHAFT, USER_DEFINED_SHAFT } |
enum | { CONE_TIP, SPHERE_TIP, USER_DEFINED_TIP } |
typedef vtkProp3D | Superclass |
![]() | |
typedef vtkProp | Superclass |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | GetActors (vtkPropCollection *) |
virtual int | HasTranslucentPolygonalGeometry () |
void | ShallowCopy (vtkProp *prop) |
void | ReleaseGraphicsResources (vtkWindow *) |
unsigned long int | GetMTime () |
virtual unsigned long | GetRedrawMTime () |
virtual int | RenderOpaqueGeometry (vtkViewport *viewport) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *viewport) |
virtual int | RenderOverlay (vtkViewport *viewport) |
void | GetBounds (double bounds[6]) |
double * | GetBounds () |
void | SetTotalLength (double v[3]) |
void | SetTotalLength (double x, double y, double z) |
virtual double * | GetTotalLength () |
virtual void | GetTotalLength (double data[3]) |
void | SetNormalizedShaftLength (double v[3]) |
void | SetNormalizedShaftLength (double x, double y, double z) |
virtual double * | GetNormalizedShaftLength () |
virtual void | GetNormalizedShaftLength (double data[3]) |
void | SetNormalizedTipLength (double v[3]) |
void | SetNormalizedTipLength (double x, double y, double z) |
virtual double * | GetNormalizedTipLength () |
virtual void | GetNormalizedTipLength (double data[3]) |
void | SetNormalizedLabelPosition (double v[3]) |
void | SetNormalizedLabelPosition (double x, double y, double z) |
virtual double * | GetNormalizedLabelPosition () |
virtual void | GetNormalizedLabelPosition (double data[3]) |
virtual void | SetConeResolution (int) |
virtual int | GetConeResolution () |
virtual void | SetSphereResolution (int) |
virtual int | GetSphereResolution () |
virtual void | SetCylinderResolution (int) |
virtual int | GetCylinderResolution () |
virtual void | SetConeRadius (double) |
virtual double | GetConeRadius () |
virtual void | SetSphereRadius (double) |
virtual double | GetSphereRadius () |
virtual void | SetCylinderRadius (double) |
virtual double | GetCylinderRadius () |
void | SetShaftType (int type) |
void | SetShaftTypeToCylinder () |
void | SetShaftTypeToLine () |
void | SetShaftTypeToUserDefined () |
virtual int | GetShaftType () |
void | SetTipType (int type) |
void | SetTipTypeToCone () |
void | SetTipTypeToSphere () |
void | SetTipTypeToUserDefined () |
virtual int | GetTipType () |
void | SetUserDefinedTip (vtkPolyData *) |
virtual vtkPolyData * | GetUserDefinedTip () |
void | SetUserDefinedShaft (vtkPolyData *) |
virtual vtkPolyData * | GetUserDefinedShaft () |
vtkProperty * | GetXAxisTipProperty () |
vtkProperty * | GetYAxisTipProperty () |
vtkProperty * | GetZAxisTipProperty () |
vtkProperty * | GetXAxisShaftProperty () |
vtkProperty * | GetYAxisShaftProperty () |
vtkProperty * | GetZAxisShaftProperty () |
vtkCaptionActor2D * | GetXAxisCaptionActor2D () |
vtkCaptionActor2D * | GetYAxisCaptionActor2D () |
vtkCaptionActor2D * | GetZAxisCaptionActor2D () |
virtual void | SetXAxisLabelText (const char *) |
virtual char * | GetXAxisLabelText () |
virtual void | SetYAxisLabelText (const char *) |
virtual char * | GetYAxisLabelText () |
virtual void | SetZAxisLabelText (const char *) |
virtual char * | GetZAxisLabelText () |
virtual void | SetAxisLabels (int) |
virtual int | GetAxisLabels () |
virtual void | AxisLabelsOn () |
virtual void | AxisLabelsOff () |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | ShallowCopy (vtkProp *prop) |
void | SetScale (double s) |
double * | GetCenter () |
double * | GetXRange () |
double * | GetYRange () |
double * | GetZRange () |
double | GetLength () |
void | RotateX (double) |
void | RotateY (double) |
void | RotateZ (double) |
void | RotateWXYZ (double, double, double, double) |
void | SetOrientation (double, double, double) |
void | SetOrientation (double a[3]) |
double * | GetOrientationWXYZ () |
void | AddOrientation (double, double, double) |
void | AddOrientation (double a[3]) |
void | PokeMatrix (vtkMatrix4x4 *matrix) |
void | InitPathTraversal () |
unsigned long int | GetMTime () |
unsigned long int | GetUserTransformMatrixMTime () |
virtual void | ComputeMatrix () |
virtual void | SetPosition (double _arg1, double _arg2, double _arg3) |
virtual void | SetPosition (double _arg[3]) |
virtual double * | GetPosition () |
virtual void | GetPosition (double data[3]) |
void | AddPosition (double deltaPosition[3]) |
void | AddPosition (double deltaX, double deltaY, double deltaZ) |
virtual void | SetOrigin (double _arg1, double _arg2, double _arg3) |
virtual void | SetOrigin (double _arg[3]) |
virtual double * | GetOrigin () |
virtual void | GetOrigin (double data[3]) |
virtual void | SetScale (double _arg1, double _arg2, double _arg3) |
virtual void | SetScale (double _arg[3]) |
virtual double * | GetScale () |
virtual void | GetScale (double data[3]) |
void | SetUserTransform (vtkLinearTransform *transform) |
virtual vtkLinearTransform * | GetUserTransform () |
void | SetUserMatrix (vtkMatrix4x4 *matrix) |
vtkMatrix4x4 * | GetUserMatrix () |
virtual void | GetMatrix (vtkMatrix4x4 *m) |
virtual void | GetMatrix (double m[16]) |
void | GetBounds (double bounds[6]) |
double * | GetOrientation () |
void | GetOrientation (double o[3]) |
vtkMatrix4x4 * | GetMatrix () |
virtual int | GetIsIdentity () |
![]() | |
virtual void | Pick () |
virtual bool | HasKeys (vtkInformation *requiredKeys) |
virtual void | BuildPaths (vtkAssemblyPaths *paths, vtkAssemblyPath *path) |
virtual void | GetActors2D (vtkPropCollection *) |
virtual void | GetVolumes (vtkPropCollection *) |
virtual void | SetVisibility (int) |
virtual int | GetVisibility () |
virtual void | VisibilityOn () |
virtual void | VisibilityOff () |
virtual void | SetPickable (int) |
virtual int | GetPickable () |
virtual void | PickableOn () |
virtual void | PickableOff () |
virtual void | SetDragable (int) |
virtual int | GetDragable () |
virtual void | DragableOn () |
virtual void | DragableOff () |
virtual void | SetUseBounds (bool) |
virtual bool | GetUseBounds () |
virtual void | UseBoundsOn () |
virtual void | UseBoundsOff () |
virtual vtkAssemblyPath * | GetNextPath () |
virtual int | GetNumberOfPaths () |
virtual void | PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix)) |
virtual vtkInformation * | GetPropertyKeys () |
virtual void | SetPropertyKeys (vtkInformation *keys) |
virtual int | RenderVolumetricGeometry (vtkViewport *) |
virtual bool | RenderFilteredOpaqueGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
virtual bool | RenderFilteredTranslucentPolygonalGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
virtual bool | RenderFilteredVolumetricGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
virtual bool | RenderFilteredOverlay (vtkViewport *v, vtkInformation *requiredKeys) |
virtual double | GetEstimatedRenderTime (vtkViewport *) |
virtual double | GetEstimatedRenderTime () |
virtual void | SetEstimatedRenderTime (double t) |
virtual void | RestoreEstimatedRenderTime () |
virtual void | AddEstimatedRenderTime (double t, vtkViewport *vtkNotUsed(vp)) |
virtual void | SetAllocatedRenderTime (double t, vtkViewport *vtkNotUsed(v)) |
virtual double | GetAllocatedRenderTime () |
void | SetRenderTimeMultiplier (double t) |
virtual double | GetRenderTimeMultiplier () |
virtual bool | GetSupportsSelection () |
virtual int | GetNumberOfConsumers () |
void | AddConsumer (vtkObject *c) |
void | RemoveConsumer (vtkObject *c) |
vtkObject * | GetConsumer (int i) |
int | IsConsumer (vtkObject *c) |
![]() | |
virtual void | DebugOn () |
virtual void | DebugOff () |
unsigned char | GetDebug () |
void | SetDebug (unsigned char debugFlag) |
virtual void | Modified () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &os) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkAxesActor * | New () |
static int | IsTypeOf (const char *type) |
static vtkAxesActor * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkProp3D * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkProp * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObject *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkAxesActor () | |
~vtkAxesActor () | |
void | UpdateProps () |
![]() | |
vtkProp3D () | |
~vtkProp3D () | |
![]() | |
vtkProp () | |
~vtkProp () | |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &os) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
a 3D axes representation
vtkAxesActor is a hybrid 2D/3D actor used to represent 3D axes in a scene. The user can define the geometry to use for the shaft or the tip, and the user can set the text for the three axes. The text will appear to follow the camera since it is implemented by means of vtkCaptionActor2D. All of the functionality of the underlying vtkCaptionActor2D objects are accessable so that, for instance, the font attributes of the axes text can be manipulated through vtkTextProperty. Since this class inherits from vtkProp3D, one can apply a user transform to the underlying geometry and the positioning of the labels. For example, a rotation transform could be used to generate a left-handed axes representation.
Definition at line 69 of file vtkAxesActor.h.
typedef vtkProp3D vtkAxesActor::Superclass |
Definition at line 73 of file vtkAxesActor.h.
anonymous enum |
Enumerator | |
---|---|
CYLINDER_SHAFT | |
LINE_SHAFT | |
USER_DEFINED_SHAFT |
Definition at line 250 of file vtkAxesActor.h.
anonymous enum |
Enumerator | |
---|---|
CONE_TIP | |
SPHERE_TIP | |
USER_DEFINED_TIP |
Definition at line 257 of file vtkAxesActor.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented from vtkProp3D.
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkProp3D.
|
static |
|
virtual |
|
virtual |
For some exporters and other other operations we must be able to collect all the actors or volumes. These methods are used in that process.
Reimplemented from vtkProp.
|
virtual |
Support the standard render methods.
Reimplemented from vtkProp.
|
virtual |
Support the standard render methods.
Reimplemented from vtkProp.
|
virtual |
Support the standard render methods.
Reimplemented from vtkProp.
|
virtual |
Does this prop have some translucent polygonal geometry?
Reimplemented from vtkProp.
|
virtual |
|
virtual |
Release any graphics resources that are being consumed by this actor. The parameter window could be used to determine which graphic resources to release.
Reimplemented from vtkProp.
void vtkAxesActor::GetBounds | ( | double | bounds[6]) |
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax). (The method GetBounds(double bounds[6]) is available from the superclass.)
|
virtual |
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax). (The method GetBounds(double bounds[6]) is available from the superclass.)
Implements vtkProp3D.
|
virtual |
Get the actors mtime plus consider its properties and texture if set.
Reimplemented from vtkObject.
|
virtual |
Return the mtime of anything that would cause the rendered image to appear differently. Usually this involves checking the mtime of the prop plus anything else it depends on such as properties, textures etc.
Reimplemented from vtkProp.
|
inline |
Set the total length of the axes in 3 dimensions.
Definition at line 118 of file vtkAxesActor.h.
void vtkAxesActor::SetTotalLength | ( | double | x, |
double | y, | ||
double | z | ||
) |
Set the total length of the axes in 3 dimensions.
|
virtual |
Set the total length of the axes in 3 dimensions.
|
virtual |
Set the total length of the axes in 3 dimensions.
|
inline |
Set the normalized (0-1) length of the shaft.
Definition at line 126 of file vtkAxesActor.h.
void vtkAxesActor::SetNormalizedShaftLength | ( | double | x, |
double | y, | ||
double | z | ||
) |
Set the normalized (0-1) length of the shaft.
|
virtual |
Set the normalized (0-1) length of the shaft.
|
virtual |
Set the normalized (0-1) length of the shaft.
|
inline |
Set the normalized (0-1) length of the tip. Normally, this would be 1 - the normalized length of the shaft.
Definition at line 135 of file vtkAxesActor.h.
void vtkAxesActor::SetNormalizedTipLength | ( | double | x, |
double | y, | ||
double | z | ||
) |
Set the normalized (0-1) length of the tip. Normally, this would be 1 - the normalized length of the shaft.
|
virtual |
Set the normalized (0-1) length of the tip. Normally, this would be 1 - the normalized length of the shaft.
|
virtual |
Set the normalized (0-1) length of the tip. Normally, this would be 1 - the normalized length of the shaft.
|
inline |
Set the normalized (0-1) position of the label along the length of the shaft. A value > 1 is permissible.
Definition at line 144 of file vtkAxesActor.h.
void vtkAxesActor::SetNormalizedLabelPosition | ( | double | x, |
double | y, | ||
double | z | ||
) |
Set the normalized (0-1) position of the label along the length of the shaft. A value > 1 is permissible.
|
virtual |
Set the normalized (0-1) position of the label along the length of the shaft. A value > 1 is permissible.
|
virtual |
Set the normalized (0-1) position of the label along the length of the shaft. A value > 1 is permissible.
|
virtual |
Set/get the resolution of the pieces of the axes actor.
|
virtual |
Set/get the resolution of the pieces of the axes actor.
|
virtual |
Set/get the resolution of the pieces of the axes actor.
|
virtual |
Set/get the resolution of the pieces of the axes actor.
|
virtual |
Set/get the resolution of the pieces of the axes actor.
|
virtual |
Set/get the resolution of the pieces of the axes actor.
|
virtual |
Set/get the radius of the pieces of the axes actor.
|
virtual |
Set/get the radius of the pieces of the axes actor.
|
virtual |
Set/get the radius of the pieces of the axes actor.
|
virtual |
Set/get the radius of the pieces of the axes actor.
|
virtual |
Set/get the radius of the pieces of the axes actor.
|
virtual |
Set/get the radius of the pieces of the axes actor.
void vtkAxesActor::SetShaftType | ( | int | type) |
Set the type of the shaft to a cylinder, line, or user defined geometry.
|
inline |
Set the type of the shaft to a cylinder, line, or user defined geometry.
Definition at line 174 of file vtkAxesActor.h.
|
inline |
Set the type of the shaft to a cylinder, line, or user defined geometry.
Definition at line 176 of file vtkAxesActor.h.
|
inline |
Set the type of the shaft to a cylinder, line, or user defined geometry.
Definition at line 178 of file vtkAxesActor.h.
|
virtual |
Set the type of the shaft to a cylinder, line, or user defined geometry.
void vtkAxesActor::SetTipType | ( | int | type) |
Set the type of the tip to a cone, sphere, or user defined geometry.
|
inline |
Set the type of the tip to a cone, sphere, or user defined geometry.
Definition at line 186 of file vtkAxesActor.h.
|
inline |
Set the type of the tip to a cone, sphere, or user defined geometry.
Definition at line 188 of file vtkAxesActor.h.
|
inline |
Set the type of the tip to a cone, sphere, or user defined geometry.
Definition at line 190 of file vtkAxesActor.h.
|
virtual |
Set the type of the tip to a cone, sphere, or user defined geometry.
void vtkAxesActor::SetUserDefinedTip | ( | vtkPolyData * | ) |
Set the user defined tip polydata.
|
virtual |
Set the user defined tip polydata.
void vtkAxesActor::SetUserDefinedShaft | ( | vtkPolyData * | ) |
Set the user defined shaft polydata.
|
virtual |
Set the user defined shaft polydata.
vtkProperty* vtkAxesActor::GetXAxisTipProperty | ( | ) |
Get the tip properties.
vtkProperty* vtkAxesActor::GetYAxisTipProperty | ( | ) |
Get the tip properties.
vtkProperty* vtkAxesActor::GetZAxisTipProperty | ( | ) |
Get the tip properties.
vtkProperty* vtkAxesActor::GetXAxisShaftProperty | ( | ) |
Get the shaft properties.
vtkProperty* vtkAxesActor::GetYAxisShaftProperty | ( | ) |
Get the shaft properties.
vtkProperty* vtkAxesActor::GetZAxisShaftProperty | ( | ) |
Get the shaft properties.
|
inline |
Retrieve handles to the X, Y and Z axis (so that you can set their text properties for example)
Definition at line 224 of file vtkAxesActor.h.
|
inline |
Retrieve handles to the X, Y and Z axis (so that you can set their text properties for example)
Definition at line 226 of file vtkAxesActor.h.
|
inline |
Retrieve handles to the X, Y and Z axis (so that you can set their text properties for example)
Definition at line 228 of file vtkAxesActor.h.
|
virtual |
Set/get the label text.
|
virtual |
Set/get the label text.
|
virtual |
Set/get the label text.
|
virtual |
Set/get the label text.
|
virtual |
Set/get the label text.
|
virtual |
Set/get the label text.
|
virtual |
Enable/disable drawing the axis labels.
|
virtual |
Enable/disable drawing the axis labels.
|
virtual |
Enable/disable drawing the axis labels.
|
virtual |
Enable/disable drawing the axis labels.
|
protected |
|
protected |
Definition at line 269 of file vtkAxesActor.h.
|
protected |
Definition at line 270 of file vtkAxesActor.h.
|
protected |
Definition at line 271 of file vtkAxesActor.h.
|
protected |
Definition at line 272 of file vtkAxesActor.h.
|
protected |
Definition at line 274 of file vtkAxesActor.h.
|
protected |
Definition at line 275 of file vtkAxesActor.h.
|
protected |
Definition at line 276 of file vtkAxesActor.h.
|
protected |
Definition at line 278 of file vtkAxesActor.h.
|
protected |
Definition at line 279 of file vtkAxesActor.h.
|
protected |
Definition at line 280 of file vtkAxesActor.h.
|
protected |
Definition at line 284 of file vtkAxesActor.h.
|
protected |
Definition at line 285 of file vtkAxesActor.h.
|
protected |
Definition at line 286 of file vtkAxesActor.h.
|
protected |
Definition at line 287 of file vtkAxesActor.h.
|
protected |
Definition at line 289 of file vtkAxesActor.h.
|
protected |
Definition at line 290 of file vtkAxesActor.h.
|
protected |
Definition at line 292 of file vtkAxesActor.h.
|
protected |
Definition at line 293 of file vtkAxesActor.h.
|
protected |
Definition at line 295 of file vtkAxesActor.h.
|
protected |
Definition at line 296 of file vtkAxesActor.h.
|
protected |
Definition at line 297 of file vtkAxesActor.h.
|
protected |
Definition at line 299 of file vtkAxesActor.h.
|
protected |
Definition at line 300 of file vtkAxesActor.h.
|
protected |
Definition at line 301 of file vtkAxesActor.h.
|
protected |
Definition at line 303 of file vtkAxesActor.h.
|
protected |
Definition at line 306 of file vtkAxesActor.h.
|
protected |
Definition at line 307 of file vtkAxesActor.h.
|
protected |
Definition at line 308 of file vtkAxesActor.h.
|
protected |
Definition at line 310 of file vtkAxesActor.h.
|
protected |
Definition at line 311 of file vtkAxesActor.h.
|
protected |
Definition at line 312 of file vtkAxesActor.h.