39 #ifdef G4MULTITHREADED 59 fpCommand -> SetGuidance(
"Abort review of kept events.");
60 fpCommand -> SetParameterName(
"abort", omitable=
true);
75 G4cout <<
"Type \"continue\" to complete the abort." <<
G4endl;
84 fpCommand -> SetGuidance(
"Enables/disables visualization system.");
85 fpCommand -> SetParameterName(
"enabled", omitable=
true);
89 fpCommand1 -> SetGuidance(
"Disables visualization system.");
116 fpCommand -> SetGuidance(
"Initialise visualisation manager.");
135 fpCommand -> SetGuidance(
"Lists visualization parameters.");
136 fpCommand -> SetParameterName(
"verbosity", omitable=
true);
137 fpCommand -> SetDefaultValue(
"warnings");
152 G4String& verbosityString = newValue;
165 UImanager->
ApplyCommand(
"/vis/scene/list ! " + newValue);
166 UImanager->
ApplyCommand(
"/vis/viewer/list ! " + newValue);
169 "\nAttributes available for modeling and filtering with" 170 "\n \"/vis/modeling/trajectories/create/drawByAttribute\" and" 171 "\n \"/vis/filtering/trajectories/create/attributeFilter\" commands" 187 "\nGeometry attributes available for touchables by picking:\n";
193 "\nTo get more information, \"/vis/list all\" or use individual commands" 194 "\n such as (use \"ls\" or \"help\"):" 195 "\n /vis/scene/list all all" 196 "\n /vis/viewer/list all all" 197 "\n /vis/modeling/trajectories/list" 198 "\n /vis/filtering/trajectories/list" 209 fpCommand -> SetGuidance(
"Review kept events.");
211 (
"If a macro file is specified, it is executed for each event.");
213 "If a macro file is not specified, each event is drawn to the current" 214 "\nviewer. After each event, the session is paused. The user may issue" 215 "\nany allowed command. Then enter \"cont[inue]\" to continue to the next" 217 "\nUseful commands might be:" 218 "\n \"/vis/viewer/...\" to change the view (zoom, set/viewpoint,...)." 219 "\n \"/vis/oglx/printEPS\" to get hard copy." 220 "\n \"/vis/open\" to get alternative viewer." 221 "\n \"/vis/abortReviewKeptEvents\", then \"cont[inue]\", to abort.");
222 fpCommand -> SetParameterName(
"macro-file-name", omitable=
true);
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]\"..." 311 static G4bool first =
true;
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);
379 fpCommand -> SetParameterName(
"verbosity", omitable=
true);
380 fpCommand -> SetDefaultValue(
"warnings");
397 G4cout <<
"Visualization verbosity changed to " virtual ~G4VisCommandEnable()
G4VViewer * GetCurrentViewer() const
virtual void PauseSessionStart(const G4String &Prompt)
G4UIcmdWithABool * fpCommand
void PrintAvailableUserVisActions(Verbosity) const
G4int GetVerboseLevel() const
G4String GetCurrentValue(G4UIcommand *command)
static G4VVisManager * GetConcreteInstance()
virtual ~G4VisCommandList()
G4Scene * GetCurrentScene() const
void SetNewValue(G4UIcommand *command, G4String newValue)
G4String GetCurrentValue(G4UIcommand *command)
void SetVerboseLevel(G4int)
virtual ~G4VisCommandVerbose()
const std::map< G4String, G4AttDef > * GetAttDefs() const
void SetRequestedEvent(const G4Event *)
virtual ~G4VisCommandInitialize()
G4bool GetRefreshAtEndOfEvent() const
static std::vector< G4String > VerbosityGuidanceStrings
void SetNewValue(G4UIcommand *command, G4String newValue)
static Verbosity GetVerbosityValue(const G4String &)
void SetVerboseLevel(G4int val)
G4String GetCurrentValue(G4UIcommand *command)
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
static G4UImanager * GetUIpointer()
void PrintAvailableGraphicsSystems(Verbosity) const
G4GLOB_DLL std::ostream G4cout
static G4bool ConvertToBool(const char *st)
G4String GetCurrentValue(G4UIcommand *command)
static G4MTRunManager * GetMasterRunManager()
const G4Run * GetCurrentRun() const
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandAbortReviewKeptEvents()
static G4UIterminal * session
G4bool IsMultithreadedApplication()
virtual ~G4VisCommandAbortReviewKeptEvents()
virtual ~G4VisCommandReviewKeptEvents()
void SetNewValue(G4UIcommand *command, G4String newValue)
void PrintAvailableColours(Verbosity) const
G4UIsession * GetSession() const
static G4RunManager * GetRunManager()
G4bool GetAbortReviewKeptEvents() const
static G4String VerbosityString(Verbosity)
const std::map< G4String, G4AttDef > * GetAttDefs() const
static Verbosity GetVerbosity()
void PrintAvailableModels(Verbosity) const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValue)
void SetNewValue(G4UIcommand *command, G4String newValue)
G4VisCommandReviewKeptEvents()
G4int ApplyCommand(const char *aCommand)
void SetRefreshAtEndOfEvent(G4bool)
G4GLOB_DLL std::ostream G4cerr
void SetAbortReviewKeptEvents(G4bool)
const std::vector< const G4Event * > * GetEventVector() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
static G4VisManager * fpVisManager