28 #ifndef GEOM_VTKTrihedron_H
29 #define GEOM_VTKTrihedron_H
33 #include <Geom_Axis2Placement.hxx>
34 #include "SALOME_Actor.h"
35 #include "VTKViewer_Trihedron.h"
38 class vtkPolyDataMapper;
58 virtual double GetSize() {
return mySize;}
60 virtual void SetVisibility(
int theVisibility );
61 virtual void SetVisibility( VTKViewer_Trihedron::TVisibility theVis );
62 virtual void VisibilityOff() { SetVisibility( VTKViewer_Trihedron::eOff ); }
63 virtual void VisibilityOn() { SetVisibility( VTKViewer_Trihedron::eOn ); }
65 virtual void AddToRender( vtkRenderer* theRenderer );
66 virtual void RemoveFromRender( vtkRenderer* theRenderer );
68 virtual int GetVisibleActorCount( vtkRenderer* theRenderer );
70 void SetPlacement(
const Handle(Geom_Axis2Placement)& );
72 virtual vtkMapper* GetMapper();
74 virtual void Render(vtkRenderer *, vtkMapper *);
75 virtual bool IsSetCamera()
const;
76 virtual bool IsResizable()
const;
77 virtual void SetSize(
double );
78 virtual void SetCamera( vtkCamera* );
80 void SetColor(
double r,
double g,
double b );
81 void GetColor(
double& r,
double& g,
double& b );
85 virtual void Highlight(
bool theHighlight );
86 virtual bool PreHighlight( vtkInteractorStyle* theInteractorStyle,
87 SVTK_SelectionEvent* theSelectionEvent,
88 bool theIsHighlight );
91 virtual void ResetAxesColors();
92 virtual void SetAxesColors(
double theColor[3],
bool theIsDiffuse =
false );
101 double myDefaultColor[ 3 ];
102 double myPreHighlightColor[ 3 ];
103 double myHighlightColor[ 3 ];