|
g4display
|
One text annotation to be inserted into the Geant4 scene. More...
#include <g4Text.h>
Data Fields | |
| std::string | text |
| Text string to be displayed. | |
| std::string | color |
Text color name understood by Geant4 (e.g. "black", "red"). | |
| std::string | kind |
Text kind: "2D" for text2D or "3D" for text attached in scene coordinates. | |
| std::string | layout |
Optional text layout such as "right"; empty keeps Geant4 default layout. | |
| double | x |
| X position. | |
| double | y |
| Y position. | |
| double | z = GNOT_SPECIFIED_SCENE_TEXT_Z |
| Z position used by 3D text. | |
| std::string | unit |
| Unit used by 3D text positions. | |
| int | size |
| Text size parameter passed to Geant4 visualization command. | |
| double | dx |
| 3D text X offset. | |
| double | dy |
| 3D text Y offset. | |
Each configured item is converted into Geant4 visualization commands by G4SceneProperties.
Interpretation rules:
kind = "2D" creates a /vis/scene/add/text2D command.kind = "3D" creates a /vis/scene/add/text command using x, y, z, unit, dx, and dy. | double g4display::G4SceneText::z = GNOT_SPECIFIED_SCENE_TEXT_Z |