#include <G4VisCommandsSceneAdd.hh>
Definition at line 355 of file G4VisCommandsSceneAdd.hh.
G4VisCommandSceneAddText::G4VisCommandSceneAddText |
( |
| ) |
|
Definition at line 2254 of file G4VisCommandsSceneAdd.cc.
2256 fpCommand =
new G4UIcommand (
"/vis/scene/add/text",
this);
2257 fpCommand -> SetGuidance (
"Adds text to current scene.");
2258 fpCommand -> SetGuidance
2259 (
"Use \"/vis/set/textColour\" to set colour.");
2260 fpCommand -> SetGuidance
2261 (
"Use \"/vis/set/textLayout\" to set layout:");
2272 parameter =
new G4UIparameter (
"unit",
's', omitable =
true);
2275 parameter =
new G4UIparameter (
"font_size",
'd', omitable =
true);
2279 parameter =
new G4UIparameter (
"x_offset",
'd', omitable =
true);
2283 parameter =
new G4UIparameter (
"y_offset",
'd', omitable =
true);
2287 parameter =
new G4UIparameter (
"text",
's', omitable =
true);
2288 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 |
( |
| ) |
|
|
virtual |
Reimplemented from G4UImessenger.
Definition at line 2301 of file G4VisCommandsSceneAdd.cc.
2309 G4cerr <<
"ERROR: No current scene. Please create one." <<
G4endl;
2325 x *= unit; y *= unit; z *= unit;
2329 g4text.SetVisAttributes(visAtts);
2331 g4text.SetScreenSize(font_size);
2332 g4text.SetOffset(x_offset,y_offset);
2334 const G4String& currentSceneName = pScene -> GetName ();
2335 G4bool successful = pScene -> AddRunDurationModel (model, warn);
2338 G4cout <<
"Text \"" << text
2339 <<
"\" has been added to scene \"" << currentSceneName <<
"\"."
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()
const XML_Char XML_Content * model
G4Scene * GetCurrentScene() const
G4GLOB_DLL std::ostream G4cerr
static G4VisManager * fpVisManager
The documentation for this class was generated from the following files: