-
- Downloads
Implement arc-ball camera rotation. Use the 'a' key to switch between the
standard (up-direction fixed) and arc-ball rotation modes. * TGLCamera Add functions RotateArcBall() and RotateArcBallRad(). Add member 'Bool_t fWasArBalled'. Check its state in standard Rotate function and fix up direction if needed. * TGLOrthoCamera, TGLPerspectiveCamera Use combined view matrix's third vector as the up direction. * TGLEventHandler Add arc-ball state variable and key-handling. Add logic for calling std vs arc-ball camera rotate function. * TGLSAViewer Document arc-ball key binding in help text. git-svn-id: http://root.cern.ch/svn/root/trunk@44693 27541ba8-7e3a-0410-8455-c3a389f83636
Showing
- graf3d/gl/inc/TGLCamera.h 3 additions, 0 deletionsgraf3d/gl/inc/TGLCamera.h
- graf3d/gl/inc/TGLEventHandler.h 4 additions, 0 deletionsgraf3d/gl/inc/TGLEventHandler.h
- graf3d/gl/src/TGLCamera.cxx 79 additions, 3 deletionsgraf3d/gl/src/TGLCamera.cxx
- graf3d/gl/src/TGLEventHandler.cxx 8 additions, 1 deletiongraf3d/gl/src/TGLEventHandler.cxx
- graf3d/gl/src/TGLOrthoCamera.cxx 1 addition, 1 deletiongraf3d/gl/src/TGLOrthoCamera.cxx
- graf3d/gl/src/TGLPerspectiveCamera.cxx 1 addition, 1 deletiongraf3d/gl/src/TGLPerspectiveCamera.cxx
- graf3d/gl/src/TGLSAViewer.cxx 1 addition, 0 deletionsgraf3d/gl/src/TGLSAViewer.cxx
Loading
Please register or sign in to comment