Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VTKViewer_Axis Class Reference

#include <VTKViewer_Trihedron.h>

Inheritance diagram for VTKViewer_Axis:
Inheritance graph

Public Member Functions

 vtkTypeMacro (VTKViewer_Axis, vtkObject)
 
virtual void AddToRender (vtkRenderer *theRenderer)
 
virtual void RemoveFromRender (vtkRenderer *theRenderer)
 
virtual void SetVisibility (VTKViewer_Trihedron::TVisibility theVis)
 
virtual
VTKViewer_Trihedron::TVisibility 
GetVisibility ()
 
virtual void SetCamera (vtkCamera *theCamera)
 
virtual void SetColor (double theRed, double theGreen, double theBlue)
 
virtual void SetSize (double theSize)
 
virtual vtkTextActor * GetLabel ()
 
virtual vtkFollowerGetArrow ()
 
virtual bool OwnActor (const vtkActor *theActor)
 

Protected Member Functions

 VTKViewer_Axis ()
 
 VTKViewer_Axis (const VTKViewer_Axis &)
 
virtual ~VTKViewer_Axis ()
 

Protected Attributes

VTKViewer_Trihedron::TVisibility myVisibility
 
double myDir [3]
 
double myRot [3]
 
VTKViewer_LineActormyLineActor
 
vtkFollowermyArrowActor
 
vtkTextActor * myLabelActor
 
vtkPolyDataMapper * myMapper [3]
 
vtkLineSource * myLineSource
 
vtkConeSource * myConeSource
 
vtkTextMapper * myTextMapper
 

Detailed Description

The base class for concreate Axis. Its only duty is to give correct initialization and destruction of its pipe-lines

Constructor & Destructor Documentation

VTKViewer_Axis::VTKViewer_Axis ( )
protected

Constructor

  • Initialize the Line pipe-line representation
  • Initialize the Arrow pipe-line representation
  • Initialize the Label pipe-line representation
  • Initialise visibility param.

References VTKViewer_Trihedron::eOn, myArrowActor, myConeSource, myLabelActor, myLineActor, myLineSource, myMapper, myTextMapper, myVisibility, VTKViewer_UnScaledActor::New(), VTKViewer_LineActor::New(), VTKViewer_LineActor::SetArrowActor(), and VTKViewer_LineActor::SetLabelActor().

VTKViewer_Axis::VTKViewer_Axis ( const VTKViewer_Axis )
protected
VTKViewer_Axis::~VTKViewer_Axis ( )
protectedvirtual

Destructor

  • Destroy of the Label pipe-line representation
  • Destroy of the Arrow pipe-line representation
  • Destroy of the Line pipe-line representation

References myArrowActor, myConeSource, myLabelActor, myLineActor, myLineSource, myMapper, and myTextMapper.

Member Function Documentation

void VTKViewer_Axis::AddToRender ( vtkRenderer *  theRenderer)
virtual

Add to theRenderer actors: myLineActor,myLabelActor,myArrowActor

Add to renderer

Parameters
theRenderer- vtkRenderer pointer
  • Order of the calls are important

References myArrowActor, myLabelActor, and myLineActor.

virtual vtkFollower* VTKViewer_Axis::GetArrow ( )
inlinevirtual

Get arrow actor.

Return values
ReturnmyArrowActor
virtual vtkTextActor* VTKViewer_Axis::GetLabel ( )
inlinevirtual

Get label actor.

Return values
ReturnmyLabelActor.
virtual VTKViewer_Trihedron::TVisibility VTKViewer_Axis::GetVisibility ( )
inlinevirtual

Return visibility of VTKViewer_Axis

Return values
myVisibility
bool VTKViewer_Axis::OwnActor ( const vtkActor *  theActor)
virtual

Check if actor belongs to the axis object

Parameters
theActor- vtkActor pointer
Return values
Returntrue if the actor belongs to the axis object

References myArrowActor, myLabelActor, and myLineActor.

void VTKViewer_Axis::RemoveFromRender ( vtkRenderer *  theRenderer)
virtual

Remove actor of acis from theRenderer which are in myPresent.

Parameters
theRenderer- vtkRenderer pointer
  • Order of the calls are important

References myArrowActor, myLabelActor, and myLineActor.

void VTKViewer_Axis::SetCamera ( vtkCamera *  theCamera)
virtual

Set camera for myLabelActor

References myLabelActor.

void VTKViewer_Axis::SetColor ( double  theRed,
double  theGreen,
double  theBlue 
)
virtual

Sets color for actors: myLineActor,myLabelActor,myArrowActor

Parameters
theRed- red component of the color
theGreen- green component of the color
theBlue- blue component of the color

Sets color for actors: myLineActor,myLabelActor,myArrowActor

References myArrowActor, myLabelActor, and myLineActor.

void VTKViewer_Axis::SetSize ( double  theSize)
virtual
void VTKViewer_Axis::SetVisibility ( VTKViewer_Trihedron::TVisibility  theVis)
virtual

Sets visibility for actors: myLineActor,myLabelActor,myArrowActor

Sets visibility for all Axis to theVis

References VTKViewer_Trihedron::eOff, VTKViewer_Trihedron::eOn, VTKViewer_Trihedron::eOnlyLineOn, myArrowActor, myLabelActor, myLineActor, and myVisibility.

VTKViewer_Axis::vtkTypeMacro ( VTKViewer_Axis  ,
vtkObject   
)

vtk type macros.

Member Data Documentation

vtkFollower* VTKViewer_Axis::myArrowActor
protected

vtkFollower actor pointer

vtkConeSource* VTKViewer_Axis::myConeSource
protected

vtkConeSource pointer (Arrow)

VTKViewer_Axis::myDir[3]
protected

Direction vector

vtkTextActor* VTKViewer_Axis::myLabelActor
protected

VTKViewer_UnScaledActor actor pointer

VTKViewer_LineActor* VTKViewer_Axis::myLineActor
protected

VTKViewer_LineActor actor pointer

vtkLineSource* VTKViewer_Axis::myLineSource
protected

vtkLineSource pointer (Line)

vtkPolyDataMapper* VTKViewer_Axis::myMapper[3]
protected
  • myMapper[0] - for the Line pipe-line representation
  • myMapper[1] - for the Arrow pipe-line representation
  • myMapper[2] - for the Label pipe-line representation
VTKViewer_Axis::myRot[3]
protected

Orientation vector

vtkTextMapper* VTKViewer_Axis::myTextMapper
protected

vtkTextMapper pointer (Label)

VTKViewer_Trihedron::TVisibility VTKViewer_Axis::myVisibility
protected

Visibility flag.


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