|
Celeritas 0.7+3f749ab
|
GPU-compatible view of the full volume hierarchy graph. More...
#include <AllVolumesView.hh>
Public Types | |
Type aliases | |
| using | ParamsRef = NativeCRef< VolumeParamsData > |
Public Member Functions | |
| AllVolumesView (ParamsRef const ¶ms) | |
| Construct with shared params data. | |
| VolumeId | world () const |
| Root volume of the geometry graph. | |
| VolumeId::size_type | num_volumes () const |
| Number of logical volumes (nodes) | |
| VolumeInstanceId::size_type | num_volume_instances () const |
| Number of volume instances (edges) | |
| VolumeLevelId::size_type | num_volume_levels () const |
| Depth of the volume graph (1 for a world with no children) | |
| VolumeId | volume_id (VolumeInstanceId vi_id) const |
| Get the logical volume instantiated by a volume instance. | |
| VolumeView | volume (VolumeId vol_id) const |
Construct a VolumeView for the given volume. | |
GPU-compatible view of the full volume hierarchy graph.
This provides device-accessible accessors over the complete VolumeParamsData: scalar graph properties (world ID, depth) and instance-to-volume mapping, as well as per-volume VolumeView objects.
|
inline |
Number of volume instances (edges)
Get the number of volume instances.
|
inline |
Depth of the volume graph (1 for a world with no children)
Get the depth of the volume graph.
|
inline |
Number of logical volumes (nodes)
Get the number of logical volumes.
|
inline |
Root volume of the geometry graph.
Get the root volume of the geometry graph.