#include <G4VisCommandsSceneAdd.hh>
Definition at line 367 of file G4VisCommandsSceneAdd.hh.
G4VisCommandSceneAddText2D::G4VisCommandSceneAddText2D |
( |
| ) |
|
Definition at line 2350 of file G4VisCommandsSceneAdd.cc.
2352 fpCommand =
new G4UIcommand (
"/vis/scene/add/text2D",
this);
2353 fpCommand -> SetGuidance (
"Adds 2D text to current scene.");
2354 fpCommand -> SetGuidance
2355 (
"Use \"/vis/set/textColour\" to set colour.");
2356 fpCommand -> SetGuidance
2357 (
"Use \"/vis/set/textLayout\" to set layout:");
2365 parameter =
new G4UIparameter (
"font_size",
'd', omitable =
true);
2369 parameter =
new G4UIparameter (
"x_offset",
'd', omitable =
true);
2373 parameter =
new G4UIparameter (
"y_offset",
'd', omitable =
true);
2377 parameter =
new G4UIparameter (
"text",
's', omitable =
true);
2378 parameter->
SetGuidance (
"The rest of the line is text.");
void SetParameter(G4UIparameter *const newParameter)
void SetDefaultValue(const char *theDefaultValue)
void SetGuidance(const char *theGuidance)
G4VisCommandSceneAddText2D::~G4VisCommandSceneAddText2D |
( |
| ) |
|
|
virtual |
Reimplemented from G4UImessenger.
Definition at line 2391 of file G4VisCommandsSceneAdd.cc.
2399 G4cerr <<
"ERROR: No current scene. Please create one." <<
G4endl;
2414 g4text.SetVisAttributes(visAtts);
2416 g4text.SetScreenSize(font_size);
2417 g4text.SetOffset(x_offset,y_offset);
2418 G4Text2D* g4text2D =
new G4Text2D(g4text);
2424 const G4String& currentSceneName = pScene -> GetName ();
2425 G4bool successful = pScene -> AddRunDurationModel (model, warn);
2428 G4cout <<
"2D text \"" << text
2429 <<
"\" has been added to scene \"" << currentSceneName <<
"\"."
void SetGlobalTag(const G4String &)
void UpdateVisManagerScene(const G4String &sceneName="")
static G4Text::Layout fCurrentTextLayout
HepGeom::Point3D< G4double > G4Point3D
static void G4VisCommandsSceneAddUnsuccessful(G4VisManager::Verbosity verbosity)
G4GLOB_DLL std::ostream G4cout
void SetType(const G4String &)
G4double StoD(G4String s)
static G4Colour fCurrentTextColour
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: