VTK
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkProp3DAxisFollower Class Reference

a subclass of vtkProp3DFollower that ensures that data is always parallel to the axis defined by a vtkAxisActor. More...

#include <vtkProp3DAxisFollower.h>

Inheritance diagram for vtkProp3DAxisFollower:
Inheritance graph
[legend]
Collaboration diagram for vtkProp3DAxisFollower:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void ComputeMatrix ()
void ShallowCopy (vtkProp *prop)
virtual void SetViewport (vtkViewport *viewport)
virtual vtkViewportGetViewport ()
virtual void SetAxis (vtkAxisActor *)
virtual vtkAxisActorGetAxis ()
virtual void SetAutoCenter (int)
virtual int GetAutoCenter ()
virtual void AutoCenterOn ()
virtual void AutoCenterOff ()
virtual void SetEnableDistanceLOD (int)
virtual int GetEnableDistanceLOD ()
virtual void SetDistanceLODThreshold (double)
virtual double GetDistanceLODThreshold ()
virtual void SetEnableViewAngleLOD (int)
virtual int GetEnableViewAngleLOD ()
virtual void SetViewAngleLODThreshold (double)
virtual double GetViewAngleLODThreshold ()
virtual void SetScreenOffset (double)
virtual double GetScreenOffset ()
virtual int RenderOpaqueGeometry (vtkViewport *viewport)
virtual int RenderTranslucentPolygonalGeometry (vtkViewport *viewport)
virtual int RenderVolumetricGeometry (vtkViewport *viewport)

Static Public Member Functions

static vtkProp3DAxisFollowerNew ()
static double AutoScale (vtkViewport *viewport, vtkCamera *camera, double screenSize, double position[3])

Protected Member Functions

 vtkProp3DAxisFollower ()
 ~vtkProp3DAxisFollower ()
void CalculateOrthogonalVectors (double Rx[3], double Ry[3], double Rz[3], vtkAxisActor *axis1, double *dop, vtkViewport *ren)
void ComputeRotationAndTranlation (vtkViewport *ren, double translation[3], double Rx[3], double Ry[3], double Rz[3], vtkAxisActor *axis)
void ComputerAutoCenterTranslation (const double &autoScaleFactor, double translation[3])
int TestDistanceVisibility ()
void ExecuteViewAngleVisibility (double normal[3])
bool IsTextUpsideDown (double *a, double *b)

Protected Attributes

int AutoCenter
int EnableDistanceLOD
double DistanceLODThreshold
int EnableViewAngleLOD
double ViewAngleLODThreshold
double ScreenOffset
vtkWeakPointer< vtkAxisActorAxis
vtkWeakPointer< vtkViewportViewport
typedef vtkProp3DFollower Superclass
static int IsTypeOf (const char *type)
static vtkProp3DAxisFollowerSafeDownCast (vtkObjectBase *o)
virtual int IsA (const char *type)
vtkProp3DAxisFollowerNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkObjectBaseNewInstanceInternal () const

Detailed Description

a subclass of vtkProp3DFollower that ensures that data is always parallel to the axis defined by a vtkAxisActor.

vtkProp3DAxisFollower is a subclass of vtkProp3DFollower that always follows its specified axis. More specifically it will not change its position or scale, but it will continually update its orientation so that it is aligned with the axis and facing at angle to the camera to provide maximum visibilty. This is typically used for text labels for 3d plots.

See also:
vtkFollower vtkAxisFollower vtkProp3DFollower

Definition at line 38 of file vtkProp3DAxisFollower.h.


Member Typedef Documentation

Standard VTK methods for type and printing.

Reimplemented from vtkProp3DFollower.

Definition at line 47 of file vtkProp3DAxisFollower.h.


Constructor & Destructor Documentation


Member Function Documentation

Creates a follower with no camera set.

Reimplemented from vtkProp3DFollower.

static int vtkProp3DAxisFollower::IsTypeOf ( const char *  type) [static]

Standard VTK methods for type and printing.

Reimplemented from vtkProp3DFollower.

virtual int vtkProp3DAxisFollower::IsA ( const char *  type) [virtual]

Standard VTK methods for type and printing.

Reimplemented from vtkProp3DFollower.

Standard VTK methods for type and printing.

Reimplemented from vtkProp3DFollower.

virtual vtkObjectBase* vtkProp3DAxisFollower::NewInstanceInternal ( ) const [protected, virtual]

Standard VTK methods for type and printing.

Reimplemented from vtkProp3DFollower.

Standard VTK methods for type and printing.

Reimplemented from vtkProp3DFollower.

void vtkProp3DAxisFollower::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Standard VTK methods for type and printing.

Reimplemented from vtkProp3DFollower.

virtual void vtkProp3DAxisFollower::SetAxis ( vtkAxisActor ) [virtual]

Set axis that needs to be followed.

Set axis that needs to be followed.

virtual void vtkProp3DAxisFollower::SetAutoCenter ( int  ) [virtual]

Set/Get state of auto center mode where additional translation will be added to make sure the underlying geometry has its pivot point at the center of its bounds.

Set/Get state of auto center mode where additional translation will be added to make sure the underlying geometry has its pivot point at the center of its bounds.

virtual void vtkProp3DAxisFollower::AutoCenterOn ( ) [virtual]

Set/Get state of auto center mode where additional translation will be added to make sure the underlying geometry has its pivot point at the center of its bounds.

virtual void vtkProp3DAxisFollower::AutoCenterOff ( ) [virtual]

Set/Get state of auto center mode where additional translation will be added to make sure the underlying geometry has its pivot point at the center of its bounds.

virtual void vtkProp3DAxisFollower::SetEnableDistanceLOD ( int  ) [virtual]

Enable / disable use of distance based LOD. If enabled the actor will not be visible at a certain distance from the camera. Default is false.

Enable / disable use of distance based LOD. If enabled the actor will not be visible at a certain distance from the camera. Default is false.

Set distance LOD threshold (0.0 - 1.0).This determines at what fraction of camera far clip range, actor is not visible. Default is 0.80.

Set distance LOD threshold (0.0 - 1.0).This determines at what fraction of camera far clip range, actor is not visible. Default is 0.80.

virtual void vtkProp3DAxisFollower::SetEnableViewAngleLOD ( int  ) [virtual]

Enable / disable use of view angle based LOD. If enabled the actor will not be visible at a certain view angle. Default is true.

Enable / disable use of view angle based LOD. If enabled the actor will not be visible at a certain view angle. Default is true.

Set view angle LOD threshold (0.0 - 1.0).This determines at what view angle to geometry will make the geometry not visibile. Default is 0.34.

Set view angle LOD threshold (0.0 - 1.0).This determines at what view angle to geometry will make the geometry not visibile. Default is 0.34.

virtual void vtkProp3DAxisFollower::SetScreenOffset ( double  ) [virtual]

Set/Get the desired screen offset from the axis.

Set/Get the desired screen offset from the axis.

virtual void vtkProp3DAxisFollower::ComputeMatrix ( ) [virtual]

Generate the matrix based on ivars. This method overloads its superclasses ComputeMatrix() method due to the special vtkProp3DAxisFollower matrix operations.

Reimplemented from vtkProp3DFollower.

void vtkProp3DAxisFollower::ShallowCopy ( vtkProp prop) [virtual]

Shallow copy of a follower. Overloads the virtual vtkProp method.

Reimplemented from vtkProp3DFollower.

static double vtkProp3DAxisFollower::AutoScale ( vtkViewport viewport,
vtkCamera camera,
double  screenSize,
double  position[3] 
) [static]

Calculate scale factor to maintain same size of a object on the screen.

virtual int vtkProp3DAxisFollower::RenderOpaqueGeometry ( vtkViewport viewport) [virtual]

This causes the actor to be rendered. It in turn will render the actor's property, texture map and then mapper. If a property hasn't been assigned, then the actor will create one automatically.

Reimplemented from vtkProp3DFollower.

This causes the actor to be rendered. It in turn will render the actor's property, texture map and then mapper. If a property hasn't been assigned, then the actor will create one automatically.

Reimplemented from vtkProp3DFollower.

This causes the actor to be rendered. It in turn will render the actor's property, texture map and then mapper. If a property hasn't been assigned, then the actor will create one automatically.

Reimplemented from vtkProp3DFollower.

virtual void vtkProp3DAxisFollower::SetViewport ( vtkViewport viewport) [virtual]
void vtkProp3DAxisFollower::CalculateOrthogonalVectors ( double  Rx[3],
double  Ry[3],
double  Rz[3],
vtkAxisActor axis1,
double dop,
vtkViewport ren 
) [protected]
void vtkProp3DAxisFollower::ComputeRotationAndTranlation ( vtkViewport ren,
double  translation[3],
double  Rx[3],
double  Ry[3],
double  Rz[3],
vtkAxisActor axis 
) [protected]
void vtkProp3DAxisFollower::ComputerAutoCenterTranslation ( const double autoScaleFactor,
double  translation[3] 
) [protected]
bool vtkProp3DAxisFollower::IsTextUpsideDown ( double a,
double b 
) [protected]

Member Data Documentation

Definition at line 153 of file vtkProp3DAxisFollower.h.

Definition at line 155 of file vtkProp3DAxisFollower.h.

Definition at line 156 of file vtkProp3DAxisFollower.h.

Definition at line 158 of file vtkProp3DAxisFollower.h.

Definition at line 159 of file vtkProp3DAxisFollower.h.

Definition at line 161 of file vtkProp3DAxisFollower.h.

Definition at line 163 of file vtkProp3DAxisFollower.h.

Definition at line 164 of file vtkProp3DAxisFollower.h.


The documentation for this class was generated from the following file: