#include <VTKViewer_Trihedron.h>

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 (vtkFloatingPointType theSize) |
| virtual vtkTextActor * | GetLabel () |
| virtual vtkFollower * | GetArrow () |
| 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 |
| vtkFloatingPointType | myDir [3] |
| vtkFloatingPointType | myRot [3] |
| VTKViewer_LineActor * | myLineActor |
| vtkFollower * | myArrowActor |
| vtkTextActor * | myLabelActor |
| vtkPolyDataMapper * | myMapper [3] |
| vtkLineSource * | myLineSource |
| vtkConeSource * | myConeSource |
| vtkTextMapper * | myTextMapper |
The base class for concreate Axis. Its only duty is to give correct initialization and destruction of its pipe-lines
| VTKViewer_Axis::VTKViewer_Axis | ( | ) | [protected] |
Constructor
References VTKViewer_Trihedron.eOn, myArrowActor, myConeSource, myLabelActor, myLineActor, myLineSource, myMapper, myTextMapper, myVisibility, VTKViewer_UnScaledActor.New(), VTKViewer_LineActor.New(), VTKViewer_LineActor.SetArrowActor(), and VTKViewer_LineActor.SetLabelActor().
| VTKViewer_Axis.VTKViewer_Axis | ( | const VTKViewer_Axis & | ) | [protected] |
| VTKViewer_Axis::~VTKViewer_Axis | ( | ) | [protected, virtual] |
Destructor
References myArrowActor, myConeSource, myLabelActor, myLineActor, myLineSource, myMapper, and myTextMapper.
| VTKViewer_Axis.vtkTypeMacro | ( | VTKViewer_Axis | , |
| vtkObject | |||
| ) |
vtk type macros.
| void VTKViewer_Axis::AddToRender | ( | vtkRenderer * | theRenderer | ) | [virtual] |
Add to theRenderer actors: myLineActor,myLabelActor,myArrowActor
Add to renderer
| theRenderer | - vtkRenderer pointer |
References myArrowActor, myLabelActor, and myLineActor.
| void VTKViewer_Axis::RemoveFromRender | ( | vtkRenderer * | theRenderer | ) | [virtual] |
Remove actor of acis from theRenderer which are in myPresent.
| theRenderer | - vtkRenderer pointer |
References myArrowActor, myLabelActor, and myLineActor.
| 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.
| virtual VTKViewer_Trihedron::TVisibility VTKViewer_Axis.GetVisibility | ( | ) | [virtual] |
Return visibility of VTKViewer_Axis
| myVisibility |
| void VTKViewer_Axis::SetCamera | ( | vtkCamera * | theCamera | ) | [virtual] |
Set camera for myLabelActor
References myLabelActor.
| void VTKViewer_Axis::SetColor | ( | double | theRed, |
| double | theGreen, | ||
| double | theBlue | ||
| ) | [virtual] |
Sets color for actors: myLineActor,myLabelActor,myArrowActor
| 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.
| void VTKViewer_Axis::SetSize | ( | vtkFloatingPointType | theSize | ) | [virtual] |
Set size of VTKViewer_Axis
References myArrowActor, myDir, myLabelActor, myLineSource, and myRot.
| virtual vtkTextActor* VTKViewer_Axis.GetLabel | ( | ) | [virtual] |
Get label actor.
| Return | myLabelActor. |
| virtual vtkFollower* VTKViewer_Axis.GetArrow | ( | ) | [virtual] |
Get arrow actor.
| Return | myArrowActor |
| bool VTKViewer_Axis::OwnActor | ( | const vtkActor * | theActor | ) | [virtual] |
Check if actor belongs to the axis object
| theActor | - vtkActor pointer |
| Return | true if the actor belongs to the axis object |
References myArrowActor, myLabelActor, and myLineActor.
Visibility flag.
VTKViewer_Axis::myDir[3] [protected] |
Direction vector
VTKViewer_Axis::myRot[3] [protected] |
Orientation vector
VTKViewer_LineActor* VTKViewer_Axis.myLineActor [protected] |
VTKViewer_LineActor actor pointer
vtkFollower* VTKViewer_Axis.myArrowActor [protected] |
vtkFollower actor pointer
vtkTextActor* VTKViewer_Axis.myLabelActor [protected] |
VTKViewer_UnScaledActor actor pointer
vtkPolyDataMapper* VTKViewer_Axis.myMapper[3] [protected] |
vtkLineSource* VTKViewer_Axis.myLineSource [protected] |
vtkLineSource pointer (Line)
vtkConeSource* VTKViewer_Axis.myConeSource [protected] |
vtkConeSource pointer (Arrow)
vtkTextMapper* VTKViewer_Axis.myTextMapper [protected] |
vtkTextMapper pointer (Label)