4#ifndef QQUICK3DXRANCHORMANAGER_VISIONOS_P_H
5#define QQUICK3DXRANCHORMANAGER_VISIONOS_P_H
18#include <QtQuick3DXr/private/qtquick3dxrglobal_p.h>
20#include <QtCore/quuid.h>
23#import <ARKit/ARKit.h>
75 explicit QQuick3DXrAnchorManager(QObject *parent =
nullptr);
76 ~QQuick3DXrAnchorManager() override;
79 void initAnchorManager();
85 mutable QReadWriteLock m_anchorsLock;
86 QList<QQuick3DXrSpatialAnchor *> m_anchors;
87 QHash<QUuid, QQuick3DXrSpatialAnchor *> m_anchorsByUuid;
89 enum class AnchorType {
93 AnchorType m_requestedAnchorType = AnchorType::Plane;
95 bool m_isInitialized =
false;
96 bool m_isPlaneDetectionSupported =
false;
QtQuick3DXr::XrSpaceId getCurrentSpaceId() const
void updateAnchor(QQuick3DXrSpatialAnchor *anchor)
void anchorRemoved(QUuid uuid)
void populateAnchorsList()
const QList< QQuick3DXrSpatialAnchor * > & anchors() const
void addAnchor(QQuick3DXrSpatialAnchor *anchor)
void removeAnchor(QUuid uuid)
qsizetype anchorCount() const
bool getBoundingBox2D(QtQuick3DXr::XrSpaceId space, QVector2D &offset, QVector2D &extent)
void sceneCaptureCompleted()
void anchorUpdated(QQuick3DXrSpatialAnchor *anchor)
void requestSceneCapture()
bool setupSpatialAnchor(QtQuick3DXr::XrSpaceId space, QQuick3DXrSpatialAnchor &anchor)
bool getBoundingBox3D(QtQuick3DXr::XrSpaceId space, QVector3D &offset, QVector3D &extent)
The QVector2D class represents a vector or vertex in 2D space.
The QVector3D class represents a vector or vertex in 3D space.
static const AnchorClassificationMap & getAnchorClassificationName(ar_plane_classification_t classification, bool *identified=nullptr)
static const AnchorClassificationMap anchorClassificationMap[]
static constexpr size_t anchorClassificationStart
static void updateAnchorProperties(QQuick3DXrSpatialAnchor &anchor, ar_plane_anchor_t planeAnchor)
struct ar_data_providers_s * ar_data_providers_t
struct ar_plane_anchors_s * ar_plane_anchors_t
struct ar_plane_detection_provider_s * ar_plane_detection_provider_t
ar_plane_classification_t classification
QQuick3DXrSpatialAnchor::Classification label
AnchorClassifcation classificationEnum
const char classificationName[16]