|
Celeritas 0.7+cf8d83d
|
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. | |
| VolumeInstanceId | world_instance () const |
| Enclosing instance of the world volume (null if world is a true root) | |
| VolumeId::size_type | num_volumes () const |
| Number of logical volumes (nodes) | |
| VolumeInstanceId::size_type | num_volume_instances () const |
| Number of volume instances (edges) | |
| VolumeUniqueInstanceId::size_type | num_unique_instances () const |
| Total number of unique root-to-node paths. | |
| 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. | |
| VolumeUniqueInstanceId::size_type | offset (VolumeInstanceId vi_id) const |
| Get the precomputed unique-instance offset for 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, unique instance count) and instance-to-volume mapping, as well as per-volume VolumeView objects.
|
inline |
Total number of unique root-to-node paths.
Get the total number of unique root-to-node paths.
|
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.
|
inline |
Enclosing instance of the world volume (null if world is a true root)
Get the enclosing instance of the world volume.