#include <G4VisCommandsSceneAdd.hh>
Definition at line 355 of file G4VisCommandsSceneAdd.hh.
◆ G4VisCommandSceneAddText() [1/2]
G4VisCommandSceneAddText::G4VisCommandSceneAddText |
( |
| ) |
|
Definition at line 2242 of file G4VisCommandsSceneAdd.cc.
2245 fpCommand -> SetGuidance (
"Adds text to current scene.");
2247 (
"Use \"/vis/set/textColour\" to set colour.");
2249 (
"Use \"/vis/set/textLayout\" to set layout:");
2260 parameter =
new G4UIparameter (
"unit",
's', omitable =
true);
2263 parameter =
new G4UIparameter (
"font_size",
'd', omitable =
true);
2267 parameter =
new G4UIparameter (
"x_offset",
'd', omitable =
true);
2271 parameter =
new G4UIparameter (
"y_offset",
'd', omitable =
true);
2275 parameter =
new G4UIparameter (
"text",
's', omitable =
true);
2276 parameter->
SetGuidance (
"The rest of the line is text.");
void SetParameter(G4UIparameter *const newParameter)
void SetDefaultValue(const char *theDefaultValue)
void SetGuidance(const char *theGuidance)
◆ ~G4VisCommandSceneAddText()
G4VisCommandSceneAddText::~G4VisCommandSceneAddText |
( |
| ) |
|
|
virtual |
◆ G4VisCommandSceneAddText() [2/2]
◆ GetCurrentValue()
◆ operator=()
◆ SetNewValue()
Reimplemented from G4UImessenger.
Definition at line 2289 of file G4VisCommandsSceneAdd.cc.
2297 G4cerr <<
"ERROR: No current scene. Please create one." <<
G4endl;
2313 x *= unit; y *= unit; z *= unit;
2317 g4text.SetVisAttributes(visAtts);
2319 g4text.SetScreenSize(font_size);
2320 g4text.SetOffset(x_offset,y_offset);
2322 const G4String& currentSceneName = pScene -> GetName ();
2323 G4bool successful = pScene -> AddRunDurationModel (model, warn);
2326 G4cout <<
"Text \"" << text
2327 <<
"\" has been added to scene \"" << currentSceneName <<
"\"."
G4Scene * GetCurrentScene() const
void UpdateVisManagerScene(const G4String &sceneName="")
static G4Text::Layout fCurrentTextLayout
HepGeom::Point3D< G4double > G4Point3D
static void G4VisCommandsSceneAddUnsuccessful(G4VisManager::Verbosity verbosity)
G4GLOB_DLL std::ostream G4cout
G4double StoD(G4String s)
static G4double ValueOf(const char *unitName)
static G4Colour fCurrentTextColour
static Verbosity GetVerbosity()
G4GLOB_DLL std::ostream G4cerr
static G4VisManager * fpVisManager
◆ fpCommand
The documentation for this class was generated from the following files: