From 7753af79c8d26fb6c514d479647372ac5ca2f286 Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 6 Oct 2005 07:58:37 +0000 Subject: [PATCH] To implement tilt the control forward/backward = rotate around X axis (Z axis of local coordinate system of space mouse) --- src/SVTK/SVTK_InteractorStyle.cxx | 1 + 1 file changed, 1 insertion(+) 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) } //---------------------------------------------------------------------------- -- 2.39.2