2499 G4cerr <<
"ERROR: No current scene. Please create one." <<
G4endl;
2506 if (newValue.find(
"smooth") != std::string::npos) smooth =
true;
2507 if (newValue.find(
"rich") != std::string::npos) rich =
true;
2508 if (newValue.size() && !(rich || smooth)) {
2510 G4cerr <<
"ERROR: Unrecognised parameter \"" << newValue <<
"\""
2511 "\n No action taken."
2519 G4int newVerbose = 2;
2522 if (smooth && rich) {
2523 UImanager->
ApplyCommand(
"/tracking/storeTrajectory 4");
2524 defaultTrajectoryType =
"G4RichTrajectory configured for smooth steps";
2525 }
else if (smooth) {
2526 UImanager->
ApplyCommand(
"/tracking/storeTrajectory 2");
2527 defaultTrajectoryType =
"G4SmoothTrajectory";
2529 UImanager->
ApplyCommand(
"/tracking/storeTrajectory 3");
2530 defaultTrajectoryType =
"G4RichTrajectory";
2532 UImanager->
ApplyCommand(
"/tracking/storeTrajectory 1");
2533 defaultTrajectoryType =
"G4Trajectory";
2539 "Attributes available for modeling and filtering with"
2540 "\n \"/vis/modeling/trajectories/create/drawByAttribute\" and"
2541 "\n \"/vis/filtering/trajectories/create/attributeFilter\" commands:"
2547 }
else if (smooth) {
2557 const G4String& currentSceneName = pScene -> GetName ();
2558 pScene -> AddEndOfEventModel (model, warn);
2561 G4cout <<
"Default trajectory type " << defaultTrajectoryType
2562 <<
"\n will be used to store trajectories for scene \""
2563 << currentSceneName <<
"\"."
2569 "WARNING: Trajectory storing has been requested. This action may be"
2570 "\n reversed with \"/tracking/storeTrajectory 0\"."
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
void UpdateVisManagerScene(const G4String &sceneName="")
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
G4int GetVerboseLevel() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
void SetVerboseLevel(G4int val)
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
const std::map< G4String, G4AttDef > * GetAttDefs() const
static Verbosity GetVerbosity()
const XML_Char XML_Content * model
G4int ApplyCommand(const char *aCommand)
G4Scene * GetCurrentScene() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
G4GLOB_DLL std::ostream G4cerr
static G4VisManager * fpVisManager
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const