Version: 9.15.0
VTKViewer_Trihedron Class Reference

#include <VTKViewer_Trihedron.h>

Inheritance diagram for VTKViewer_Trihedron:
Inheritance graph

Public Types

enum  Axis { X = 0 , Y , Z }
 
enum  TVisibility { eOff , eOn , eOnlyLineOn }
 

Public Member Functions

 vtkTypeMacro (VTKViewer_Trihedron, vtkObject) static VTKViewer_Trihedron *New()
 
virtual void SetSize (double theSize)
 
virtual double GetSize ()
 
virtual void SetVisibility (TVisibility theVis)
 
virtual void VisibilityOff ()
 
virtual void VisibilityOn ()
 
virtual TVisibility GetVisibility ()
 
virtual void AddToRender (vtkRenderer *theRenderer)
 
virtual void RemoveFromRender (vtkRenderer *theRenderer)
 
virtual int GetVisibleActorCount (vtkRenderer *theRenderer)
 
virtual bool OwnActor (const vtkActor *theActor)
 
virtual void SetTextColor (Axis axis, double theRed, double theGreen, double theBlue)
 

Protected Member Functions

 VTKViewer_Trihedron ()
 
 VTKViewer_Trihedron (const VTKViewer_Trihedron &)
 
virtual ~VTKViewer_Trihedron ()
 

Protected Attributes

vtkActorCollection * myPresent
 
VTKViewer_AxismyAxis [3]
 
double mySize
 

Detailed Description

This class provide support trihedron object in vtk viewer.

Member Enumeration Documentation

◆ Axis

Enumerator

◆ TVisibility

Enumerator
eOff 
eOn 
eOnlyLineOn 

Constructor & Destructor Documentation

◆ VTKViewer_Trihedron() [1/2]

VTKViewer_Trihedron::VTKViewer_Trihedron ( )
protected

Initialize fields by default values.

◆ VTKViewer_Trihedron() [2/2]

VTKViewer_Trihedron::VTKViewer_Trihedron ( const VTKViewer_Trihedron )
protected

Const copy constructor.

◆ ~VTKViewer_Trihedron()

VTKViewer_Trihedron::~VTKViewer_Trihedron ( )
protectedvirtual

Destructor. Remove all fileds.

Destructor

References myAxis, and myPresent.

Member Function Documentation

◆ AddToRender()

void VTKViewer_Trihedron::AddToRender ( vtkRenderer *  theRenderer)
virtual

Add to render all Axis

Parameters
theRenderer- vtkRenderer pointer

References myAxis, and VTKViewer_Axis::SetCamera().

◆ GetSize()

virtual double VTKViewer_Trihedron::GetSize ( )
inlinevirtual

Get size of trihedron.

Return values
mySize- double value

◆ GetVisibility()

VTKViewer_Trihedron::TVisibility VTKViewer_Trihedron::GetVisibility ( )
virtual

Gets visibility of myAxis[0] actor.

Returns
visibility of first axis

References VTKViewer_Axis::GetVisibility(), and myAxis.

◆ GetVisibleActorCount()

int VTKViewer_Trihedron::GetVisibleActorCount ( vtkRenderer *  theRenderer)
virtual

Return count of visible actors.

Parameters
theRenderer- vtkRenderer pointer

Reimplemented in SVTK_Trihedron.

References VTK::ActorCollectionCopy::GetActors(), and OwnActor().

◆ OwnActor()

bool VTKViewer_Trihedron::OwnActor ( const vtkActor *  theActor)
virtual

Check if actor belongs to the trihedron object

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

Check if actor belongs to the axis object

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

References myAxis, and myPresent.

◆ RemoveFromRender()

void VTKViewer_Trihedron::RemoveFromRender ( vtkRenderer *  theRenderer)
virtual

Remove all actors from theRenderer which are in myPresent.

Parameters
theRenderer- vtkRenderer pointer

References myAxis, and myPresent.

◆ SetSize()

void VTKViewer_Trihedron::SetSize ( double  theSize)
virtual

Sets size of trihedron.

Parameters
theSize- double value

Set size of axes

References myAxis, and mySize.

◆ SetTextColor()

void VTKViewer_Trihedron::SetTextColor ( Axis  axis,
double  theRed,
double  theGreen,
double  theBlue 
)
virtual

Sets a color to a text for the given axis

Parameters
axis- axis to change a text color
theRed- red color component
theGreen- green color component
theBlue- blue color component

References myAxis, and VTKViewer_Axis::SetTextColor().

◆ SetVisibility()

void VTKViewer_Trihedron::SetVisibility ( TVisibility  theVis)
virtual

Sets visibility for all Axis to theVis

Set visibility of axes

References myAxis.

◆ VisibilityOff()

virtual void VTKViewer_Trihedron::VisibilityOff ( )
inlinevirtual

OFF visibility for all Axis.

◆ VisibilityOn()

virtual void VTKViewer_Trihedron::VisibilityOn ( )
inlinevirtual

ON visibility for all Axis.

◆ vtkTypeMacro()

VTKViewer_Trihedron::vtkTypeMacro ( VTKViewer_Trihedron  ,
vtkObject   
)

vtk type macros.

Create new instance of VTKViewer_Trihedron.

Member Data Documentation

◆ myAxis

VTKViewer_Axis* VTKViewer_Trihedron::myAxis[3]
protected
  • myAxis[0] - X Axis actor
  • myAxis[1] - Y Axis actor
  • myAxis[2] - Z Axis actor

◆ myPresent

vtkActorCollection* VTKViewer_Trihedron::myPresent
protected

Actor collection

◆ mySize

double VTKViewer_Trihedron::mySize
protected

Common size for trihedron, for each axis.


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