Celeritas 0.7+cf8d83d
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::VolumeView Class Reference

Access material and connectivity for a single logical volume. More...

#include <VolumeView.hh>

Public Types

Type aliases
using ParamsRef = NativeCRef< VolumeParamsData >
 
using SpanVolInst = LdgSpan< VolumeInstanceId const >
 

Public Member Functions

 VolumeView (ParamsRef const &params, VolumeId vol_id)
 Construct with shared data and a volume ID.
 
VolumeId volume_id () const
 Volume being viewed.
 
GeoMatId material () const
 Get the geometry material ID for this volume.
 
SpanVolInst parents () const
 Get the incoming edges (volume instances that place this volume).
 
SpanVolInst children () const
 Get the outgoing edges (child instances placed inside this volume).
 

Detailed Description

Access material and connectivity for a single logical volume.

This GPU-compatible view provides per-volume access to the geometry material ID and parent/child edges in the volume instance graph.

Example:
VolumeView view{params.host_ref(), vol_id};
GeoMatId mat = view.material();
for (VolumeInstanceId vi : view.children()) { ... }
Access material and connectivity for a single logical volume.
Definition VolumeView.hh:34
SpanVolInst children() const
Get the outgoing edges (child instances placed inside this volume).
Definition VolumeView.hh:101

The documentation for this class was generated from the following file: