Monado OpenXR Runtime
gui_scene_tracking_overrides.c File Reference

A very small scene that lets the user configure tracking overrides. More...

#include "util/u_misc.h"
#include "util/u_format.h"
#include "util/u_logging.h"
#include "util/u_config_json.h"
#include "math/m_api.h"
#include "xrt/xrt_prober.h"
#include "xrt/xrt_settings.h"
#include "xrt/xrt_system.h"
#include "gui_common.h"
#include "gui_imgui.h"
#include "bindings/b_generated_bindings.h"
Include dependency graph for gui_scene_tracking_overrides.c:

Data Structures

struct  gui_tracking_overrides
 

Macros

#define NAME_LENGTH   XRT_DEVICE_NAME_LEN * 2 + 5
 

Functions

static void make_name (struct xrt_device *xdev, char *buf)
 
static void handle_draggable_vec3_f32 (const char *name, struct xrt_vec3 *v, const struct xrt_vec3 *reset)
 
static void handle_draggable_quat (const char *name, struct xrt_quat *q, const struct xrt_quat *reset)
 
static bool get_indices (struct gui_program *p, struct gui_tracking_overrides *ts, struct xrt_tracking_override *override, int *out_target, int *out_tracker)
 
static void gui_add_override (struct gui_program *p, struct gui_tracking_overrides *ts)
 
static void scene_render (struct gui_scene *scene, struct gui_program *p)
 
static void scene_destroy (struct gui_scene *scene, struct gui_program *p)
 
static struct gui_tracking_overridescreate (struct gui_program *p)
 
void gui_scene_tracking_overrides (struct gui_program *p)
 

Variables

static char * override_type_str [2]
 
static ImVec2 button_dims = {256 + 64, 0}
 
static struct xrt_pose identity
 

Detailed Description

A very small scene that lets the user configure tracking overrides.

Author
Christoph Haag chris.nosp@m.toph.nosp@m..haag.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Variable Documentation

◆ identity

struct xrt_pose identity
static
Initial value:
= {.position = {.x = 0, .y = 0, .z = 0},
.orientation = {.x = 0, .y = 0, .z = 0, .w = 1}}

◆ override_type_str

char* override_type_str[2]
static
Initial value:
= {
[XRT_TRACKING_OVERRIDE_DIRECT] = "direct",
[XRT_TRACKING_OVERRIDE_ATTACHED] = "attached",
}