38 #ifdef G4MULTITHREADED
58 fpCommand -> SetGuidance(
"Abort review of kept events.");
59 fpCommand -> SetParameterName(
"abort", omitable=
true);
74 G4cout <<
"Type \"continue\" to complete the abort." <<
G4endl;
85 (
"DURING A RUN draw only those events that have been \"to be kept\" by the user"
86 "\nwith G4EventManager::GetEventManager()->KeepTheCurrentEvent() or"
87 "\nwith \"/event/keepCurrentEvent\".");
89 "To draw selected events the user should set this flag, then in a user action:"
90 "\n if ( some criterion ) {"
91 "\n G4EventManager::GetEventManager()->KeepTheCurrentEvent();"
93 fpCommand -> SetParameterName(
"draw", omitable=
true);
111 G4cout <<
"Only events that have been kept will be drawn." <<
G4endl;
124 fpCommand -> SetGuidance(
"Enables/disables visualization system.");
125 fpCommand -> SetParameterName(
"enabled", omitable=
true);
129 fpCommand1 -> SetGuidance(
"Disables visualization system.");
156 fpCommand -> SetGuidance(
"Initialise visualisation manager.");
175 fpCommand -> SetGuidance(
"Lists visualization parameters.");
176 fpCommand -> SetParameterName(
"verbosity", omitable=
true);
177 fpCommand -> SetDefaultValue(
"warnings");
192 G4String& verbosityString = newValue;
205 UImanager->
ApplyCommand(
"/vis/scene/list ! " + newValue);
206 UImanager->
ApplyCommand(
"/vis/viewer/list ! " + newValue);
209 "\nAttributes available for modeling and filtering with"
210 "\n \"/vis/modeling/trajectories/create/drawByAttribute\" and"
211 "\n \"/vis/filtering/trajectories/create/attributeFilter\" commands"
227 "\nGeometry attributes available for touchables by picking:\n";
233 "\nTo get more information, \"/vis/list all\" or use individual commands"
234 "\n such as (use \"ls\" or \"help\"):"
235 "\n /vis/scene/list all all"
236 "\n /vis/viewer/list all all"
237 "\n /vis/modeling/trajectories/list"
238 "\n /vis/filtering/trajectories/list"
249 fpCommand -> SetGuidance(
"Review kept events.");
251 (
"If a macro file is specified, it is executed for each event.");
253 "If a macro file is not specified, each event is drawn to the current"
254 "\nviewer. After each event, the session is paused. The user may issue"
255 "\nany allowed command. Then enter \"cont[inue]\" to continue to the next"
257 "\nUseful commands might be:"
258 "\n \"/vis/viewer/...\" to change the view (zoom, set/viewpoint,...)."
259 "\n \"/vis/oglx/printEPS\" to get hard copy."
260 "\n \"/vis/open\" to get alternative viewer."
261 "\n \"/vis/abortReviewKeptEvents\", then \"cont[inue]\", to abort.");
262 fpCommand -> SetParameterName(
"macro-file-name", omitable=
true);
280 "\"/vis/reviewKeptEvents\" not allowed within an already started review."
281 "\n No action taken."
290 #ifdef G4MULTITHREADED
295 const std::vector<const G4Event*>* events = run? run->
GetEventVector(): 0;
296 size_t nKeptEvents = events? events->size(): 0;
301 "ERROR: G4VisCommandReviewKeptEvents::SetNewValue: No kept events,"
302 "\n or kept events not accessible."
312 "ERROR: No current viewer - \"/vis/viewer/list\" to see possibilities."
321 G4cerr <<
"ERROR: No current scene. Please create one." <<
G4endl;
343 if (macroFileName.empty()) {
347 for (
size_t i = 0; i < nKeptEvents; ++i) {
348 const G4Event*
event = (*events)[i];
350 G4cout <<
"Drawing event : " <<
event->GetEventID() <<
351 ". At EndOfEvent, enter any command, then \"cont[inue]\"..."
353 static G4bool first =
true;
357 " Useful commands might be:"
358 "\n \"/vis/scene/add/trajectories\" if not already added."
359 "\n \"/vis/viewer/...\" to change the view (zoom, set/viewpoint,...)."
360 "\n \"/vis/oglx/printEPS\" to get hard copy."
361 "\n \"/vis/open\" to get alternative viewer."
362 "\n \"/vis/abortReviewKeptEvents\", then \"cont[inue]\", to abort."
393 for (
size_t i = 0; i < nKeptEvents; ++i) {
394 const G4Event*
event = (*events)[i];
396 G4cout <<
"Drawing event : " <<
event->GetEventID()
397 <<
" with macro file \"" << macroFileName <<
G4endl;
400 UImanager->
ApplyCommand(
"/control/execute " + macroFileName);
421 fpCommand -> SetParameterName(
"verbosity", omitable=
true);
422 fpCommand -> SetDefaultValue(
"warnings");
439 G4cout <<
"Visualization verbosity changed to "