g4dialog
Loading...
Searching...
No Matches
GUI_Session Class Reference

Custom GEANT4 UI session that directs output to a Qt6 board widget. More...

#include <gui_session.h>

Inheritance diagram for GUI_Session:
Inheritance graph
Collaboration diagram for GUI_Session:
Collaboration graph

Public Member Functions

 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GUI_Session()

GUI_Session::GUI_Session ( const std::shared_ptr< GOptions > & gopt,
GBoard * board )
Parameters
goptShared pointer to a GOptions
boardPointer to the GBoard widget that will display the messages.

Definition at line 5 of file gui_session.cc.

Member Function Documentation

◆ ReceiveG4cerr()

G4int GUI_Session::ReceiveG4cerr ( const G4String & cerrString)
override
Parameters
cerrStringThe 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
coutStringThe 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: