|
g4dialog
|
Example program demonstrating how to instantiate and run G4Dialog. More...
#include "G4VisExecutive.hh"#include "G4RunManagerFactory.hh"#include "g4dialog.h"#include "g4dialog_options.h"#include <QApplication>#include <QMainWindow>#include <QTimer>
Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
| Program entry point for the G4Dialog example. | |
This example supports two modes:
--gui): creates a QApplication, embeds G4Dialog in a QMainWindow, and runs the Qt event loop. A timer can be used to auto-quit after a configurable timeout.The example also initializes a Geant4 visualization manager (G4VisExecutive) so that UI commands and visualization-related help are available in typical setups.
Notes:
--gui, --tt) are expected to be provided by the surrounding option definition conventions via g4dialog::defineOptions().Definition in file g4dialog_example.cc.
| int main | ( | int | argc, |
| char * | argv[] ) |
| argc | Number of command-line arguments. |
| argv | Command-line argument vector. |
EXIT_SUCCESS on normal completion). Definition at line 43 of file g4dialog_example.cc.