Ignore:
Timestamp:
May 15, 2008, 6:49:02 PM (16 years ago)
Author:
garnier
Message:

r836@wl-72126: garnier | 2008-05-15 14:34:32 +0200
en test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r798 r799  
    8888//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
    8989{
    90 #ifdef GEANT4_QT_DEBUG
    91   printf("G4OpenGLQtViewer::SetView ++++++++++++++++++++\n");
    92 #endif
    9390  //   if(!fHDC) return;
    9491  //   if(!fHGLRC) return;
     
    9693  //  fWindow->makeCurrent();
    9794  G4OpenGLViewer::SetView ();
    98 #ifdef GEANT4_QT_DEBUG
    99   printf("G4OpenGLQtViewer::SetView --------------------\n");
    100 #endif
    10195}
    10296
     
    15511545    int cycles = 4;
    15521546    while (fAutoMove) {
    1553       if ( lastMoveTime.elapsed() > (fLaunchSpinDelay / (cycles/2))) {
     1547      if ( lastMoveTime.elapsed() > (fSpinningDelay / (cycles/2))) {
    15541548        if (fMouseAction == STYLE1) {  // rotate
    15551549          rotateQtScene(((float)delta.x())/cycles,((float)delta.y())/cycles);
     
    16481642  fHoldRotateEvent = true;
    16491643
    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);
    16541646  updateQWidget();
    16551647 
Note: See TracChangeset for help on using the changeset viewer.