Changeset 799 for trunk/geant4/visualization/OpenGL
- Timestamp:
- May 15, 2008, 6:49:02 PM (16 years ago)
- Location:
- trunk/geant4/visualization/OpenGL/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r798 r799 88 88 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 89 89 { 90 #ifdef GEANT4_QT_DEBUG91 printf("G4OpenGLQtViewer::SetView ++++++++++++++++++++\n");92 #endif93 90 // if(!fHDC) return; 94 91 // if(!fHGLRC) return; … … 96 93 // fWindow->makeCurrent(); 97 94 G4OpenGLViewer::SetView (); 98 #ifdef GEANT4_QT_DEBUG99 printf("G4OpenGLQtViewer::SetView --------------------\n");100 #endif101 95 } 102 96 … … 1551 1545 int cycles = 4; 1552 1546 while (fAutoMove) { 1553 if ( lastMoveTime.elapsed() > (f LaunchSpinDelay / (cycles/2))) {1547 if ( lastMoveTime.elapsed() > (fSpinningDelay / (cycles/2))) { 1554 1548 if (fMouseAction == STYLE1) { // rotate 1555 1549 rotateQtScene(((float)delta.x())/cycles,((float)delta.y())/cycles); … … 1648 1642 fHoldRotateEvent = true; 1649 1643 1650 #ifdef GEANT4_QT_DEBUG 1651 printf("G4OpenGLQtViewer::rotateQtScene %f %f\n",dx,dy); 1652 #endif 1653 rotateScene(dx,dy,fDeltaRotation); 1644 rotateScene(dx,0,fDeltaRotation); 1645 rotateScene(0,dy,fDeltaRotation); 1654 1646 updateQWidget(); 1655 1647 -
trunk/geant4/visualization/OpenGL/src/G4OpenGLStoredQtViewer.cc
r797 r799 34 34 #ifdef G4VIS_BUILD_OPENGLQT_DRIVER 35 35 36 #define GEANT4_QT_DEBUG36 //#define GEANT4_QT_DEBUG 37 37 38 38 #include "G4OpenGLStoredQtViewer.hh" -
trunk/geant4/visualization/OpenGL/src/G4OpenGLViewer.cc
r798 r799 33 33 34 34 #ifdef G4VIS_BUILD_OPENGL_DRIVER 35 36 #define GEANT4_QT_DEBUG 35 37 36 38 #include "G4ios.hh" … … 931 933 } 932 934 } else { 935 #ifdef GEANT4_QT_DEBUG 936 printf("G4OpenGLViewer:: %f %f %f - %f %f %f \n",up.x(),up.y(),up.z(),new_vp.x(),new_vp.y(),new_vp.z()); 937 #endif 933 938 new_up = up; 934 939 if (new_vp.z()*vp.z() <0) { 940 #ifdef GEANT4_QT_DEBUG 941 printf("G4OpenGLViewer:: ***********************************************************\n"); 942 #endif 935 943 new_up.set(new_up.x(),-new_up.y(),new_up.z()); 944 // new_vp.set(-new_vp.x(),new_vp.y(),new_vp.z()); 936 945 } 937 946 }
Note: See TracChangeset
for help on using the changeset viewer.