Ignore:
Timestamp:
Jan 16, 2009, 3:22:04 PM (15 years ago)
Author:
garnier
Message:

update with CVS

Location:
trunk/source/visualization/OpenGL
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/include/G4OpenGLViewer.hh

    r906 r908  
    2525//
    2626//
    27 // $Id: G4OpenGLViewer.hh,v 1.24 2009/01/13 09:47:05 lgarnier Exp $
     27// $Id: G4OpenGLViewer.hh,v 1.25 2009/01/16 08:29:17 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
  • trunk/source/visualization/OpenGL/src/G4OpenGLImmediateQtViewer.cc

    r906 r908  
    2525//
    2626//
    27 // $Id: G4OpenGLImmediateQtViewer.cc,v 1.8 2009/01/13 09:47:05 lgarnier Exp $
     27// $Id: G4OpenGLImmediateQtViewer.cc,v 1.9 2009/01/15 18:14:58 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    202202  printf("G4OpenGLImmediateQtViewer::paintGL VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV ready %d\n",readyToPaint);
    203203#endif
    204 //   fWinSize_x = (unsigned int) width();
    205 //   fWinSize_y = (unsigned int) height();
    206 
    207   //  setupViewport(width(),height());
    208204
    209205  SetView();
  • trunk/source/visualization/OpenGL/src/G4OpenGLImmediateXmViewer.cc

    r897 r908  
    2525//
    2626//
    27 // $Id: G4OpenGLImmediateXmViewer.cc,v 1.17 2006/07/03 16:38:13 allison Exp $
     27// $Id: G4OpenGLImmediateXmViewer.cc,v 1.18 2009/01/13 12:07:12 allison Exp $
    2828// GEANT4 tag $Name:  $
    2929//
  • trunk/source/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r906 r908  
    2525//
    2626//
    27 // $Id: G4OpenGLQtViewer.cc,v 1.31 2009/01/13 09:47:05 lgarnier Exp $
     27// $Id: G4OpenGLQtViewer.cc,v 1.32 2009/01/15 18:14:58 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    174174
    175175  //useful for MACOSX, we have to compt the menuBar height
    176   unsigned int offset = QApplication::desktop()->height()
     176  int offset = QApplication::desktop()->height()
    177177                      - QApplication::desktop()->availableGeometry().height();
    178178
  • trunk/source/visualization/OpenGL/src/G4OpenGLStoredQtViewer.cc

    r906 r908  
    2525//
    2626//
    27 // $Id: G4OpenGLStoredQtViewer.cc,v 1.21 2009/01/13 09:47:05 lgarnier Exp $
     27// $Id: G4OpenGLStoredQtViewer.cc,v 1.22 2009/01/15 18:14:58 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    235235  printf("G4OpenGLStoredQtViewer::paintGL VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV ready %d\n",readyToPaint);
    236236#endif
    237 //   fWinSize_x = (unsigned int) width();
    238 //   fWinSize_y = (unsigned int) height();
    239 
    240   //  setupViewport(width(),height());
    241237
    242238  SetView();
  • trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc

    r906 r908  
    2525//
    2626//
    27 // $Id: G4OpenGLViewer.cc,v 1.43 2009/01/13 09:47:05 lgarnier Exp $
     27// $Id: G4OpenGLViewer.cc,v 1.45 2009/01/15 18:14:58 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    156156{
    157157#ifdef G4DEBUG
    158   printf("G4OpenGLQtViewer::setupViewport\n");
     158  printf("G4OpenGLViewer::setupViewport\n");
    159159#endif
    160160
     
    167167void G4OpenGLViewer::SetView () {
    168168
    169 #ifdef G4DEBUG
    170   printf("G4OpenGLViewer::SetView ------------\n");
    171 #endif
    172169  if (!fSceneHandler.GetScene()) {
    173     G4cerr << "G4OpenGLStoredQtViewer: Creating a Viewer without a scene is not allowed. \nPlease use /vis/scene/create before /vis/open/.... "
     170    G4cerr << "G4OpenGLStoredViewer: Creating a Viewer without a scene is not allowed. \nPlease use /vis/scene/create before /vis/open/.... "
    174171           << G4endl;
    175172    return;
     
    210207 
    211208  // FIXME
    212   //  const G4int& width = fVP.GetWindowSizeHintX();
    213   //  const G4int& height = fVP.GetWindowSizeHintY();
    214   //  G4int side = width;
    215   //  if (height < width) side = height;
    216   //  glViewport((width - side) / 2, (height - side) / 2, side, side);
    217209  ResizeGLView();
     210  //SHOULD SetWindowsSizeHint()...
    218211
    219212  glMatrixMode (GL_PROJECTION); // set up Frustum.
     
    225218  if (fVP.GetFieldHalfAngle() == 0.) {
    226219    glOrtho (left, right, bottom, top, pnear, pfar);
    227 #ifdef G4DEBUG
    228   printf("G4OpenGLViewer::SetView ------------rescale\n");
    229 #endif
    230220  }
    231221  else {
    232222    glFrustum (left, right, bottom, top, pnear, pfar);
    233 #ifdef G4DEBUG
    234   printf("G4OpenGLViewer::SetView ------------Frustum\n");
    235 #endif
    236   }
    237  
     223  } 
    238224
    239225  glMatrixMode (GL_MODELVIEW); // apply further transformations to scene.
  • trunk/source/visualization/OpenGL/src/G4OpenGLXViewer.cc

    r906 r908  
    8282extern "C" {
    8383  static Bool G4OpenGLXViewerWaitForNotify (Display*, XEvent* e, char* arg) {
    84 #ifdef G4DEBUG
    85     printf("G4OpenGLXViewerWaitForNotify\n");
    86 #endif
    8784    return (e->type == MapNotify) && (e->xmap.window == (Window) arg);
    8885  }
  • trunk/source/visualization/OpenGL/src/G4OpenGLXmViewer.cc

    r906 r908  
    2525//
    2626//
    27 // $Id: G4OpenGLXmViewer.cc,v 1.25 2009/01/13 09:47:05 lgarnier Exp $
     27// $Id: G4OpenGLXmViewer.cc,v 1.26 2009/01/15 18:14:58 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    600600  // This should be add AFTER glXMakeCurrent done because it will fire a resizeCallback
    601601  XtAddCallback (glxarea,
    602                  XmNresizeCallback,
    603                  resize_callback,
    604                  this);
     602                 XmNresizeCallback,
     603                 resize_callback,
     604                 this);
    605605
    606606  XtAddCallback (glxarea,
Note: See TracChangeset for help on using the changeset viewer.