Salome HOME
0021791: [CEA 623] Clipping : no difference between a closed shell and a solid
[modules/gui.git] / src / OCCViewer / OCCViewer_ViewModel.h
index d289dd408f23ecd47fd22f1feb92785f518fe80e..d29df5315de9982e4fd5574c66b54cd5d7b5da5f 100755 (executable)
@@ -46,6 +46,7 @@ class SUIT_ViewWindow;
 class SUIT_Desktop;
 class OCCViewer_ClippingDlg;
 class OCCViewer_ViewWindow;
+class OCCViewer_ViewPort3d;
 
 class AIS_ListOfInteractive;
 
@@ -114,8 +115,9 @@ public:
   
   bool                            trihedronRelative() const {return myIsRelative; }
 
-  // a utility function, used by SALOME_View_s methods
+  // a utility functions, used by SALOME_View_s methods
   bool                            computeTrihedronSize( double& theNewSize, double& theSize );
+  virtual double                  computeSceneSize(const Handle(V3d_View)&) const;
 
   void                            updateTrihedron();
   
@@ -151,10 +153,10 @@ public:
 
   int                             getSelectionCount() const { return (!myAISContext.IsNull())? myAISContext->NbSelected():0; }
 
-  bool                            isStaticTrihedronDisplayed() { return myShowStaticTrihedron; }
   void                            setStaticTrihedronDisplayed(const bool on);
 
   /* Clip planes management */
+  Handle(Graphic3d_ClipPlane)     createClipPlane(const gp_Pln& thePlane, const Standard_Boolean theIsOn);
   void                            setClipPlanes (ClipPlanesList theList);
   ClipPlanesList                  getClipPlanes() const;
   void                            applyExistingClipPlanesToObject (const Handle(AIS_InteractiveObject)& theObject);
@@ -186,8 +188,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();
@@ -216,8 +218,6 @@ protected:
   //QColor                          myBgColor;
   QPoint                          myStartPnt, myEndPnt, myCurPnt;
 
-  bool                            myShowStaticTrihedron;
-
   double                          myTrihedronSize;
 
   QVector<Qtx::BackgroundData>    myBackgrounds;