g4display
Loading...
Searching...
No Matches
g4Text.h
Go to the documentation of this file.
1#pragma once
2
15
16// gemc
17#include "goptions.h"
18
19namespace g4display {
31{
33 std::string text;
34
36 std::string color;
37
39 double x;
40
42 double y;
43
46
48 int size;
49};
50
60std::vector<G4SceneText> getSceneTexts(const std::shared_ptr<GOptions>& gopts);
61
76} // namespace g4display
Conventions and constants used by the g4display module.
#define GNOT_SPECIFIED_SCENE_TEXT_Z
GOptions addSceneTextsOptions()
Define the g4text structured option schema.
Definition g4Text.cc:36
vector< G4SceneText > getSceneTexts(const std::shared_ptr< GOptions > &gopts)
Extract scene text entries from the g4text option node.
Definition g4Text.cc:13
One text annotation to be inserted into the Geant4 scene.
Definition g4Text.h:31
std::string color
Text color name understood by Geant4 (e.g. "black", "red").
Definition g4Text.h:36
double z
Z position; if left at default sentinel, Z is treated as “not specified”.
Definition g4Text.h:45
std::string text
Text string to be displayed.
Definition g4Text.h:33
int size
Text size parameter passed to Geant4 visualization command.
Definition g4Text.h:48
double x
X position.
Definition g4Text.h:39
double y
Y position.
Definition g4Text.h:42