Changeset 1227 for trunk


Ignore:
Timestamp:
Jan 5, 2010, 3:52:09 PM (14 years ago)
Author:
garnier
Message:

avant maj de CVS

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

Legend:

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

    r1196 r1227  
    1111
    1212# For debug mode
    13 CPPFLAGS += -DG4DEBUG_VIS_OGL
     13# CPPFLAGS += -DG4DEBUG_VIS_OGL
    1414
    15 GLOBLIBS  = libG4vis_management.lib libG4modeling.lib
    16 GLOBLIBS += libG4interfaces.lib libG4run.lib libG4event.lib
     15GLOBLIBS  = libG4vis_management.lib libG4modeling.lib libG4gl2ps.lib
     16GLOBLIBS += libG4zlib.lib libG4interfaces.lib libG4run.lib libG4event.lib
    1717GLOBLIBS += libG4tracking.lib libG4processes.lib libG4digits_hits.lib
    1818GLOBLIBS += libG4track.lib libG4particles.lib libG4geometry.lib
     
    3939CPPFLAGS += -I$(G4BASE)/digits_hits/hits/include
    4040
    41 INTYLIBS += -L$(G4LIBDIR)
    42 
    43 SUBLIBS += G4gl2ps
     41#INTYLIBS += -L$(G4LIBDIR)
    4442
    4543include $(G4INSTALL)/config/moc.gmk
  • trunk/source/visualization/OpenGL/src/G4OpenGLImmediateQtViewer.cc

    r1196 r1227  
    190190#if QT_VERSION < 0x040000
    191191    if (((getWinWidth() == (unsigned int)width())) &&(getWinHeight() == (unsigned int) height())) {
     192      return;
     193    }
    192194#else
    193195    // L. Garnier : Trap to get the size with mac OSX 10.6 and Qt 4.6(devel)
     
    203205    }
    204206    if ((getWinWidth() == (unsigned int)sw) &&(getWinHeight() == (unsigned int)sh)) {
    205 #endif
    206207      return;
     208
     209    } else if ((sw == 0) && (sh == 0)) { // NOT A TOP LEVEL WIDGET
     210      if (((getWinWidth() == (unsigned int)width())) &&(getWinHeight() == (unsigned int) height())) {
     211        //        return;
     212      }
    207213    }
     214#endif
    208215  }
    209216#ifdef G4DEBUG_VIS_OGL
  • trunk/source/visualization/OpenGL/src/G4OpenGLStoredQtViewer.cc

    r1196 r1227  
    210210
    211211
     212// We have to get several case :
     213// - Only activate the windows (mouse click for example) -> Do not redraw
     214// - resize window -> redraw
     215// - try to avoid recompute everything if we do not rescale picture (side is the same)
     216 
    212217void G4OpenGLStoredQtViewer::paintGL()
    213218{
     
    250255  ClearView (); //ok, put the background correct
    251256  ComputeView();
    252      
     257
    253258  fHasToRepaint =false;
    254259     
Note: See TracChangeset for help on using the changeset viewer.