Salome HOME
New item (FontItem), allowing to show information about font setting and to select...
[modules/gui.git] / src / SVTK / SVTK_ViewWindow.h
index c2ebd3b23abe71bad2de1490e655b7961a0b891f..2edda288e5291ed7a71103d03c8654db38a1a694 100755 (executable)
@@ -23,6 +23,7 @@ class SALOME_Actor;
 
 class SVTK_Viewer;
 class SVTK_Selector;
+class SVTK_CubeAxesActor2D;
 
 class SVTK_RenderWindow;
 class SVTK_InteractorStyle;
@@ -49,6 +50,7 @@ public:
   void SetSelectionMode(Selection_Mode theMode);
 
   bool isTrihedronDisplayed();
+  bool isCubeAxesDisplayed();
  
   /*  interactive object management */
   void highlight( const Handle(SALOME_InteractiveObject)& IObject, 
@@ -78,12 +80,15 @@ public:
   void RemoveActor(SALOME_Actor*, bool update = false);
 
   void AdjustTrihedrons( const bool forced );
-  bool ComputeTrihedronSize( double& theNewSize,
-                            double& theOldSize );
+  //merge with V2_2_0_VISU_improvements:bool ComputeTrihedronSize( double& theNewSize,
+  //merge with V2_2_0_VISU_improvements:                          double& theOldSize );
 
   int  GetTrihedronSize() const;
   void SetTrihedronSize( const int );
 
+  VTKViewer_Trihedron*  GetTrihedron() {return this->myTrihedron;};
+  SVTK_CubeAxesActor2D* GetCubeAxes() {return this->myCubeAxes;};
+
 public slots:
   void onSelectionChanged();
 
@@ -102,7 +107,10 @@ public slots:
   void onFitAll();
 
   void onViewTrihedron(); 
+  void onViewCubeAxes();
+
   void onAdjustTrihedron();
+  void onAdjustCubeAxes();
  
   void onPanLeft();
   void onPanRight();
@@ -154,9 +162,10 @@ private:
   SVTK_RenderWindow* myRenderWindow;
   SVTK_RenderWindowInteractor* myRWInteractor;
 
-  VTKViewer_Transform* myTransform;
-  VTKViewer_Trihedron* myTrihedron;  
-  int                  myTrihedronSize;
+  VTKViewer_Transform*  myTransform;
+  VTKViewer_Trihedron*  myTrihedron;  
+  int                   myTrihedronSize;
+  SVTK_CubeAxesActor2D* myCubeAxes;
   
   QToolBar* myToolBar;
   ActionsMap myActionsMap;