|
| | G4Ttree_item (G4Volume *g4volume) |
| | Construct a cached record for a single geometry volume.
|
| |
| std::string | get_mother () const |
| | Return the cached mother name.
|
| |
| QColor | get_color () const |
| | Return the cached RGB color.
|
| |
| bool | get_visibility () const |
| | Return the cached visibility state.
|
| |
| int | get_representation () const |
| | Return the cached representation mode.
|
| |
| double | get_opacity () const |
| | Return the cached opacity (alpha) in [0,1].
|
| |
| double | get_mass () const |
| | Return the cached mass.
|
| |
| double | get_volume () const |
| | Return the cached volume.
|
| |
| double | get_density () const |
| | Return the cached density.
|
| |
| std::string | get_material () const |
| | Return the cached material name.
|
| |
| bool | get_recursive () const |
| | Return the cached recursive flag.
|
| |
| void | set_recursive (bool recursive) |
| | Set the recursive flag.
|
| |
| void | set_color (QColor &c) |
| | Update the cached color.
|
| |
| void | set_opacity (double opacity) |
| | Update the cached opacity.
|
| |
This class extracts and caches a subset of geometry and visualization information from a G4Volume wrapper:
- hierarchy (mother logical volume name)
- material name
- computed mass/volume/density (scaled to common units)
- visualization attributes (visibility, color, opacity)
It is intentionally small and UI-oriented: it acts as the "model" part of the widget, decoupled from Qt item instances.
Definition at line 36 of file gtree.h.