Ignore:
Timestamp:
Aug 28, 2008, 4:17:35 PM (17 years ago)
Author:
garnier
Message:

maj de CVS

Location:
trunk/source/visualization/management
Files:
2 edited

Legend:

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

    r846 r849  
    1 $Id: History,v 1.110 2008/04/30 10:07:28 allison Exp $
     1$Id: History,v 1.111 2008/07/27 10:46:23 allison Exp $
    22
    33-------------------------------------------------------------------
     
    2626History file for visualization management sub-category
    2727------------------------------------------------------
     28
     2927th July 2008  John Allison
     30- G4VisCommands.cc: Trap recursive use of /vis/reviewKeptEvents.
    2831
    293230th April 2008  John Allison  (visman-V09-01-04)
  • trunk/source/visualization/management/src/G4VisCommands.cc

    r772 r849  
    2525//
    2626//
    27 // $Id: G4VisCommands.cc,v 1.22 2007/03/27 15:47:32 allison Exp $
     27// $Id: G4VisCommands.cc,v 1.23 2008/07/27 10:46:23 allison Exp $
    2828// GEANT4 tag $Name:  $
    2929
     
    179179void G4VisCommandReviewKeptEvents::SetNewValue (G4UIcommand*, G4String newValue)
    180180{
     181  static bool reviewing = false;
     182  if (reviewing) {
     183    G4cout <<
     184      "\"/vis/reviewKeptEvents\" not allowed within an already started review."
     185      "\n  No action taken."
     186           << G4endl;
     187    return;
     188  }
     189
    181190  G4String& macroFileName = newValue;
    182191  G4VisManager::Verbosity verbosity = fpVisManager->GetVerbosity();
     
    223232
    224233  // Event by event refreshing...
     234  reviewing  = true;
    225235  G4bool currentRefreshAtEndOfEvent = pScene->GetRefreshAtEndOfEvent();
    226236  pScene->SetRefreshAtEndOfEvent(true);
     
    286296  }
    287297  pScene->SetRefreshAtEndOfEvent(currentRefreshAtEndOfEvent);
     298  reviewing  = false;
    288299
    289300  UImanager->SetVerboseLevel(keepVerbose);
Note: See TracChangeset for help on using the changeset viewer.