Salome HOME
0022378: EDF 2273 GEOM: Select a point/edge/face/solid in the "Set Rotation Point...
[modules/gui.git] / src / OCCViewer / OCCViewer_ViewFrame.h
index 99cfdb064ffa051887d678ba71d666f2ada2f365..5c1b952973c1b4b3623c49f7b850117ac364472b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -6,7 +6,7 @@
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -27,6 +27,7 @@
 #include "OCCViewer_ViewWindow.h"
 
 #include <gp_Pln.hxx>
+#include <TopAbs_ShapeEnum.hxx>
 
 class SUIT_Desktop;
 class OCCViewer_Viewer;
@@ -72,6 +73,12 @@ public:
   virtual int  zoomingStyle() const { return getView(MAIN_VIEW)->zoomingStyle(); }
   virtual void setZoomingStyle( const int );
 
+  virtual bool isSelectionEnabled() const { return getView(MAIN_VIEW)->isSelectionEnabled(); }
+  virtual void enableSelection( bool );
+
+  virtual bool isPreselectionEnabled() const { return getView(MAIN_VIEW)->isPreselectionEnabled(); }
+  virtual void enablePreselection( bool );
+
   virtual void setViewManager( SUIT_ViewManager* );
 
   virtual bool eventFilter(QObject* watched, QEvent* e) { return SUIT_ViewWindow::eventFilter(watched, e); }
@@ -112,10 +119,11 @@ public slots:
 
   virtual void activateSetRotationGravity() {}
   virtual void activateSetRotationSelected( double theX, double theY, double theZ ) {}
-  virtual void activateStartPointSelection() {}
+  virtual void activateStartPointSelection( TopAbs_ShapeEnum ) {}
   virtual void updateGravityCoords() {}
    
   void onMaximizedView( OCCViewer_ViewWindow*, bool );
+  void returnTo3dView();
 
   virtual void onDumpView();