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"
|
#define | NAME_LENGTH XRT_DEVICE_NAME_LEN * 2 + 5 |
|
|
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_overrides * | create (struct gui_program *p) |
|
void | gui_scene_tracking_overrides (struct gui_program *p) |
|
◆ identity
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",
}