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

#include <VTKViewer_Trihedron.h>

Inheritance diagram for VTKViewer_Trihedron:
Inheritance graph

Public Types

enum  TVisibility { eOff, eOn, eOnlyLineOn }
 

Public Member Functions

 vtkTypeMacro (VTKViewer_Trihedron, vtkObject)
 
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)
 

Static Public Member Functions

static VTKViewer_TrihedronNew ()
 

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

Enumerator
eOff 
eOn 
eOnlyLineOn 

Constructor & Destructor Documentation

VTKViewer_Trihedron::VTKViewer_Trihedron ( )
protected

Initialize fields by default values.

Constructor

References myAxis, myPresent, VTKViewer_XAxis::New(), VTKViewer_YAxis::New(), VTKViewer_ZAxis::New(), and SetSize().

VTKViewer_Trihedron::VTKViewer_Trihedron ( const VTKViewer_Trihedron )
protected

Const copy constructor.

VTKViewer_Trihedron::~VTKViewer_Trihedron ( )
protectedvirtual

Destructor. Remove all fileds.

Destructor

References myAxis, and myPresent.

Member Function Documentation

void VTKViewer_Trihedron::AddToRender ( vtkRenderer *  theRenderer)
virtual

Add to render all Axis

Parameters
theRenderer- vtkRenderer pointer

References VTKViewer_Axis::AddToRender(), myAxis, and VTKViewer_Axis::SetCamera().

virtual double VTKViewer_Trihedron::GetSize ( )
inlinevirtual

Get size of trihedron.

Return values
mySize- double value
VTKViewer_Trihedron::TVisibility VTKViewer_Trihedron::GetVisibility ( )
virtual

Gets visibility of myAxis[0] actor.

Returns
visibility of first axis

References VTKViewer_Axis::GetVisibility(), and myAxis.

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().

static VTKViewer_Trihedron* VTKViewer_Trihedron::New ( )
static

Create new instance of VTKViewer_Trihedron.

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.

void VTKViewer_Trihedron::RemoveFromRender ( vtkRenderer *  theRenderer)
virtual

Remove all actors from theRenderer which are in myPresent.

Parameters
theRenderer- vtkRenderer pointer

References myAxis, and myPresent.

void VTKViewer_Trihedron::SetSize ( double  theSize)
virtual

Sets size of trihedron.

Parameters
theSize- double value

Set size of axes

References myAxis, and mySize.

void VTKViewer_Trihedron::SetVisibility ( TVisibility  theVis)
virtual

Sets visibility for all Axis to theVis

Set visibility of axes

References myAxis.

virtual void VTKViewer_Trihedron::VisibilityOff ( )
inlinevirtual

OFF visibility for all Axis.

virtual void VTKViewer_Trihedron::VisibilityOn ( )
inlinevirtual

ON visibility for all Axis.

VTKViewer_Trihedron::vtkTypeMacro ( VTKViewer_Trihedron  ,
vtkObject   
)

vtk type macros.

Member Data Documentation

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

Actor collection

double VTKViewer_Trihedron::mySize
protected

Common size for trihedron, for each axis.


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