Changeset 1131


Ignore:
Timestamp:
Oct 14, 2009, 4:39:32 PM (15 years ago)
Author:
garnier
Message:

update

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

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/History

    r1130 r1131  
    1 $Id: History,v 1.148 2009/10/14 13:27:30 lgarnier Exp $
     1$Id: History,v 1.151 2009/10/14 14:35:07 lgarnier Exp $
    22-------------------------------------------------------------------
    33
     
    191913 October 2009 Laurent Garnier
    2020 - G4OpenGLImmediateQtViewer/StoredQtViewer : some cleaning
    21  
     21 - G4OpenGLQtViewer.hh : Fix a compile error on mac OS X 10.5.8
     22 - G4OpenGLImmediateQtViewer : Remove picking to true at initialisation
     23 - G4OpenGLQtViewer.cc : Fix a redraw problem on mac OS X 10.6
     24 - G4OpenGLStoreQtViewer.cc : Fix width() and height() problem on mac OS X 10.6
     25
    222629 September 2009  John Allison  (opengl-V09-02-07)
    2327- Tagged.
  • trunk/source/visualization/OpenGL/include/G4OpenGLQtViewer.hh

    r1127 r1131  
    2525//
    2626//
    27 // $Id: G4OpenGLQtViewer.hh,v 1.17 2009/05/13 10:28:00 lgarnier Exp $
     27// $Id: G4OpenGLQtViewer.hh,v 1.18 2009/10/14 14:06:00 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
  • trunk/source/visualization/OpenGL/src/G4OpenGLImmediateQtViewer.cc

    r1130 r1131  
    2525//
    2626//
    27 // $Id: G4OpenGLImmediateQtViewer.cc,v 1.14 2009/05/13 10:28:00 lgarnier Exp $
     27// $Id: G4OpenGLImmediateQtViewer.cc,v 1.15 2009/10/14 14:32:09 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    188188  // DO NOT RESIZE IF SIZE HAS NOT CHANGE
    189189  if ( !fHasToRepaint) {
    190     if (((getWinWidth() == (unsigned int)width())) &&(getWinHeight() == (unsigned int) height())) {
     190    // L. Garnier : Trap to get the size with mac OSX 10.6 and Qt 4.6(devel)
     191    // Tested on Qt4.5 on mac, 4.4 on windows, 4.5 on unbuntu
     192    int sw = 0;
     193    int sh = 0;
     194    if (!isMaximized() && !isFullScreen()) {
     195      sw = normalGeometry().width();
     196      sh = normalGeometry().height();
     197    } else {
     198      sw = frameGeometry().width();
     199      sh = frameGeometry().height();
     200    }
     201    if ((getWinWidth() == (unsigned int)sw) &&(getWinHeight() == (unsigned int)sh)) {
    191202      return;
    192203    }
  • trunk/source/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r1125 r1131  
    2525//
    2626//
    27 // $Id: G4OpenGLQtViewer.cc,v 1.43 2009/07/29 10:04:45 lgarnier Exp $
     27// $Id: G4OpenGLQtViewer.cc,v 1.44 2009/10/14 14:35:07 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
  • trunk/source/visualization/OpenGL/src/G4OpenGLStoredQtViewer.cc

    r1126 r1131  
    234234      sh = frameGeometry().height();
    235235    }
    236 #ifdef G4DEBUG_VIS_OGL
    237     printf("G4OpenGLStoredQtViewer::paintGL %d = %d    %d = %d\n",getWinWidth(),width(),getWinHeight(),height());
    238     printf("G4OpenGLStoredQtViewer::paintGL ................................%d x %d \n",sw,sh);
    239    
    240 #endif
    241236    if ((getWinWidth() == (unsigned int)sw) &&(getWinHeight() == (unsigned int)sh)) {
    242237      return;
Note: See TracChangeset for help on using the changeset viewer.