Salome HOME
Properly process show/hide static trihedron in OCC view
[modules/gui.git] / src / OCCViewer / OCCViewer_ViewModel.h
index c4f88dbd9c8fec3df10c72e83c230f0cfb36b512..5e2e955b38192864e1c8435dddc3266ddb8b44d4 100755 (executable)
@@ -46,6 +46,7 @@ class SUIT_ViewWindow;
 class SUIT_Desktop;
 class OCCViewer_ClippingDlg;
 class OCCViewer_ViewWindow;
+class OCCViewer_ViewPort3d;
 
 class AIS_ListOfInteractive;
 
@@ -152,7 +153,6 @@ public:
 
   int                             getSelectionCount() const { return (!myAISContext.IsNull())? myAISContext->NbSelected():0; }
 
-  bool                            isStaticTrihedronDisplayed() { return myShowStaticTrihedron; }
   void                            setStaticTrihedronDisplayed(const bool on);
 
   /* Clip planes management */
@@ -187,8 +187,8 @@ protected slots:
   virtual void onMouseMove(SUIT_ViewWindow*, QMouseEvent*);
   virtual void onMouseRelease(SUIT_ViewWindow*, QMouseEvent*);
   virtual void onKeyPress(SUIT_ViewWindow*, QKeyEvent*);
-  virtual void onViewClosed();
-  virtual void onViewMapped();
+  virtual void onViewClosed(OCCViewer_ViewPort3d*);
+  virtual void onViewMapped(OCCViewer_ViewPort3d*);
 
   void onDumpView();
   void onChangeBackground();
@@ -217,8 +217,6 @@ protected:
   //QColor                          myBgColor;
   QPoint                          myStartPnt, myEndPnt, myCurPnt;
 
-  bool                            myShowStaticTrihedron;
-
   double                          myTrihedronSize;
 
   QVector<Qtx::BackgroundData>    myBackgrounds;