XrSpatialAnchorListModel 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:

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

}

Property Documentation

classificationFilter : enumeration

Holds the classification flag used for filtering spatial anchors.

The ClassificationFlag filter is represented as a combination of flags:

ConstantValue
Wall
Ceiling
Floor
Table
Seat
Window
Door
Other

classificationStringFilter : list<string>

Holds the classification strings used for filtering spatial anchors.

If the FilterMode is set to Classification, this property can be used to provide a list of additional classification string to filter on. These labels will then be matched against the same value as reported by XrSpatialAnchor::classificationString property of the spatial anchor.

Note: Only spatial anchors that are classified as Other will be checked against this filter.


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.
ClassificationShow spatial anchors based on the provided classification filter flag.
IdentifierShow spatial anchors based matching the provided Identifiers.

identifierFilter : list<string>

Holds the list of identifiers for filtering spatial anchors.


Signal Documentation

classificationFilterChanged()

Emitted when the classification filter changes.

Note: The corresponding handler is onClassificationFilterChanged.


classificationStringFilterChanged()

Emitted when the classification string filter changes.

Note: The corresponding handler is onClassificationStringFilterChanged.


filterModeChanged()

Emitted when the filter mode changes.

Note: The corresponding handler is onFilterModeChanged.


identifierFilterChanged()

Emitted when the list of identifiers used for filtering anchors changes.

Note: The corresponding handler is onIdentifierFilterChanged.