From 6ab92470c83abaeb20631b3074366f9f396be4dc Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 5 Oct 2005 14:30:44 +0000 Subject: [PATCH] To customize SpaceMause interaction (introduce magnification functionality) --- src/VISUGUI/VisuGUI_Module.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 ); } } -- 2.39.2