Changeset 711 for trunk/geant4
- Timestamp:
- Feb 4, 2008, 6:41:34 PM (17 years ago)
- Location:
- trunk/geant4/visualization/OpenGL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/include/G4OpenGLQtViewer.hh
r707 r711 156 156 void toggleFullScreen(); 157 157 // Only use for Qt>4.0 158 void dialogClosed();158 // void dialogClosed(); 159 159 }; 160 160 -
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r709 r711 244 244 245 245 #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())); 250 250 #endif 251 251 … … 270 270 /** Close the dialog and set the pointer to NULL 271 271 */ 272 void G4OpenGLQtViewer::dialogClosed() {273 #ifdef GEANT4_QT_DEBUG274 printf("G4OpenGLQtViewer::dialogClosed END\n");275 #endif276 // GLWindow = NULL;277 }272 // void G4OpenGLQtViewer::dialogClosed() { 273 // #ifdef GEANT4_QT_DEBUG 274 // printf("G4OpenGLQtViewer::dialogClosed END\n"); 275 // #endif 276 // // GLWindow = NULL; 277 // } 278 278 #endif 279 279 … … 1386 1386 1387 1387 /** 1388 Move the scene of dx, dy, dz values. 1389 Values are in 1390 100 moves of 1 => move of 10cm of the scene 1388 1391 @param dx delta mouse x position 1389 1392 @param dy delta mouse y position … … 1392 1395 void G4OpenGLQtViewer::G4MouseMoveEvent(int dx, int dy, int dz) 1393 1396 { 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(); 1401 1423 1402 1424 G4Point3D tp = stp + fVP.GetCurrentTargetPoint ();
Note: See TracChangeset
for help on using the changeset viewer.