g4display
g4Text.h
Go to the documentation of this file.
1 #pragma once
2 
3 // g4display
4 #include "g4displayConventions.h"
5 
6 // gemc
7 #include "goptions.h"
8 
9 
10 namespace g4display {
11 
12 // G4SceneText: Text does not move with the view but belongs to the scene
13 struct G4SceneText {
14  std::string text;
15  std::string color;
16  double x;
17  double y;
19  int size;
20 };
21 
22 // method to return a vector of G4SceneText from the options
23 std::vector<G4SceneText> getSceneTexts(GOptions* gopts);
24 
25 // returns the array of options definitions
26 GOptions addSceneTextsOptions();
27 
28 }
#define GNOT_SPECIFIED_SCENE_TEXT_Z
GOptions addSceneTextsOptions()
Definition: g4Text.cc:34
vector< G4SceneText > getSceneTexts(GOptions *gopts)
Definition: g4Text.cc:11
std::string color
Definition: g4Text.h:15
std::string text
Definition: g4Text.h:14