#include <G4VisCommandsSceneAdd.hh>
Definition at line 131 of file G4VisCommandsSceneAdd.hh.
G4VisCommandSceneAddEventID::G4VisCommandSceneAddEventID |
( |
| ) |
|
Definition at line 509 of file G4VisCommandsSceneAdd.cc.
511 fpCommand =
new G4UIcommand (
"/vis/scene/add/eventID",
this);
512 fpCommand -> SetGuidance (
"Adds eventID to current scene.");
513 fpCommand -> SetGuidance
514 (
"Run and event numbers are drawn at end of event or run when"
515 "\n the scene in which they are added is current.");
517 parameter =
new G4UIparameter (
"size",
'i', omitable =
true);
518 parameter -> SetGuidance (
"Screen size of text in pixels.");
519 parameter -> SetDefaultValue (18);
520 fpCommand -> SetParameter (parameter);
521 parameter =
new G4UIparameter (
"x-position",
'd', omitable =
true);
522 parameter -> SetGuidance (
"x screen position in range -1 < x < 1.");
523 parameter -> SetDefaultValue (-0.95);
524 fpCommand -> SetParameter (parameter);
525 parameter =
new G4UIparameter (
"y-position",
'd', omitable =
true);
526 parameter -> SetGuidance (
"y screen position in range -1 < y < 1.");
527 parameter -> SetDefaultValue (0.9);
528 fpCommand -> SetParameter (parameter);
529 parameter =
new G4UIparameter (
"layout",
's', omitable =
true);
530 parameter -> SetGuidance (
"Layout, i.e., adjustment: left|centre|right.");
531 parameter -> SetDefaultValue (
"left");
532 fpCommand -> SetParameter (parameter);
G4VisCommandSceneAddEventID::~G4VisCommandSceneAddEventID |
( |
| ) |
|
|
virtual |
Reimplemented from G4UImessenger.
Definition at line 543 of file G4VisCommandsSceneAdd.cc.
References G4Text::centre, G4VisManager::confirmations, G4VisManager::errors, G4VVisCommand::fpVisManager, G4cout, G4endl, G4VisManager::GetCurrentScene(), G4VisManager::GetVerbosity(), G4Text::left, G4Text::right, G4VModel::SetGlobalDescription(), G4VModel::SetGlobalTag(), G4VModel::SetType(), G4VVisCommand::UpdateVisManagerScene(), G4VisManager::warnings, and test::x.
551 G4cout <<
"ERROR: No current scene. Please create one." <<
G4endl;
559 std::istringstream is(newValue);
560 is >> size >> x >> y >> layoutString;
567 EventID* eventID =
new EventID(
fpVisManager, size, x, y, layout);
573 const G4String& currentSceneName = pScene -> GetName ();
574 G4bool successful = pScene -> AddEndOfEventModel (model, warn);
577 G4cout <<
"EventID has been added to scene \""
578 << currentSceneName <<
"\"."
582 else G4VisCommandsSceneAddUnsuccessful(verbosity);
void SetGlobalTag(const G4String &)
void UpdateVisManagerScene(const G4String &sceneName="")
G4GLOB_DLL std::ostream G4cout
void SetType(const G4String &)
const XML_Char XML_Content * model
static Verbosity GetVerbosity()
void SetGlobalDescription(const G4String &)
G4Scene * GetCurrentScene() const
static G4VisManager * fpVisManager
The documentation for this class was generated from the following files: