#include <G4VisCommandsSceneAdd.hh>
Definition at line 131 of file G4VisCommandsSceneAdd.hh.
G4VisCommandSceneAddEventID::G4VisCommandSceneAddEventID |
( |
| ) |
|
Definition at line 534 of file G4VisCommandsSceneAdd.cc.
536 fpCommand =
new G4UIcommand (
"/vis/scene/add/eventID",
this);
537 fpCommand -> SetGuidance (
"Adds eventID to current scene.");
538 fpCommand -> SetGuidance
539 (
"Run and event numbers are drawn at end of event or run when"
540 "\n the scene in which they are added is current.");
542 parameter =
new G4UIparameter (
"size",
'i', omitable =
true);
543 parameter -> SetGuidance (
"Screen size of text in pixels.");
544 parameter -> SetDefaultValue (18);
545 fpCommand -> SetParameter (parameter);
546 parameter =
new G4UIparameter (
"x-position",
'd', omitable =
true);
547 parameter -> SetGuidance (
"x screen position in range -1 < x < 1.");
548 parameter -> SetDefaultValue (-0.95);
549 fpCommand -> SetParameter (parameter);
550 parameter =
new G4UIparameter (
"y-position",
'd', omitable =
true);
551 parameter -> SetGuidance (
"y screen position in range -1 < y < 1.");
552 parameter -> SetDefaultValue (0.9);
553 fpCommand -> SetParameter (parameter);
554 parameter =
new G4UIparameter (
"layout",
's', omitable =
true);
555 parameter -> SetGuidance (
"Layout, i.e., adjustment: left|centre|right.");
556 parameter -> SetDefaultValue (
"left");
557 fpCommand -> SetParameter (parameter);
G4VisCommandSceneAddEventID::~G4VisCommandSceneAddEventID |
( |
| ) |
|
|
virtual |
Reimplemented from G4UImessenger.
Definition at line 568 of file G4VisCommandsSceneAdd.cc.
576 G4cerr <<
"ERROR: No current scene. Please create one." <<
G4endl;
584 std::istringstream is(newValue);
585 is >> size >> x >> y >> layoutString;
592 EventID* eventID =
new EventID(
fpVisManager, size, x, y, layout);
598 const G4String& currentSceneName = pScene -> GetName ();
599 G4bool successful = pScene -> AddEndOfEventModel (model, warn);
602 G4cout <<
"EventID has been added to scene \""
603 << currentSceneName <<
"\"."
void SetGlobalTag(const G4String &)
void UpdateVisManagerScene(const G4String &sceneName="")
static void G4VisCommandsSceneAddUnsuccessful(G4VisManager::Verbosity verbosity)
G4GLOB_DLL std::ostream G4cout
void SetType(const G4String &)
static Verbosity GetVerbosity()
const XML_Char XML_Content * model
void SetGlobalDescription(const G4String &)
G4Scene * GetCurrentScene() const
G4GLOB_DLL std::ostream G4cerr
static G4VisManager * fpVisManager
The documentation for this class was generated from the following files: