#include <G4VisCommandsSceneAdd.hh>
Definition at line 92 of file G4VisCommandsSceneAdd.hh.
G4VisCommandSceneAddDate::G4VisCommandSceneAddDate |
( |
| ) |
|
Definition at line 380 of file G4VisCommandsSceneAdd.cc.
382 fpCommand =
new G4UIcommand (
"/vis/scene/add/date",
this);
383 fpCommand -> SetGuidance (
"Adds date to current scene.");
384 fpCommand -> SetGuidance
385 (
"If \"date\"is omitted, the current date and time is drawn."
386 "\nOtherwise, the string, including the rest of the line, is drawn.");
388 parameter =
new G4UIparameter (
"size",
'i', omitable =
true);
389 parameter -> SetGuidance (
"Screen size of text in pixels.");
390 parameter -> SetDefaultValue (18);
391 fpCommand -> SetParameter (parameter);
392 parameter =
new G4UIparameter (
"x-position",
'd', omitable =
true);
393 parameter -> SetGuidance (
"x screen position in range -1 < x < 1.");
394 parameter -> SetDefaultValue (0.95);
395 fpCommand -> SetParameter (parameter);
396 parameter =
new G4UIparameter (
"y-position",
'd', omitable =
true);
397 parameter -> SetGuidance (
"y screen position in range -1 < y < 1.");
398 parameter -> SetDefaultValue (0.9);
399 fpCommand -> SetParameter (parameter);
400 parameter =
new G4UIparameter (
"layout",
's', omitable =
true);
401 parameter -> SetGuidance (
"Layout, i.e., adjustment: left|centre|right.");
402 parameter -> SetDefaultValue (
"right");
403 fpCommand -> SetParameter (parameter);
404 parameter =
new G4UIparameter (
"date",
's', omitable =
true);
405 parameter -> SetDefaultValue (
"-");
406 fpCommand -> SetParameter (parameter);
G4VisCommandSceneAddDate::~G4VisCommandSceneAddDate |
( |
| ) |
|
|
virtual |
Reimplemented from G4UImessenger.
Definition at line 417 of file G4VisCommandsSceneAdd.cc.
425 G4cerr <<
"ERROR: No current scene. Please create one." <<
G4endl;
433 std::istringstream is(newValue);
434 is >> size >> x >> y >> layoutString >> dateString;
436 const size_t NREMAINDER = 100;
437 char remainder[NREMAINDER];
439 is.getline(remainder, NREMAINDER);
440 dateString += remainder;
446 Date* date =
new Date(
fpVisManager, size, x, y, layout, dateString);
452 const G4String& currentSceneName = pScene -> GetName ();
453 G4bool successful = pScene -> AddRunDurationModel (model, warn);
456 G4cout <<
"Date has been added to scene \""
457 << 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: