Version: 6.3.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

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 (vtkFloatingPointType theSize)
virtual vtkFloatingPointType 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]
vtkFloatingPointType 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, New(), and SetSize().

VTKViewer_Trihedron.VTKViewer_Trihedron ( const VTKViewer_Trihedron ) [protected]

Const copy constructor.

VTKViewer_Trihedron::~VTKViewer_Trihedron ( ) [protected, virtual]

Destructor. Remove all fileds.

Destructor

References myAxis, and myPresent.


Member Function Documentation

VTKViewer_Trihedron.vtkTypeMacro ( VTKViewer_Trihedron  ,
vtkObject   
)

vtk type macros.

static VTKViewer_Trihedron* VTKViewer_Trihedron.New ( ) [static]

Create new instance of VTKViewer_Trihedron.

Reimplemented in SVTK_Trihedron.

void VTKViewer_Trihedron::SetSize ( vtkFloatingPointType  theSize) [virtual]

Sets size of trihedron.

Parameters:
theSize- vtkFloatingPointType value

Set size of axes

References myAxis, and mySize.

virtual vtkFloatingPointType VTKViewer_Trihedron.GetSize ( ) [virtual]

Get size of trihedron.

Return values:
mySize- vtkFloatingPointType value
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 ( ) [virtual]

OFF visibility for all Axis.

virtual void VTKViewer_Trihedron.VisibilityOn ( ) [virtual]

ON visibility for all Axis.

VTKViewer_Trihedron::TVisibility VTKViewer_Trihedron::GetVisibility ( ) [virtual]

Gets visibility of myAxis[0] actor.

Returns:
visibility of first axis

References VTKViewer_Axis.GetVisibility(), and myAxis.

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

void VTKViewer_Trihedron::RemoveFromRender ( vtkRenderer *  theRenderer) [virtual]

Remove all actors from theRenderer which are in myPresent.

Parameters:
theRenderer- vtkRenderer pointer

References myAxis, and myPresent.

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

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.


Field Documentation

vtkActorCollection* VTKViewer_Trihedron.myPresent [protected]

Actor collection

  • myAxis[0] - X Axis actor
  • myAxis[1] - Y Axis actor
  • myAxis[2] - Z Axis actor

Common size for trihedron, for each axis.

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS