Salome HOME
New item (FontItem), allowing to show information about font setting and to select...
[modules/gui.git] / src / SVTK / SVTK_ViewWindow.h
index 3b4f4c38365533333ed5aadb68c583248b66ecbf..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,14 +80,19 @@ public:
   void RemoveActor(SALOME_Actor*, bool update = false);
 
   void AdjustTrihedrons( const bool forced );
-  bool ComputeTrihedronSize( double& theNewSize,
-                            double& theOldSize );
-  double GetTrihedronSize() const;
+  //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();
 
- signals:
+signals:
  void selectionChanged();
 
 public slots:
@@ -98,10 +105,12 @@ public slots:
 
   void onResetView();     
   void onFitAll();
-  void onDumpView();
 
   void onViewTrihedron(); 
+  void onViewCubeAxes();
+
   void onAdjustTrihedron();
+  void onAdjustCubeAxes();
  
   void onPanLeft();
   void onPanRight();
@@ -120,6 +129,9 @@ public slots:
   void activatePanning(); 
   void activateGlobalPanning(); 
 
+protected:
+  QImage dumpView();
+
 protected slots:
   void onKeyPressed(QKeyEvent* event);
   void onKeyReleased(QKeyEvent* event);
@@ -149,9 +161,11 @@ private:
 
   SVTK_RenderWindow* myRenderWindow;
   SVTK_RenderWindowInteractor* myRWInteractor;
-  
-  VTKViewer_Trihedron* myTrihedron;  
-  VTKViewer_Transform* myTransform;
+
+  VTKViewer_Transform*  myTransform;
+  VTKViewer_Trihedron*  myTrihedron;  
+  int                   myTrihedronSize;
+  SVTK_CubeAxesActor2D* myCubeAxes;
   
   QToolBar* myToolBar;
   ActionsMap myActionsMap;