|
gtree
|
Qt widget that displays the geometry hierarchy and allows interactive style edits. More...
#include <gtree.h>
Public Member Functions | |
| GTree (const std::shared_ptr< GOptions > &gopt, std::unordered_map< std::string, G4Volume * > g4volumes_map, QWidget *parent=nullptr) | |
| Construct the geometry tree widget. | |
| GTree (const GTree &)=delete | |
| Non-copyable: the widget owns unique model resources. | |
| GTree & | operator= (const GTree &)=delete |
| Non-assignable: the widget owns unique model resources. | |
Public Member Functions inherited from GBase< GTree > | |
| 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< GTree > | |
| std::shared_ptr< GLogger > | log |
The widget builds an internal model of systems and volumes from a provided geometry volume map, then constructs a QTreeWidget view with:
User interactions trigger slots that:
The right-side panel shows properties of the selected volume and provides controls for representation and opacity.
|
explicit |
| gopt | Shared pointer to the option set used to configure logging and behavior. |
| g4volumes_map | Map from full volume names to G4Volume* wrappers. |
| parent | Optional Qt parent used for ownership and lifetime management. |
Construction steps:
g4_systems_tree) from the volume map.QTreeWidget view.
|
delete |