From: apo Date: Wed, 5 Oct 2005 14:30:44 +0000 (+0000) Subject: To customize SpaceMause interaction X-Git-Tag: BR-D5-38-2003_D2005-12-10~54 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6ab92470c83abaeb20631b3074366f9f396be4dc;p=modules%2Fvisu.git To customize SpaceMause interaction (introduce magnification functionality) --- diff --git a/src/VISUGUI/VisuGUI_Module.cxx b/src/VISUGUI/VisuGUI_Module.cxx index 3e28bbc4..50b787d5 100644 --- a/src/VISUGUI/VisuGUI_Module.cxx +++ b/src/VISUGUI/VisuGUI_Module.cxx @@ -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 ); } }