238 static bool reviewing =
false;
241 "\"/vis/reviewKeptEvents\" not allowed within an already started review."
242 "\n No action taken."
251 #ifdef G4MULTITHREADED
256 const std::vector<const G4Event*>* events = run? run->
GetEventVector(): 0;
257 size_t nKeptEvents = events? events->size(): 0;
262 "ERROR: G4VisCommandReviewKeptEvents::SetNewValue: No kept events,"
263 "\n or kept events not accessible."
273 "ERROR: No current viewer - \"/vis/viewer/list\" to see possibilities."
282 G4cerr <<
"ERROR: No current scene. Please create one." <<
G4endl;
301 if (macroFileName.empty()) {
305 for (
size_t i = 0; i < nKeptEvents; ++i) {
306 const G4Event*
event = (*events)[i];
308 G4cout <<
"Drawing event : " <<
event->GetEventID() <<
309 ". At EndOfEvent, enter any command, then \"cont[inue]\"..."
315 " Useful commands might be:"
316 "\n \"/vis/scene/add/trajectories\" if not already added."
317 "\n \"/vis/viewer/...\" to change the view (zoom, set/viewpoint,...)."
318 "\n \"/vis/oglx/printEPS\" to get hard copy."
319 "\n \"/vis/open\" to get alternative viewer."
320 "\n \"/vis/abortReviewKeptEvents\", then \"cont[inue]\", to abort."
351 for (
size_t i = 0; i < nKeptEvents; ++i) {
352 const G4Event*
event = (*events)[i];
354 G4cout <<
"Drawing event : " <<
event->GetEventID()
355 <<
" with macro file \"" << macroFileName <<
G4endl;
358 UImanager->
ApplyCommand(
"/control/execute " + macroFileName);
G4UIsession * GetSession() const
virtual void PauseSessionStart(const G4String &Prompt)
static G4VVisManager * GetConcreteInstance()
void SetRequestedEvent(const G4Event *)
const std::vector< const G4Event * > * GetEventVector() const
G4bool GetRefreshAtEndOfEvent() const
G4int GetVerboseLevel() const
const G4Run * GetCurrentRun() const
void SetVerboseLevel(G4int val)
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
static G4MTRunManager * GetMasterRunManager()
static G4UIterminal * session
G4bool IsMultithreadedApplication()
static G4RunManager * GetRunManager()
static Verbosity GetVerbosity()
G4VViewer * GetCurrentViewer() const
G4bool GetAbortReviewKeptEvents() const
G4int ApplyCommand(const char *aCommand)
G4Scene * GetCurrentScene() const
void SetRefreshAtEndOfEvent(G4bool)
G4GLOB_DLL std::ostream G4cerr
void SetAbortReviewKeptEvents(G4bool)
static G4VisManager * fpVisManager