|
g4display
|
Data Structures | |
| struct | G4Camera |
Camera angle configuration derived from the g4camera option node. More... | |
| struct | G4Dawn |
DAWN view configuration derived from the dawn option node. More... | |
| struct | G4SceneText |
| One text annotation to be inserted into the Geant4 scene. More... | |
| struct | G4View |
Viewer configuration derived from the g4view option node. More... | |
Functions | |
| G4View | getG4View (const std::shared_ptr< GOptions > &gopts) |
Read the g4view option node and return a projected G4View struct. | |
| G4Camera | getG4Camera (const std::shared_ptr< GOptions > &gopts) |
Read the g4camera option node and return a projected G4Camera struct. | |
| G4Dawn | getG4Dawn (const std::shared_ptr< GOptions > &gopts) |
Read the dawn option node and return a projected G4Dawn struct. | |
| GOptions | defineOptions () |
| Define the full set of g4display options. | |
| vector< G4SceneText > | getSceneTexts (const std::shared_ptr< GOptions > &gopts) |
Extract scene text entries from the g4text option node. | |
| GOptions | addSceneTextsOptions () |
Define the g4text structured option schema. | |
| GOptions g4display::addSceneTextsOptions | ( | ) |
This helper returns a GOptions object that defines the g4text option. The option supports multiple text items, each item providing:
text (required)color (default "black")x, y (default 0)z (default sentinel GNOT_SPECIFIED_SCENE_TEXT_Z)size (default 24.0)g4text option definition. | GOptions g4display::defineOptions | ( | ) |
This function builds a GOptions object for the module, including:
g4view : viewer driver/window settings and precision.g4camera : initial camera angles.dawn / useDawn : DAWN view configuration and enable switch.g4text : optional scene text entries (added via g4display::addSceneTextsOptions).Definition at line 53 of file g4display_options.cc.
| gopts | Shared options object to query. |
g4camera node. Definition at line 25 of file g4display_options.cc.
The implementation normalizes "null" values to goptions::NODFLT.
| gopts | Shared options object to query. |
dawn node. Definition at line 36 of file g4display_options.cc.
| gopts | Shared options object to query. |
g4view node. Definition at line 12 of file g4display_options.cc.
| std::vector< G4SceneText > g4display::getSceneTexts | ( | const std::shared_ptr< GOptions > & | gopts | ) |
The function reads the option node named "g4text" and projects each element into a G4SceneText. Missing properties are filled with defaults defined by the option schema.
| gopts | Shared options object used to access the g4text option node. |