2487 G4cerr <<
"ERROR: No current scene. Please create one." <<
G4endl;
2494 if (newValue.find(
"smooth") != std::string::npos) smooth =
true;
2495 if (newValue.find(
"rich") != std::string::npos) rich =
true;
2496 if (newValue.size() && !(rich || smooth)) {
2498 G4cerr <<
"ERROR: Unrecognised parameter \"" << newValue <<
"\"" 2499 "\n No action taken." 2507 G4int newVerbose = 2;
2510 if (smooth && rich) {
2511 UImanager->
ApplyCommand(
"/tracking/storeTrajectory 4");
2512 defaultTrajectoryType =
"G4RichTrajectory configured for smooth steps";
2513 }
else if (smooth) {
2514 UImanager->
ApplyCommand(
"/tracking/storeTrajectory 2");
2515 defaultTrajectoryType =
"G4SmoothTrajectory";
2517 UImanager->
ApplyCommand(
"/tracking/storeTrajectory 3");
2518 defaultTrajectoryType =
"G4RichTrajectory";
2520 UImanager->
ApplyCommand(
"/tracking/storeTrajectory 1");
2521 defaultTrajectoryType =
"G4Trajectory";
2527 "Attributes available for modeling and filtering with" 2528 "\n \"/vis/modeling/trajectories/create/drawByAttribute\" and" 2529 "\n \"/vis/filtering/trajectories/create/attributeFilter\" commands:" 2535 }
else if (smooth) {
2545 const G4String& currentSceneName = pScene -> GetName ();
2546 pScene -> AddEndOfEventModel (model, warn);
2549 G4cout <<
"Default trajectory type " << defaultTrajectoryType
2550 <<
"\n will be used to store trajectories for scene \"" 2551 << currentSceneName <<
"\"." 2557 "WARNING: Trajectory storing has been requested. This action may be" 2558 "\n reversed with \"/tracking/storeTrajectory 0\"."
G4int GetVerboseLevel() const
G4Scene * GetCurrentScene() const
void UpdateVisManagerScene(const G4String &sceneName="")
void SetVerboseLevel(G4int val)
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
const std::map< G4String, G4AttDef > * GetAttDefs() const
static Verbosity GetVerbosity()
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
G4int ApplyCommand(const char *aCommand)
G4GLOB_DLL std::ostream G4cerr
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
static G4VisManager * fpVisManager