Changeset 849 for trunk/source/visualization/management
- Timestamp:
- Aug 28, 2008, 4:17:35 PM (17 years ago)
- Location:
- trunk/source/visualization/management
- Files:
-
- 2 edited
-
History (modified) (2 diffs)
-
src/G4VisCommands.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/management/History
r846 r849 1 $Id: History,v 1.11 0 2008/04/30 10:07:28allison Exp $1 $Id: History,v 1.111 2008/07/27 10:46:23 allison Exp $ 2 2 3 3 ------------------------------------------------------------------- … … 26 26 History file for visualization management sub-category 27 27 ------------------------------------------------------ 28 29 27th July 2008 John Allison 30 - G4VisCommands.cc: Trap recursive use of /vis/reviewKeptEvents. 28 31 29 32 30th April 2008 John Allison (visman-V09-01-04) -
trunk/source/visualization/management/src/G4VisCommands.cc
r772 r849 25 25 // 26 26 // 27 // $Id: G4VisCommands.cc,v 1.2 2 2007/03/27 15:47:32allison Exp $27 // $Id: G4VisCommands.cc,v 1.23 2008/07/27 10:46:23 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 … … 179 179 void G4VisCommandReviewKeptEvents::SetNewValue (G4UIcommand*, G4String newValue) 180 180 { 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 181 190 G4String& macroFileName = newValue; 182 191 G4VisManager::Verbosity verbosity = fpVisManager->GetVerbosity(); … … 223 232 224 233 // Event by event refreshing... 234 reviewing = true; 225 235 G4bool currentRefreshAtEndOfEvent = pScene->GetRefreshAtEndOfEvent(); 226 236 pScene->SetRefreshAtEndOfEvent(true); … … 286 296 } 287 297 pScene->SetRefreshAtEndOfEvent(currentRefreshAtEndOfEvent); 298 reviewing = false; 288 299 289 300 UImanager->SetVerboseLevel(keepVerbose);
Note:
See TracChangeset
for help on using the changeset viewer.
