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 "
G4DLLIMPORT std::ostream G4cout
const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
static G4RunManager * GetRunManager()
const G4Run * GetCurrentRun() const
const std::vector< const G4Event * > * GetEventVector() const
G4bool GetRefreshAtEndOfEvent() const
void SetRefreshAtEndOfEvent(G4bool)
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
static G4bool ConvertToBool(const char *st)
G4int ApplyCommand(const char *aCommand)
G4int GetVerboseLevel() const
G4UIsession * GetSession() const
static G4UImanager * GetUIpointer()
void SetVerboseLevel(G4int val)
virtual void PauseSessionStart(const G4String &Prompt)
static G4VisManager * fpVisManager
virtual ~G4VisCommandAbortReviewKeptEvents()
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
G4VisCommandAbortReviewKeptEvents()
virtual ~G4VisCommandEnable()
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
virtual ~G4VisCommandInitialize()
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
virtual ~G4VisCommandList()
void SetNewValue(G4UIcommand *command, G4String newValue)
virtual ~G4VisCommandReviewKeptEvents()
G4String GetCurrentValue(G4UIcommand *command)
G4VisCommandReviewKeptEvents()
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
virtual ~G4VisCommandVerbose()
G4Scene * GetCurrentScene() const
static std::vector< G4String > VerbosityGuidanceStrings
static G4String VerbosityString(Verbosity)
G4bool GetAbortReviewKeptEvents() const
void SetAbortReviewKeptEvents(G4bool)
G4VViewer * GetCurrentViewer() const
void SetRequestedEvent(const G4Event *)
static Verbosity GetVerbosity()
void SetVerboseLevel(G4int)
static Verbosity GetVerbosityValue(const G4String &)
void PrintAvailableGraphicsSystems() const