From: apo Date: Thu, 6 Oct 2005 07:58:37 +0000 (+0000) Subject: To implement tilt the control forward/backward = rotate around X axis (Z axis of... X-Git-Tag: BR-D5-38-2003_D2005-12-10~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7753af79c8d26fb6c514d479647372ac5ca2f286;p=modules%2Fgui.git To implement tilt the control forward/backward = rotate around X axis (Z axis of local coordinate system of space mouse) --- diff --git a/src/SVTK/SVTK_InteractorStyle.cxx b/src/SVTK/SVTK_InteractorStyle.cxx index 52da7f3b7..59ece223d 100644 --- a/src/SVTK/SVTK_InteractorStyle.cxx +++ b/src/SVTK/SVTK_InteractorStyle.cxx @@ -1208,6 +1208,7 @@ SVTK_InteractorStyle IncrementalZoom( (int)data[2] ); // 1. push toward / pull backward = zoom out / zoom in IncrementalPan( (int)data[0], (int)data[1] );// 2. pull up / push down = pan up / down, 3. move left / right = pan left / right IncrementalRotate( 0, (int)data[4] ); // 4. twist the control = rotate around Y axis + IncrementalRotate( (int)data[3], 0 ); // 5. tilt the control forward/backward = rotate around X axis (Z axis of local coordinate system of space mouse) } //----------------------------------------------------------------------------