28 g4view.
driver = gopts->getOptionMapInNode(
"g4view",
"driver").as<
string>();;
29 g4view.
dimension = gopts->getOptionMapInNode(
"g4view",
"dimension").as<
string>();
30 g4view.
position = gopts->getOptionMapInNode(
"g4view",
"position").as<
string>();
31 g4view.
segsPerCircle = gopts->getOptionMapInNode(
"g4view",
"segsPerCircle").as<
int>();
39 gcamera.
phi = gopts->getOptionMapInNode(
"g4camera",
"phi").as<
string>();
40 gcamera.
theta = gopts->getOptionMapInNode(
"g4camera",
"theta").as<
string>();
49 auto phi = gopts->getOptionMapInNode(
"dawn",
"phi").as<
string>();
50 auto theta = gopts->getOptionMapInNode(
"dawn",
"theta").as<
string>();
52 if (phi ==
"null") phi = goptions::NODFLT;
53 if (theta ==
"null") theta = goptions::NODFLT;
72 vector<GVariable> g4view = {
80 help =
"Defines the geant4 viewer properties: \n ";
81 help +=
" - screen dimensions \n ";
82 help +=
" - screen position \n ";
83 help +=
" - resolution in terms of segments per circle \n ";
85 " Example: -g4view={viewer: \"OGL\", dimension: \"1100x800\", position: \"+200+100\", segsPerCircle: 100} \n \n";
86 help +=
"-g4view=\"[{dimensions: 1200x1000}]\"\n";
87 goptions.defineOption(
"g4view",
"Defines the geant4 viewer properties", g4view, help);
91 vector<GVariable> g4camera = {
92 {
"phi",
"0*deg",
"geant4 camera phi"},
93 {
"theta",
"0*deg",
"geant4 camera theta"}
96 help =
"Defines the geant4 camera view point \n \n ";
97 help +=
"Example: -g4camera=\"[{phi: 20*deg, theta: 15*deg}]\" \n ";
98 goptions.defineOption(
"g4camera",
"Defines the geant4 camera view point", g4camera, help);
102 help =
"Defines the dawn camera view point and take a dawn screenshot \n \n ";
103 help +=
"Example: -dawn=\"[{phi: 20*deg, theta: 15*deg}]\" \n ";
104 vector<GVariable> dawn = {
105 {
"phi", 30,
"dawn phi"},
106 {
"theta", 30,
"dawn theta"}
108 goptions.defineOption(
"dawn",
"Defines the dawn view point", dawn, help);
109 goptions.defineSwitch(
"useDawn",
"Take a dawn screenshot");
#define GDEFAULTVIEWERDRIVER
#define GDEFAULTVSEGPERCIRCLE
#define GDEFAULTVIEWERPOS
#define GDEFAULTVIEWERSIZE
constexpr const char * G4DISPLAY_LOGGER
GOptions addSceneTextsOptions()
G4Dawn getG4Dawn(GOptions *gopts)
G4Camera getG4Camera(GOptions *gopts)
G4View getG4View(GOptions *gopts)