XrSpatialAnchorModel QML Type

Provides a model for managing spatial anchors. More...

Import Statement: import QtQuick3D.Xr
Since: Qt 6.8
Inherits:

ListModel

Status: Technical Preview

Properties

Signals

Detailed Description

This type provides a way to manage spatial anchors, which are points in the physical world that can be tracked and associated with virtual content.

You can use it like so:

 XrSpatialAnchorModel {
     id: anchorModel
     filterMode: XrSpatialAnchorModel.Labels
     labels: XrSpatialAnchorModel.Ceiling | XrSpatialAnchorModel.Floor
     // ... other properties and methods ...

}

Property Documentation

filterMode : enumeration

Specifies the filter mode for spatial anchors.

Holds the filter mode. The filter mode can be one of the following:

ConstantDescription
AllShow all spatial anchors.
LabelShow spatial anchors based on semantic labels.
UUIDShow spatial anchors based on UUIDs.

labels : enumeration

Holds the semantic labels used for filtering spatial anchors.

The semantic labels are represented as a combination of flags:

ConstantValue
Ceiling
DoorFrame
Floor
WallArt
WallFace
WindowFrame
Couch
Table
Bed
Lamp
Plant
Screen
Storage
Other

uuids : list

Holds the list of UUIDs for filtering spatial anchors.


Signal Documentation

filterModeChanged()

Emitted when the filter mode changes.

Note: The corresponding handler is onFilterModeChanged.


labelsChanged()

Emitted when the semantic labels changes.

Note: The corresponding handler is onLabelsChanged.


uuidsChanged()

Emitted when the list of UUIDs changes.

Note: The corresponding handler is onUuidsChanged.