|
gtree
|
Example application demonstrating how to instantiate and run the GTree widget. More...
#include "G4VisExecutive.hh"#include "G4RunManagerFactory.hh"#include "QBBC.hh"#include "gtree.h"#include "gtree_options.h"#include "gdetectorConstruction.h"#include <QApplication>#include <QMainWindow>#include <QTimer>
Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
| Example program entry point that launches the geometry tree browser. | |
This example shows a minimal workflow:
gtree::defineOptions()--gui is enabled, create a Qt main window and embed GTree as the central widgetHow to run (conceptual)
--gui to create the Qt event loop and show the widget.tt and uses it as the delay (in milliseconds) before quitting the Qt event loop.The option names (gui, tt) are expected to be defined by the composed option set returned by gtree::defineOptions().
Definition in file gtree_example.cc.
| int main | ( | int | argc, |
| char * | argv[] ) |
| argc | Standard command line argument count. |
| argv | Standard command line argument vector. |
Execution outline:
--gui is enabled:Definition at line 61 of file gtree_example.cc.