78 U_VAR_KIND_RO_VEC3_I32,
79 U_VAR_KIND_RO_VEC3_F32,
80 U_VAR_KIND_RO_QUAT_F32,
81 U_VAR_KIND_GUI_HEADER,
143 #define U_VAR_ADD_FUNCS() \ 144 ADD_FUNC(bool, bool, BOOL) \ 145 ADD_FUNC(rgb_u8, struct xrt_colour_rgb_u8, RGB_U8) \ 146 ADD_FUNC(rgb_f32, struct xrt_colour_rgb_f32, RGB_F32) \ 147 ADD_FUNC(u8, uint8_t, U8) \ 148 ADD_FUNC(i32, int32_t, I32) \ 149 ADD_FUNC(f32, float, F32) \ 150 ADD_FUNC(f32_arr, struct u_var_f32_arr, F32_ARR) \ 151 ADD_FUNC(f32_timing, struct u_var_timing, TIMING) \ 152 ADD_FUNC(vec3_i32, struct xrt_vec3_i32, VEC3_I32) \ 153 ADD_FUNC(vec3_f32, struct xrt_vec3, VEC3_F32) \ 154 ADD_FUNC(pose, struct xrt_pose, POSE) \ 155 ADD_FUNC(sink, struct xrt_frame_sink *, SINK) \ 156 ADD_FUNC(ro_text, const char, RO_TEXT) \ 157 ADD_FUNC(ro_i32, int32_t, RO_I32) \ 158 ADD_FUNC(ro_u32, uint32_t, RO_I32) \ 159 ADD_FUNC(ro_f32, float, RO_F32) \ 160 ADD_FUNC(ro_i64, int64_t, RO_I64) \ 161 ADD_FUNC(ro_u64, uint64_t, RO_U64) \ 162 ADD_FUNC(ro_f64, double, RO_F64) \ 163 ADD_FUNC(ro_vec3_i32, struct xrt_vec3_i32, RO_VEC3_I32) \ 164 ADD_FUNC(ro_vec3_f32, struct xrt_vec3, RO_VEC3_F32) \ 165 ADD_FUNC(ro_quat_f32, struct xrt_quat, RO_QUAT_F32) \ 166 ADD_FUNC(gui_header, bool, GUI_HEADER) 168 #define ADD_FUNC(SUFFIX, TYPE, ENUM) \ 169 void u_var_add_##SUFFIX(void *, TYPE *, const char *);
float reference_timing
A reference line drawn on the plot.
Definition: u_var.h:39
void u_var_visit(u_var_root_cb enter_cb, u_var_root_cb exit_cb, u_var_elm_cb elem_cb, void *priv)
Visit all root nodes and their variables.
Definition: u_var.cpp:152
A object that is sent frames.
Definition: xrt_frame.h:51
const char * unit
A string describing the unit used, not freed.
Definition: u_var.h:51
bool dynamic_rescale
Rescale graph's value range when value exceeds range.
Definition: u_var.h:48
bool center_reference_timing
If false, reference_timing will be the bottom of the graph.
Definition: u_var.h:42
Common defines and enums for XRT.
void u_var_add_root(void *root, const char *c_name, bool number)
Add a named root object, the u_var subsystem is completely none-invasive to the object it's tracking...
Definition: u_var.cpp:116
void(* u_var_root_cb)(const char *, void *)
Callback for entering and leaving root nodes.
Definition: u_var.h:87
void u_var_force_on(void)
This forces the variable tracking code to on, it is disabled by default.
Definition: u_var.cpp:109
u_var_kind
What kind of variable is this tracking.
Definition: u_var.h:57
float range
How many units the graph expands by default.
Definition: u_var.h:45
void(* u_var_elm_cb)(const char *, enum u_var_kind, void *, void *)
Callback on each variable a root node has.
Definition: u_var.h:92
void u_var_remove_root(void *root)
Remove the root node.
Definition: u_var.cpp:137