6#if defined(Q_OS_VISIONOS)
7#include "visionos/qquick3dxranchormanager_visionos_p.h"
9#include "openxr/qquick3dxranchormanager_openxr_p.h"
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
125QQuick3DXrSpatialAnchor::QQuick3DXrSpatialAnchor(QtQuick3DXr::XrSpaceId space, QUuid &uuid, QObject *parent)
137
138
139
140
141
142
143
144
153 if (m_offset3D == newOffset)
155 m_offset3D = newOffset;
156 emit offset3DChanged();
160
161
162
163
164
165
166
167
168
177 if (m_extent3D == newExtent)
179 m_extent3D = newExtent;
180 emit extent3DChanged();
184
185
186
187
188
189
190
199 if (m_position == newPosition)
201 m_position = newPosition;
202 emit positionChanged();
206
207
208
209
210
211
220 if (m_rotation == newRotation)
222 m_rotation = newRotation;
223 emit rotationChanged();
227
228
229
230
231
232
233
234
235
236
237
238
239
243 return m_classification;
248 if (m_classification == newClassification)
250 m_classification = newClassification;
251 emit classificationChanged();
255
256
257
258
259
260
261
262
263
264
265
266
267
271 return m_classificationString;
276 if (m_classificationString == newClassificationString)
278 m_classificationString = newClassificationString;
279 emit classificationStringChanged();
283
284
285
286
287
288
289
290
291
292
293
297 return m_has2DBounds;
302 if (qFuzzyCompare(m_offset2D, offset) && qFuzzyCompare(m_extent2D, extent))
309 m_has2DBounds =
true;
311 emit has2DBoundsChanged();
315
316
317
318
319
320
321
322
323
324
325
330 return m_has3DBounds;
335 if (qFuzzyCompare(m_offset3D, offset) && qFuzzyCompare(m_extent3D, extent))
342 m_has3DBounds =
true;
344 emit has3DBoundsChanged();
348
349
350
351
352
353
354
355
356
364
365
366
367
368
369
370
371
372
380
381
382
383
384
385
386
390 return QString::fromLatin1(m_uuid.toRfc4122());
395 return m_roomLayoutUuids;
400 m_roomLayoutUuids = newRoomLayoutUuids;
405 return m_spaceContainerUuids;
410 m_spaceContainerUuids = newSpaceContainerUuids;
QSet< QUuid > spaceContainerUuids() const
void setExtent3D(const QVector3D &newExtent)
~QQuick3DXrSpatialAnchor() override
QVector3D offset3D() const
\qmlproperty vector3d XrSpatialAnchor::offset3D
QVector3D position() const
\qmlproperty vector3d XrSpatialAnchor::position
void setClassificationString(const QString &newClassificationString)
void setBounds3D(const QVector3D &offset, const QVector3D &extent)
void setBounds2D(const QVector2D &offset, const QVector2D &extent)
QString identifier() const
\qmlproperty string XrSpatialAnchor::identifier
void setRotation(const QQuaternion &newRotation)
bool has2DBounds() const
\qmlproperty bool XrSpatialAnchor::has2DBounds
void setSpaceContainerUuids(const QSet< QUuid > &newSpaceContainerUuids)
void setRoomLayoutUuids(const QSet< QUuid > &newRoomLayoutUuids)
QVector3D extent3D() const
\qmlproperty vector3d XrSpatialAnchor::extent3D
Classification classification() const
\qmlproperty enumeration XrSpatialAnchor::classification
QQuaternion rotation() const
\qmlproperty quaternion XrSpatialAnchor::rotation
QVector2D extent2D() const
\qmlproperty vector2d XrSpatialAnchor::extent2D
QSet< QUuid > roomLayoutUuids() const
void setClassification(Classification newClassification)
void setOffset3D(const QVector3D &newOffset)
void setPosition(const QVector3D &newPosition)
bool has3DBounds() const
\qmlproperty bool XrSpatialAnchor::has3DBounds
QString classificationString() const
\qmlproperty string XrSpatialAnchor::classificationString
QVector2D offset2D() const
\qmlproperty vector2d XrSpatialAnchor::offset2D