g4display
Loading...
Searching...
No Matches
g4display_options.h
Go to the documentation of this file.
1#pragma once
2
19#include "goptions.h"
20
21constexpr const char* G4DISPLAY_LOGGER = "g4display";
22constexpr const char* G4SCENE_LOGGER = "g4scene";
23
24namespace g4display {
35struct G4View
36{
37 std::string driver;
38 std::string dimension;
39 std::string position;
41};
42
49G4View getG4View(const std::shared_ptr<GOptions>& gopts);
50
59{
60 std::string phi;
61 std::string theta;
62};
63
70G4Camera getG4Camera(const std::shared_ptr<GOptions>& gopts);
71
79struct G4Light
80{
81 std::string phi;
82 std::string theta;
83};
84
91G4Light getG4Light(const std::shared_ptr<GOptions>& gopts);
92
99struct G4Dawn
100{
101 std::string phi;
102 std::string theta;
103};
104
113G4Dawn getG4Dawn(const std::shared_ptr<GOptions>& gopts);
114
128} // 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.
Camera angle configuration derived from the g4camera option node.
DAWN view configuration derived from the dawn option node.
Light angle configuration derived from the g4light option node.
Viewer configuration derived from the g4view option node.