g4display
Loading...
Searching...
No Matches
g4display_options.h
Go to the documentation of this file.
1#pragma once
2
19#include <memory>
20#include <string>
21
22#include <gemc/goptions/goptions.h>
23
24constexpr const char* G4DISPLAY_LOGGER = "g4display";
25constexpr const char* G4SCENE_LOGGER = "g4scene";
26
27namespace g4display {
40struct G4View
41{
42 std::string driver;
43 std::string dimension;
44 std::string position;
46 std::string background;
48};
49
56G4View getG4View(const std::shared_ptr<GOptions>& gopts);
57
66{
67 std::string phi;
68 std::string theta;
69};
70
77G4Camera getG4Camera(const std::shared_ptr<GOptions>& gopts);
78
86struct G4Light
87{
88 std::string phi;
89 std::string theta;
90};
91
98G4Light getG4Light(const std::shared_ptr<GOptions>& gopts);
99
106struct G4Dawn
107{
108 std::string phi;
109 std::string theta;
110};
111
120G4Dawn getG4Dawn(const std::shared_ptr<GOptions>& gopts);
121
127{
128 bool scale;
130 std::string scaleUnit;
131 std::string scaleDirection;
132 std::string scaleColor;
133 bool axes;
136 bool date;
138 bool logo2D;
139 bool logo;
140 bool frame;
141 std::string frameColor;
143};
144
151G4Decorations getG4Decorations(const std::shared_ptr<GOptions>& gopts);
152
166} // namespace g4display
constexpr const char * G4SCENE_LOGGER
constexpr const char * G4DISPLAY_LOGGER
G4Light getG4Light(const std::shared_ptr< GOptions > &gopts)
Read the g4light option node and return a projected G4Light struct.
G4Dawn getG4Dawn(const std::shared_ptr< GOptions > &gopts)
Read the dawn option node and return a projected G4Dawn struct.
G4View getG4View(const std::shared_ptr< GOptions > &gopts)
Read the g4view option node and return a projected G4View struct.
GOptions defineOptions()
Define the full set of g4display options.
G4Camera getG4Camera(const std::shared_ptr< GOptions > &gopts)
Read the g4camera option node and return a projected G4Camera struct.
G4Decorations getG4Decorations(const std::shared_ptr< GOptions > &gopts)
Read the g4decoration option node and return scene decoration settings.
Camera angle configuration derived from the g4camera option node.
DAWN view configuration derived from the dawn option node.
Optional scene decorations derived from the g4decoration option node.
Light angle configuration derived from the g4light option node.
Viewer configuration derived from the g4view option node.