Monado OpenXR Runtime
xrt_relation_chain Struct Reference

A chain of space relations and their associated validity flags. More...

#include <xrt/xrt_defines.h>

Collaboration diagram for xrt_relation_chain:

Public Member Functions

void m_relation_chain_resolve (const struct xrt_relation_chain *xrc, struct xrt_space_relation *out_relation)
 Compute the equivalent single relation from flattening a relation chain. More...
 

Static Public Member Functions

static struct xrt_space_relationm_relation_chain_reserve (struct xrt_relation_chain *xrc)
 Reserve a step in the chain and return a pointer to the relation. More...
 
static void m_relation_chain_push_relation (struct xrt_relation_chain *xrc, const struct xrt_space_relation *relation)
 Append a new relation. More...
 
static void m_relation_chain_push_inverted_relation (struct xrt_relation_chain *xrc, const struct xrt_space_relation *relation)
 Append the inverse of the provided relation. More...
 
static void m_relation_chain_push_pose (struct xrt_relation_chain *xrc, const struct xrt_pose *pose)
 Append a new pose as a fully tracked relation. More...
 
static void m_relation_chain_push_pose_if_not_identity (struct xrt_relation_chain *xrc, const struct xrt_pose *pose)
 Append a new pose as a relation without velocity, if it is not the identity pose. More...
 
static void m_relation_chain_push_inverted_pose_if_not_identity (struct xrt_relation_chain *xrc, const struct xrt_pose *pose)
 Append the inverse of a pose as a relation without velocity, if it is not the identity pose. More...
 

Data Fields

struct xrt_space_relation steps [8]
 
uint32_t step_count
 

Related Functions

(Note that these are not member functions.)

#define XRT_RELATION_CHAIN_CAPACITY   8
 The maximum number of steps that can be in a relation chain. More...
 

Detailed Description

A chain of space relations and their associated validity flags.

Functions for manipulating this are available in math/m_space.h.

See also
xrt_space_relation

Friends And Related Function Documentation

◆ XRT_RELATION_CHAIN_CAPACITY

#define XRT_RELATION_CHAIN_CAPACITY   8
related

The maximum number of steps that can be in a relation chain.

See also
xrt_relation_chain::steps

Referenced by m_relation_chain_push_relation(), and m_relation_chain_reserve().


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