|
gboard
|
Example program showing how to route Geant4 output into a GBoard widget. More...
#include "G4VisExecutive.hh"#include "G4RunManagerFactory.hh"#include "gboard.h"#include "gui_session.h"#include <QApplication>#include <QMainWindow>#include <QTimer>
Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
| Entry point for the gboard example application. | |
This example demonstrates two modes:
--gui): creates a QApplication, shows a QMainWindow containing GBoard, and installs a GUI_Session so Geant4 output is forwarded to the board.The example also supports a timeout (scalar option tt) that automatically quits the Qt event loop after the specified duration.
Key behaviors illustrated:
gboard::defineOptions().QTimer. Definition in file gboard_example.cc.
| int main | ( | int | argc, |
| char * | argv[] ) |
Responsibilities:
| argc | Standard C/C++ argument count. |
| argv | Standard C/C++ argument vector. |
EXIT_SUCCESS on normal completion, otherwise a non-zero status. Definition at line 47 of file gboard_example.cc.