Ignore:
Timestamp:
Feb 4, 2008, 6:41:34 PM (16 years ago)
Author:
garnier
Message:

debut de recherche du decalage de deplacement

Location:
trunk/geant4/visualization/OpenGL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/visualization/OpenGL/include/G4OpenGLQtViewer.hh

    r707 r711  
    156156  void toggleFullScreen();
    157157  // Only use for Qt>4.0
    158   void dialogClosed();
     158  //  void dialogClosed();
    159159};
    160160
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r709 r711  
    244244
    245245#if QT_VERSION >= 0x040000
    246   QObject ::connect(GLWindow,
    247                     SIGNAL(rejected()),
    248                     this,
    249                     SLOT(dialogClosed()));
     246//   QObject ::connect(GLWindow,
     247//                     SIGNAL(rejected()),
     248//                     this,
     249//                     SLOT(dialogClosed()));
    250250#endif
    251251
     
    270270/**  Close the dialog and set the pointer to NULL
    271271 */
    272 void G4OpenGLQtViewer::dialogClosed() {
    273 #ifdef GEANT4_QT_DEBUG
    274   printf("G4OpenGLQtViewer::dialogClosed END\n");
    275 #endif
    276   //  GLWindow = NULL;
    277 }
     272// void G4OpenGLQtViewer::dialogClosed() {
     273// #ifdef GEANT4_QT_DEBUG
     274//   printf("G4OpenGLQtViewer::dialogClosed END\n");
     275// #endif
     276//   //  GLWindow = NULL;
     277// }
    278278#endif
    279279
     
    13861386
    13871387/**
     1388   Move the scene of dx, dy, dz values.
     1389   Values are in
     1390   100 moves of 1 => move of 10cm of the scene
    13881391   @param dx delta mouse x position
    13891392   @param dy delta mouse y position
     
    13921395void G4OpenGLQtViewer::G4MouseMoveEvent(int dx, int dy, int dz)
    13931396{
    1394   int deltaX =
    1395 GLenum clip = glGet(GL_CLIP_PLANE);
    1396   int deltaY = ;
    1397 
    1398 
    1399   G4Point3D stp
    1400     = GetSceneHandler()->GetScene()->GetStandardTargetPoint();
     1397//               2
     1398//         ------------       0              0              tx
     1399//         right - left
     1400//                            2
     1401//             0         ------------        0              ty
     1402//                       top - bottom
     1403//                                           -2
     1404//             0              0         ------------        tz
     1405//                                       zFar-zNear
     1406//             0              0              0              1
     1407//        where
     1408//                        tx = - (right + left) / (right - left)
     1409//                        ty = - (top + bottom) / (top - bottom)
     1410//                        tz = - (zFar + zNear) / (zFar - zNear)
     1411 double              projection_view[16];
     1412 glGetDoublev (GL_PROJECTION_MATRIX, projection_view);
     1413 printf("%f\t%f\t%f\t%f\n",projection_view[0],projection_view[1],projection_view[2],projection_view[3]);
     1414 printf("%f\t%f\t%f\t%f\n",projection_view[4],projection_view[5],projection_view[6],projection_view[7]);
     1415 printf("%f\t%f\t%f\t%f\n",projection_view[8],projection_view[9],projection_view[10],projection_view[11]);
     1416 printf("%f\t%f\t%f\t%f\n",projection_view[12],projection_view[13],projection_view[14],projection_view[15]);
     1417//   int deltaX =
     1418// GLenum clip = glGet(GL_CLIP_PLANE);
     1419//   int deltaY = ;
     1420
     1421
     1422  G4Point3D stp = GetSceneHandler()->GetScene()->GetStandardTargetPoint();
    14011423 
    14021424  G4Point3D tp = stp + fVP.GetCurrentTargetPoint ();
Note: See TracChangeset for help on using the changeset viewer.