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;
290 if (macroFileName.empty()) {
294 for (
size_t i = 0; i < nKeptEvents; ++i) {
295 const G4Event*
event = (*events)[i];
297 G4cout <<
"Drawing event : " <<
event->GetEventID() <<
298 ". At EndOfEvent, enter any command, then \"cont[inue]\"..."
304 " Useful commands might be:"
305 "\n \"/vis/scene/add/trajectories\" if not already added."
306 "\n \"/vis/viewer/...\" to change the view (zoom, set/viewpoint,...)."
307 "\n \"/vis/oglx/printEPS\" to get hard copy."
308 "\n \"/vis/open\" to get alternative viewer."
309 "\n \"/vis/abortReviewKeptEvents\", then \"cont[inue]\", to abort."
340 for (
size_t i = 0; i < nKeptEvents; ++i) {
341 const G4Event*
event = (*events)[i];
343 G4cout <<
"Drawing event : " <<
event->GetEventID()
344 <<
" with macro file \"" << macroFileName <<
G4endl;
347 UImanager->
ApplyCommand(
"/control/execute " + macroFileName);
368 fpCommand -> SetParameterName(
"verbosity", omitable=
true);
369 fpCommand -> SetDefaultValue(
"warnings");
386 G4cout <<
"Visualization verbosity changed to "
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual ~G4VisCommandEnable()
G4UIsession * GetSession() const
const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual void PauseSessionStart(const G4String &Prompt)
G4String GetCurrentValue(G4UIcommand *command)
static G4VVisManager * GetConcreteInstance()
virtual ~G4VisCommandList()
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetVerboseLevel(G4int)
virtual ~G4VisCommandVerbose()
void SetRequestedEvent(const G4Event *)
const std::vector< const G4Event * > * GetEventVector() const
virtual ~G4VisCommandInitialize()
G4bool GetRefreshAtEndOfEvent() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
G4int GetVerboseLevel() const
static std::vector< G4String > VerbosityGuidanceStrings
void SetNewValue(G4UIcommand *command, G4String newValue)
static Verbosity GetVerbosityValue(const G4String &)
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
const G4Run * GetCurrentRun() const
void SetVerboseLevel(G4int val)
G4String GetCurrentValue(G4UIcommand *command)
static G4UImanager * GetUIpointer()
void PrintAvailableGraphicsSystems() const
G4GLOB_DLL std::ostream G4cout
static G4bool ConvertToBool(const char *st)
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandAbortReviewKeptEvents()
virtual ~G4VisCommandAbortReviewKeptEvents()
virtual ~G4VisCommandReviewKeptEvents()
void SetNewValue(G4UIcommand *command, G4String newValue)
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
static G4RunManager * GetRunManager()
static G4String VerbosityString(Verbosity)
const std::map< G4String, G4AttDef > * GetAttDefs() const
static Verbosity GetVerbosity()
G4VViewer * GetCurrentViewer() const
G4bool GetAbortReviewKeptEvents() const
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandReviewKeptEvents()
G4int ApplyCommand(const char *aCommand)
G4Scene * GetCurrentScene() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
void SetRefreshAtEndOfEvent(G4bool)
void SetAbortReviewKeptEvents(G4bool)
static G4VisManager * fpVisManager
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const