|
dbselect
|
Qt widget used to select experiment/system configurations from an SQLite geometry database. More...
#include <dbselectView.h>
Public Slots | |
| void | reload_geometry () |
| Slot invoked by the Reload button to reload geometry based on current selections. | |
Signals | |
| void | geometryAboutToReload () |
| Emitted immediately before detector construction replaces the current geometry. | |
| void | geometryReloaded () |
| Emitted after detector construction has reloaded geometry from the selected systems. | |
Public Member Functions | |
| DBSelectView (const std::shared_ptr< GOptions > &gopts, GDetectorConstruction *dc, QWidget *parent=nullptr) | |
| Construct the view and populate the experiment/system model from the database. | |
| ~DBSelectView () override | |
| Destructor. | |
| SystemList | get_gsystems () |
| Build and return the list of selected systems as a SystemList. | |
Public Member Functions inherited from GBase< DBSelectView > | |
| GBase (const std::shared_ptr< GOptions > &gopt, std::string logger_name="") | |
| GBase (const std::shared_ptr< GLogger > &logger) | |
| GBase (const GBase &)=default | |
| GBase (GBase &&) noexcept=default | |
| virtual | ~GBase () |
| GBase & | operator= (const GBase &)=default |
| GBase & | operator= (GBase &&) noexcept=default |
Additional Inherited Members | |
Protected Attributes inherited from GBase< DBSelectView > | |
| std::shared_ptr< GLogger > | log |
DBSelectView displays a tree of experiments and their system variations obtained from an SQLite database. Each system/variation row allows:
The widget is designed to be used as a selection front-end for geometry reload:
Ownership model:
sqlite3 database handle opened read-only.GDetectorConstruction pointer.Important Qt note: GBase must appear after QWidget derivations; otherwise Qt's MOC expects a staticMetaObject.
Definition at line 46 of file dbselectView.h.
|
explicit |
Construction steps (high-level):
geometry table.| gopts | Shared options used for database selection, default experiment, and UI mode. |
| dc | Detector construction instance used to reload geometry on user request. |
| parent | Optional parent widget for Qt ownership. |
Definition at line 23 of file dbselectView.cc.
|
inlineoverride |
Closes the sqlite3 handle if it was successfully opened. Qt child widgets are cleaned up automatically by Qt parent ownership.
Definition at line 72 of file dbselectView.h.
|
signal |
GUI containers use this signal to clear visualization state while the existing Geant4 geometry is still valid, avoiding stale trajectory/hit references after the reload.
|
signal |
GUI containers use this signal to refresh pages whose models are built from detector construction state, such as the geometry volume tree.
| SystemList DBSelectView::get_gsystems | ( | ) |
The returned SystemList contains one GSystem for each checked system/variation item in the model. For each enabled row, the selected variation and run are taken from the corresponding model columns.
This function does not change the UI state; it is a pure extraction step.
Definition at line 546 of file dbselectView.cc.
|
slot |
High-level behavior:
Definition at line 614 of file dbselectView.cc.