|
| | G4Ttree_item (G4Volume *g4volume, const GVolume *gvolume=nullptr) |
| | 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.
|
| |
| std::string | get_solidType () const |
| | Return the solid type string (e.g. "G4Box").
|
| |
| std::string | get_parameters () const |
| | Return the solid parameters string with units.
|
| |
| std::string | get_position () const |
| | Return the placement position string with units.
|
| |
| std::string | get_rotation () const |
| | Return the placement rotation string with units.
|
| |
| std::string | get_motherVolume () const |
| | Return the mother volume name.
|
| |
| std::string | get_volDescription () const |
| | Return the volume description.
|
| |
| void | set_recursive (bool recursive) |
| | Set the recursive flag.
|
| |
| void | set_color (const 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 and the corresponding GVolume descriptor:
- hierarchy (mother logical volume name)
- material name
- computed mass/volume/density (scaled to common units)
- visualization attributes (visibility, color, opacity)
- pygemc descriptor fields (solid type, parameters, position, rotation, description)
It is intentionally small and UI-oriented: it acts as the "model" part of the widget, decoupled from Qt item instances.
Definition at line 42 of file gtree.h.