Blender V5.3
DNA_xr_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_enum_flags.hh"
12
13#include "DNA_view3d_types.h"
14
15namespace blender {
16
22
28
35
44
46enum eXrOpFlag : short {
50};
51
52enum eXrActionFlag : short {
55};
57
58enum eXrHapticFlag : short {
65 XR_HAPTIC_PRESS = (1 << 1),
67 XR_HAPTIC_REPEAT = (1 << 3),
68};
70
71
75enum eXrAxisFlag : short {
76 XR_AXIS0_POS = (1 << 0),
77 XR_AXIS0_NEG = (1 << 1),
78 XR_AXIS1_POS = (1 << 2),
79 XR_AXIS1_NEG = (1 << 3),
80};
82
83enum eXrPoseFlag : short {
84 /* Pose represents controller grip/aim. */
85 XR_POSE_GRIP = (1 << 0),
86 XR_POSE_AIM = (1 << 1),
87};
89
90/* Location Scouting Viewfinder. */
92
98
105
111
116
124#define XR_MAX_USER_PATH_LENGTH 64
125#define XR_MAX_COMPONENT_PATH_LENGTH 192
126
127/* -------------------------------------------------------------------- */
128
170
171/* -------------------------------------------------------------------- */
172
174 struct XrComponentPath *next = nullptr, *prev = nullptr;
175 char path[/*XR_MAX_COMPONENT_PATH_LENGTH*/ 192] = "";
176};
177
179 struct XrActionMapBinding *next = nullptr, *prev = nullptr;
180
182 char name[/*MAX_NAME*/ 64] = "";
183
185 char profile[256] = "";
187 ListBaseT<XrComponentPath> component_paths = {nullptr, nullptr};
188
192 char _pad[2] = {};
193
195 float pose_location[3] = {};
196 float pose_rotation[3] = {};
197};
198
199/* -------------------------------------------------------------------- */
200
202 struct XrUserPath *next = nullptr, *prev = nullptr;
203 char path[/*XR_MAX_USER_PATH_LENGTH*/ 64] = "";
204};
205
207 struct XrActionMapItem *next = nullptr, *prev = nullptr;
208
210 char name[/*MAX_NAME*/ 64] = "";
213 char _pad[7] = {};
214
216 ListBaseT<XrUserPath> user_paths = {nullptr, nullptr};
217
219 char op[/*OP_MAX_TYPENAME*/ 64] = "";
223 struct PointerRNA *op_properties_ptr = nullptr;
224
228
231
233 char haptic_name[/*MAX_NAME*/ 64] = "";
237
238 short selbinding = 0;
239 char _pad3[2] = {};
240 ListBaseT<XrActionMapBinding> bindings = {nullptr, nullptr};
241};
242
243/* -------------------------------------------------------------------- */
244
246 struct XrActionMap *next = nullptr, *prev = nullptr;
247
249 char name[/*MAX_NAME*/ 64] = "";
250
251 ListBaseT<XrActionMapItem> items = {nullptr, nullptr};
252 short selitem = 0;
253 char _pad[6] = {};
254};
255
256/* -------------------------------------------------------------------- */
257
258} // namespace blender
#define ENUM_OPERATORS(_enum_type)
BMesh Iterators.
@ XR_POSE_INPUT
@ XR_BOOLEAN_INPUT
@ XR_FLOAT_INPUT
@ XR_VIBRATION_OUTPUT
@ XR_VECTOR2F_INPUT
@ XR_ACTION_BIMANUAL
eXRSessionBasePoseType
@ XR_BASE_POSE_CUSTOM
@ XR_BASE_POSE_OBJECT
@ XR_BASE_POSE_SCENE_CAMERA
eXrSessionControllerDrawStyle
@ XR_CONTROLLER_DRAW_LIGHT
@ XR_CONTROLLER_DRAW_LIGHT_RAY
@ XR_CONTROLLER_DRAW_DARK
@ XR_CONTROLLER_DRAW_DARK_RAY
@ XR_VIEWFINDER_MODE_CONFIRM
@ XR_VIEWFINDER_MODE_PLAYBACK
@ XR_VIEWFINDER_MODE_LIVE
eXrViewfinderPlaybackAction
@ XR_VIEWFINDER_ACTION_PB_BROWSE
@ XR_VIEWFINDER_ACTION_PB_PREVIEW
@ XR_VIEWFINDER_ACTION_PB_DELETE
@ XR_VIEWFINDER_HAND_LEFT
@ XR_VIEWFINDER_HAND_RIGHT
eXrViewfinderLiveAction
@ XR_VIEWFINDER_ACTION_LIVE_APERTURE
@ XR_VIEWFINDER_ACTION_LIVE_DOF
@ XR_VIEWFINDER_ACTION_LIVE_LENS
@ XR_VIEWFINDER_ACTION_LIVE_FOCUS
@ XR_HAPTIC_MATCHUSERPATHS
@ XR_HAPTIC_REPEAT
@ XR_HAPTIC_RELEASE
@ XR_HAPTIC_PRESS
@ XR_OP_RELEASE
eXrViewfinderConfirmAction
@ XR_VIEWFINDER_ACTION_CF_CANCEL
@ XR_VIEWFINDER_ACTION_CF_CONFIRM
@ XR_SESSION_USE_POSITION_TRACKING
@ XR_SESSION_USE_ABSOLUTE_TRACKING
ListBaseT< XrComponentPath > component_paths
struct XrActionMapBinding * prev
struct XrActionMapBinding * next
struct XrActionMapItem * prev
struct PointerRNA * op_properties_ptr
struct XrActionMapItem * next
ListBaseT< XrActionMapBinding > bindings
ListBaseT< XrUserPath > user_paths
struct XrActionMap * next
ListBaseT< XrActionMapItem > items
struct XrActionMap * prev
struct XrComponentPath * prev
struct XrComponentPath * next
struct View3DShading shading
eXRSessionBasePoseType base_pose_type
struct XrUserPath * prev
struct XrUserPath * next