Version: 9.12.0
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 vtkTextActorGetLabel ()
 
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
 
vtkTextActormyLabelActor
 
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() [1/2]

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_LineActor::SetArrowActor(), and VTKViewer_LineActor::SetLabelActor().

◆ VTKViewer_Axis() [2/2]

VTKViewer_Axis::VTKViewer_Axis ( const VTKViewer_Axis )
protected

◆ ~VTKViewer_Axis()

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

◆ GetArrow()

virtual vtkFollower* VTKViewer_Axis::GetArrow ( )
inlinevirtual

Get arrow actor.

Return values
ReturnmyArrowActor

◆ GetLabel()

virtual vtkTextActor* VTKViewer_Axis::GetLabel ( )
inlinevirtual

Get label actor.

Return values
ReturnmyLabelActor.

◆ GetVisibility()

virtual VTKViewer_Trihedron::TVisibility VTKViewer_Axis::GetVisibility ( )
inlinevirtual

Return visibility of VTKViewer_Axis

Return values
myVisibility

◆ OwnActor()

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.

◆ RemoveFromRender()

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.

◆ SetCamera()

void VTKViewer_Axis::SetCamera ( vtkCamera *  theCamera)
virtual

Set camera for myLabelActor

References myLabelActor.

◆ SetColor()

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.

◆ SetSize()

void VTKViewer_Axis::SetSize ( double  theSize)
virtual

◆ SetVisibility()

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.

◆ vtkTypeMacro()

VTKViewer_Axis::vtkTypeMacro ( VTKViewer_Axis  ,
vtkObject   
)

vtk type macros.

Add to theRenderer actors: myLineActor,myLabelActor,myArrowActor

Member Data Documentation

◆ myArrowActor

vtkFollower* VTKViewer_Axis::myArrowActor
protected

vtkFollower actor pointer

◆ myConeSource

vtkConeSource* VTKViewer_Axis::myConeSource
protected

vtkConeSource pointer (Arrow)

◆ myDir

VTKViewer_Axis::myDir[3]
protected

Direction vector

◆ myLabelActor

vtkTextActor* VTKViewer_Axis::myLabelActor
protected

VTKViewer_UnScaledActor actor pointer

◆ myLineActor

VTKViewer_LineActor* VTKViewer_Axis::myLineActor
protected

VTKViewer_LineActor actor pointer

◆ myLineSource

vtkLineSource* VTKViewer_Axis::myLineSource
protected

vtkLineSource pointer (Line)

◆ myMapper

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

◆ myRot

VTKViewer_Axis::myRot[3]
protected

Orientation vector

◆ myTextMapper

vtkTextMapper* VTKViewer_Axis::myTextMapper
protected

vtkTextMapper pointer (Label)

◆ myVisibility

VTKViewer_Trihedron::TVisibility VTKViewer_Axis::myVisibility
protected

Visibility flag.


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