|
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"). | |
| double | x |
| X position. | |
| double | y |
| Y position. | |
| double | z = GNOT_SPECIFIED_SCENE_TEXT_Z |
| Z position; if left at default sentinel, Z is treated as “not specified”. | |
| int | size |
| Text size parameter passed to Geant4 visualization command. | |
Each configured item is converted into Geant4 visualization commands by G4SceneProperties.
Interpretation rules:
z is set to GNOT_SPECIFIED_SCENE_TEXT_Z, the text is treated as normal scene text (3D command).z is explicitly provided, the text is treated as “2D text” (text2D command). | double g4display::G4SceneText::z = GNOT_SPECIFIED_SCENE_TEXT_Z |