Changeset 939


Ignore:
Timestamp:
Mar 5, 2009, 11:52:40 AM (15 years ago)
Author:
garnier
Message:

OK, juste avant de suppr les comm inutiles

Location:
trunk/source/visualization
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc

    r938 r939  
    5151#include "G4AttHolder.hh"
    5252#include "G4AttCheck.hh"
     53#include "G4StateManager.hh"
    5354
    5455// GL2PS
     
    916917  ResizeGLView();
    917918  if (fGL2PSAction->enableFileWriting()) {
    918 #ifdef G4DEBUG_VIS_OGL
    919       printf("Call Need() \n");
    920 #endif
    921     NeedKernelVisit ();
    922 #ifdef G4DEBUG_VIS_OGL
    923       printf("Call Process() \n");
    924 #endif
    925     ProcessView();
    926     SetView ();
    927     ClearView ();
    928919    DrawView ();
    929920    fGL2PSAction->disableFileWriting();
  • trunk/source/visualization/OpenGL/src/G4OpenGLXViewer.cc

    r938 r939  
    418418  if (fVectoredPs) {
    419419
    420     // Set State to Idle because otherwise it won't redraw
    421     G4StateManager* stateManager = G4StateManager::GetStateManager();
    422     G4ApplicationState oldState = stateManager->GetCurrentState();
    423     stateManager->SetNewState(G4State_Idle);
    424420    printGl2PS(fWinSize_x, fWinSize_y);
    425     stateManager->SetNewState(oldState);
    426    
    427     //    fPrintFilename =   fPrintFilename+"-Gl2ps.ps";
    428421    //    printVectoredEPS();
    429422   
  • trunk/source/visualization/management/src/G4VSceneHandler.cc

    r931 r939  
    545545  G4ApplicationState state = stateManager->GetCurrentState();
    546546  if (state == G4State_Idle) {
     547    printf("State is ILDE....ProcessScene\n");
     548  } else {
     549    printf("State is not ILDE....ProcessScene\n");
     550  }
     551  if (state == G4State_Idle) {
    547552
    548553    visManager->SetEventRefreshing(true);
Note: See TracChangeset for help on using the changeset viewer.