Custom GEANT4 UI session that directs output to a Qt6 board widget.
More...
#include <gui_session.h>
|
| GUI_Session (const std::shared_ptr< GOptions > &gopt, GBoard *board) |
| Constructs a new GUI_Session object.
|
|
G4int | ReceiveG4cout (const G4String &coutString) override |
| Receives standard output from GEANT4.
|
|
G4int | ReceiveG4cerr (const G4String &cerrString) override |
| Receives error output from GEANT4.
|
|
An instance of GUI_Session is passed to the G4UImanager so that GEANT4 output is sent to the board widget rather than to the terminal or log files.
Definition at line 16 of file gui_session.h.
◆ GUI_Session()
GUI_Session::GUI_Session |
( |
const std::shared_ptr< GOptions > & | gopt, |
|
|
GBoard * | board ) |
- Parameters
-
gopt | Shared pointer to a GOptions |
board | Pointer to the GBoard widget that will display the messages. |
Definition at line 5 of file gui_session.cc.
◆ ReceiveG4cerr()
G4int GUI_Session::ReceiveG4cerr |
( |
const G4String & | cerrString | ) |
|
|
override |
- Parameters
-
cerrString | The error string. |
- Returns
- Always returns 0.
Definition at line 34 of file gui_session.cc.
◆ ReceiveG4cout()
G4int GUI_Session::ReceiveG4cout |
( |
const G4String & | coutString | ) |
|
|
override |
- Parameters
-
coutString | The output string. |
- Returns
- Always returns 0.
Definition at line 11 of file gui_session.cc.
The documentation for this class was generated from the following files: