g4display
Loading...
Searching...
No Matches
g4Text.h
Go to the documentation of this file.
1#pragma once
2
15
16// gemc
17#include <gemc/goptions/goptions.h>
18
19namespace g4display {
31{
33 std::string text;
34
36 std::string color;
37
39 std::string kind;
40
42 std::string layout;
43
45 double x;
46
48 double y;
49
52
54 std::string unit;
55
57 int size;
58
60 double dx;
61
63 double dy;
64};
65
75std::vector<G4SceneText> getSceneTexts(const std::shared_ptr<GOptions>& gopts);
76
95} // 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:43
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 layout
Optional text layout such as "right"; empty keeps Geant4 default layout.
Definition g4Text.h:42
std::string color
Text color name understood by Geant4 (e.g. "black", "red").
Definition g4Text.h:36
std::string kind
Text kind: "2D" for text2D or "3D" for text attached in scene coordinates.
Definition g4Text.h:39
double z
Z position used by 3D text.
Definition g4Text.h:51
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:57
std::string unit
Unit used by 3D text positions.
Definition g4Text.h:54
double x
X position.
Definition g4Text.h:45
double dy
3D text Y offset.
Definition g4Text.h:63
double y
Y position.
Definition g4Text.h:48
double dx
3D text X offset.
Definition g4Text.h:60