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

Location:
trunk/geant4/visualization/OpenGL/src
Files:
3 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 
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLStoredQtViewer.cc

    r797 r799  
    3434#ifdef G4VIS_BUILD_OPENGLQT_DRIVER
    3535
    36 #define GEANT4_QT_DEBUG
     36//#define GEANT4_QT_DEBUG
    3737
    3838#include "G4OpenGLStoredQtViewer.hh"
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLViewer.cc

    r798 r799  
    3333
    3434#ifdef G4VIS_BUILD_OPENGL_DRIVER
     35
     36#define GEANT4_QT_DEBUG
    3537
    3638#include "G4ios.hh"
     
    931933    }
    932934  } 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
    933938    new_up = up;
    934939    if (new_vp.z()*vp.z() <0) {
     940#ifdef GEANT4_QT_DEBUG
     941      printf("G4OpenGLViewer:: ***********************************************************\n");
     942#endif
    935943      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());
    936945    }
    937946  }
Note: See TracChangeset for help on using the changeset viewer.