]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To customize SpaceMause interaction
authorapo <apo@opencascade.com>
Wed, 5 Oct 2005 14:30:44 +0000 (14:30 +0000)
committerapo <apo@opencascade.com>
Wed, 5 Oct 2005 14:30:44 +0000 (14:30 +0000)
(introduce magnification functionality)

src/VISUGUI/VisuGUI_Module.cxx

index 3e28bbc470ff061a70b0fa5e2e6e4356fda087ae..50b787d5fbb29d3c411bbf9e238888c003738608 100644 (file)
@@ -47,8 +47,8 @@
 
 #include "SVTK_ViewModel.h"
 #include "SVTK_ViewManager.h"
-#include "SVTK_Event.h"
 #include "SVTK_MainWindow.h"
+#include "VVTK_Event.h"
 
 #include "VisuGUI_Prs3dTools.h"
 
@@ -661,23 +661,23 @@ VisuGUI_Module
   }
   else if ( pref == "spacemouse_func1_btn" ) {
     val = resMgr->integerValue( "VISU", pref, 1 );
-    aMainWindow->InvokeEvent( SVTK::SetSpaceMouseF1Event, &val );
+    aMainWindow->InvokeEvent( SVTK::SetSMDecreaseSpeedEvent, &val );
   }
   else if ( pref == "spacemouse_func2_btn" ) {
     val = resMgr->integerValue( "VISU", pref, 2 );
-    aMainWindow->InvokeEvent( SVTK::SetSpaceMouseF2Event, &val );
+    aMainWindow->InvokeEvent( SVTK::SetSMIncreaseSpeedEvent, &val );
   }
   else if ( pref == "spacemouse_func3_btn" ) {
     val = resMgr->integerValue( "VISU", pref, 10 );
-    aMainWindow->InvokeEvent( SVTK::SetSpaceMouseF3Event, &val );
+    aMainWindow->InvokeEvent( VVTK::SetSMDecreaseMagnificationEvent, &val );
   }
   else if ( pref == "spacemouse_func4_btn" ) {
     val = resMgr->integerValue( "VISU", pref, 11 );
-    aMainWindow->InvokeEvent( SVTK::SetSpaceMouseF4Event, &val );
+    aMainWindow->InvokeEvent( VVTK::SetSMIncreaseMagnificationEvent, &val );
   }
   else if ( pref == "spacemouse_func5_btn" ) {
     val = resMgr->integerValue( "VISU", pref, 9 );
-    aMainWindow->InvokeEvent( SVTK::SetSpaceMouseF5Event, &val );
+    aMainWindow->InvokeEvent( SVTK::SetSMDominantCombinedSwitchEvent, &val );
   }
 }