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

SVTK_Trihedron Class Reference

#include <SVTK_Trihedron.h>

Inheritance diagram for SVTK_Trihedron:
Inheritance graph

Public Types

enum  TVisibility { eOff, eOn, eOnlyLineOn }

Public Member Functions

 vtkTypeMacro (SVTK_Trihedron, VTKViewer_Trihedron)
virtual int GetVisibleActorCount (vtkRenderer *theRenderer)
 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 bool OwnActor (const vtkActor *theActor)

Static Public Member Functions

static SVTK_TrihedronNew ()

Protected Member Functions

 SVTK_Trihedron ()
 SVTK_Trihedron (const SVTK_Trihedron &)
void operator= (const SVTK_Trihedron &)

Protected Attributes

vtkActorCollection * myPresent
VTKViewer_AxismyAxis [3]
vtkFloatingPointType mySize

Member Enumeration Documentation

Enumerator:
eOff 
eOn 
eOnlyLineOn 

Constructor & Destructor Documentation

SVTK_Trihedron::SVTK_Trihedron ( ) [protected]

Constructor

SVTK_Trihedron.SVTK_Trihedron ( const SVTK_Trihedron ) [protected]

Member Function Documentation

void SVTK_Trihedron.operator= ( const SVTK_Trihedron ) [protected]
SVTK_Trihedron.vtkTypeMacro ( SVTK_Trihedron  ,
VTKViewer_Trihedron   
)
static SVTK_Trihedron* SVTK_Trihedron.New ( ) [static]

Reimplemented from VTKViewer_Trihedron.

int SVTK_Trihedron::GetVisibleActorCount ( vtkRenderer *  theRenderer) [virtual]
Returns:
count of visible actors
Parameters:
theRenderer- renderer to be checked

Reimplemented from VTKViewer_Trihedron.

References VTK.ActorCollectionCopy.GetActors().

VTKViewer_Trihedron.vtkTypeMacro ( VTKViewer_Trihedron  ,
vtkObject   
) [inherited]

vtk type macros.

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

Sets size of trihedron.

Parameters:
theSize- vtkFloatingPointType value

Set size of axes

References VTKViewer_Trihedron.myAxis, and VTKViewer_Trihedron.mySize.

virtual vtkFloatingPointType VTKViewer_Trihedron.GetSize ( ) [virtual, inherited]

Get size of trihedron.

Return values:
mySize- vtkFloatingPointType value
void VTKViewer_Trihedron::SetVisibility ( TVisibility  theVis) [virtual, inherited]

Sets visibility for all Axis to theVis

Set visibility of axes

References VTKViewer_Trihedron.myAxis.

virtual void VTKViewer_Trihedron.VisibilityOff ( ) [virtual, inherited]

OFF visibility for all Axis.

virtual void VTKViewer_Trihedron.VisibilityOn ( ) [virtual, inherited]

ON visibility for all Axis.

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

Gets visibility of myAxis[0] actor.

Returns:
visibility of first axis

References VTKViewer_Axis.GetVisibility(), and VTKViewer_Trihedron.myAxis.

void VTKViewer_Trihedron::AddToRender ( vtkRenderer *  theRenderer) [virtual, inherited]

Add to render all Axis

Parameters:
theRenderer- vtkRenderer pointer

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

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

Remove all actors from theRenderer which are in myPresent.

Parameters:
theRenderer- vtkRenderer pointer

References VTKViewer_Trihedron.myAxis, and VTKViewer_Trihedron.myPresent.

bool VTKViewer_Trihedron::OwnActor ( const vtkActor *  theActor) [virtual, inherited]

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 VTKViewer_Trihedron.myAxis, and VTKViewer_Trihedron.myPresent.


Field Documentation

vtkActorCollection* VTKViewer_Trihedron.myPresent [protected, inherited]

Actor collection

VTKViewer_Axis* VTKViewer_Trihedron.myAxis[3] [protected, inherited]
  • 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