56 fpCommand -> SetGuidance(
"Abort review of kept events.");
57 fpCommand -> SetParameterName(
"abort", omitable=
true);
58 fpCommand -> SetDefaultValue(
true);
72 G4cout <<
"Type \"continue\" to complete the abort." <<
G4endl;
81 fpCommand -> SetGuidance(
"Enables/disables visualization system.");
82 fpCommand -> SetParameterName(
"enabled", omitable=
true);
83 fpCommand -> SetDefaultValue(
true);
86 fpCommand1 -> SetGuidance(
"Disables visualization system.");
100 if (command == fpCommand) {
113 fpCommand -> SetGuidance(
"Initialise visualisation manager.");
132 fpCommand -> SetGuidance(
"Lists visualization parameters.");
133 fpCommand -> SetParameterName(
"verbosity", omitable=
true);
134 fpCommand -> SetDefaultValue(
"warnings");
149 G4String& verbosityString = newValue;
166 "\nAttributes available for modeling and filtering with"
167 "\n \"/vis/modeling/trajectories/create/drawByAttribute\" and"
168 "\n \"/vis/filtering/trajectories/create/attributeFilter\" commands"
180 "\nAttributes available for touchables by picking:"
186 "\nTo get more information, \"/vis/list all all\" or use individual commands"
187 "\n such as (use \"ls\" or \"help\"):"
188 "\n /vis/scene/list all all"
189 "\n /vis/viewer/list all all"
190 "\n /vis/modeling/trajectories/list"
191 "\n /vis/filtering/trajectories/list"
202 fpCommand -> SetGuidance(
"Review kept events.");
203 fpCommand -> SetGuidance
204 (
"If a macro file is specified, it is executed for each event.");
205 fpCommand -> SetGuidance(
206 "If a macro file is not specified, each event is drawn to the current"
207 "\nviewer. After each event, the session is paused. The user may issue"
208 "\nany allowed command. Then enter \"cont[inue]\" to continue to the next"
210 "\nUseful commands might be:"
211 "\n \"/vis/viewer/...\" to change the view (zoom, set/viewpoint,...)."
212 "\n \"/vis/oglx/printEPS\" to get hard copy."
213 "\n \"/vis/open\" to get alternative viewer."
214 "\n \"/vis/abortReviewKeptEvents\", then \"cont[inue]\", to abort.");
215 fpCommand -> SetParameterName(
"macro-file-name", omitable=
true);
216 fpCommand -> SetDefaultValue(
"");
231 static bool reviewing =
false;
234 "\"/vis/reviewKeptEvents\" not allowed within an already started review."
235 "\n No action taken."
245 const std::vector<const G4Event*>* events = run? run->
GetEventVector(): 0;
246 size_t nKeptEvents = events? events->size(): 0;
251 "ERROR: G4VisCommandReviewKeptEvents::SetNewValue: No kept events,"
252 "\n or kept events not accessible."
262 "ERROR: No current viewer - \"/vis/viewer/list\" to see possibilities."
271 G4cout <<
"ERROR: No current scene. Please create one." <<
G4endl;
287 if (macroFileName.empty()) {
291 for (
size_t i = 0; i < nKeptEvents; ++i) {
292 const G4Event*
event = (*events)[i];
294 G4cout <<
"Drawing event : " <<
event->GetEventID() <<
295 ". At EndOfEvent, enter any command, then \"cont[inue]\"..."
297 static G4bool first =
true;
301 " Useful commands might be:"
302 "\n \"/vis/viewer/...\" to change the view (zoom, set/viewpoint,...)."
303 "\n \"/vis/oglx/printEPS\" to get hard copy."
304 "\n \"/vis/open\" to get alternative viewer."
305 "\n \"/vis/abortReviewKeptEvents\", then \"cont[inue]\", to abort."
336 for (
size_t i = 0; i < nKeptEvents; ++i) {
337 const G4Event*
event = (*events)[i];
339 G4cout <<
"Drawing event : " <<
event->GetEventID()
340 <<
" with macro file \"" << macroFileName <<
G4endl;
343 UImanager->
ApplyCommand(
"/control/execute " + macroFileName);
362 fpCommand -> SetParameterName(
"verbosity", omitable=
true);
363 fpCommand -> SetDefaultValue(
"warnings");
380 G4cout <<
"Visualization verbosity changed to "