Monado OpenXR Runtime
Loading...
Searching...
No Matches
b_tracked_device Struct Reference
Collaboration diagram for b_tracked_device:

Public Member Functions

struct b_tracked_deviceb_tracked_device_create (struct xrt_space *space)
 Create a tracked device with a reference to space.
 
void b_tracked_device_reference (struct b_tracked_device **dst, struct b_tracked_device *src)
 
struct xrt_spaceb_tracked_device_get_space (struct b_tracked_device *btd)
 Returns the device space without taking a reference.
 
void b_tracked_device_track_pose_space (struct b_tracked_device *btd, struct xrt_space *xs)
 Track a pose space owned by this device.
 
void b_tracked_device_untrack_pose_space (struct b_tracked_device *btd, struct xrt_space *xs)
 Stop tracking a pose space.
 
void b_tracked_device_for_each_pose_space (struct b_tracked_device *btd, b_tracked_device_pose_space_cb cb, void *priv)
 Iterate tracked pose spaces.
 
void b_tracked_device_clear_pose_spaces (struct b_tracked_device *btd)
 Drop all tracked pose spaces without destroying them.
 

Data Fields

struct xrt_reference reference
 
struct xrt_spacespace
 
struct xrt_space ** pose_spaces
 
uint32_t pose_space_count
 
uint32_t pose_space_capacity
 

Member Function Documentation

◆ b_tracked_device_clear_pose_spaces()

void b_tracked_device_clear_pose_spaces ( struct b_tracked_device btd)

Drop all tracked pose spaces without destroying them.

The caller must hold the space overseer graph lock.

◆ b_tracked_device_create()

struct b_tracked_device * b_tracked_device_create ( struct xrt_space space)

Create a tracked device with a reference to space.

References U_TYPED_CALLOC.

Referenced by b_space_overseer_link_space_to_device().

◆ b_tracked_device_for_each_pose_space()

void b_tracked_device_for_each_pose_space ( struct b_tracked_device btd,
b_tracked_device_pose_space_cb  cb,
void *  priv 
)

Iterate tracked pose spaces.

The caller must hold the space overseer graph lock.

◆ b_tracked_device_get_space()

struct xrt_space * b_tracked_device_get_space ( struct b_tracked_device btd)

Returns the device space without taking a reference.

◆ b_tracked_device_track_pose_space()

void b_tracked_device_track_pose_space ( struct b_tracked_device btd,
struct xrt_space xs 
)

Track a pose space owned by this device.

The caller must hold the space overseer graph lock.

References U_ARRAY_REALLOC_OR_FREE.

◆ b_tracked_device_untrack_pose_space()

void b_tracked_device_untrack_pose_space ( struct b_tracked_device btd,
struct xrt_space xs 
)

Stop tracking a pose space.

The caller must hold the space overseer graph lock.


The documentation for this struct was generated from the following files: