Salome HOME
missing French translations
[modules/gui.git] / src / SVTK / SVTK_ViewModel.h
index b0671426579f64dee52375bc5cc0ef5b73b17a49..155fd1f61fe137cb8ba2b78d945802c493644276 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2013  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
@@ -25,6 +25,7 @@
 
 #include "SVTK.h"
 #include "SVTK_ViewModelBase.h"
+#include "SVTK_Selection.h"
 
 #include "Qtx.h"
 
@@ -93,13 +94,13 @@ public:
   void setBackground( const Qtx::BackgroundData& );
 
   //! Get size of trihedron of the viewer (see #SVTK_Renderer::SetTrihedronSize)
-  vtkFloatingPointType trihedronSize() const;
+  double trihedronSize() const;
 
   //! Shows if the size of trihedron relative (see #SVTK_Renderer::SetTrihedronSize)
   bool trihedronRelative() const;
 
   //! Set size of trihedron of the viewer (see #SVTK_Renderer::SetTrihedronSize)
-  void setTrihedronSize( const vtkFloatingPointType, const bool = true );
+  void setTrihedronSize( const double, const bool = true );
 
   //! Get visibility status of the static trihedron
   bool isStaticTrihedronVisible() const;
@@ -125,12 +126,12 @@ public:
   //! Sets zooming style
   void setZoomingStyle( const int );
 
-  //! Gets dynamic preselection
-  bool dynamicPreSelection() const;
-
-  //! Sets dynamic preselection
-  void setDynamicPreSelection( const bool );
+  //! Gets current preselection mode (standard, dynamic or disabled)
+  Preselection_Mode preSelectionMode() const;
 
+  //! Sets new preselection mode
+  void setPreSelectionMode( Preselection_Mode );
   //! Get incremental speed (see #SVTK_InteractorStyle::ControllerIncrement)
   int incrementalSpeed() const;
 
@@ -197,7 +198,7 @@ private:
   void updateToolBars();
 
   Qtx::BackgroundData  myDefaultBackground;
-  vtkFloatingPointType myTrihedronSize;
+  double myTrihedronSize;
   bool                 myTrihedronRelative;
   bool                 myIsStaticTrihedronVisible;
   bool                 mySelectionEnabled;
@@ -207,7 +208,7 @@ private:
   int                  myProjMode;
   int                  myStyle;
   int                  myZoomingStyle;
-  bool                 myDynamicPreSelection;
+  Preselection_Mode    myPreSelectionMode;
   int                  mySpaceBtn[3];
 };