XrSpatialAnchorListModel QML Type

Provides a model containing spatial anchors. More...

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

ListModel

Status: Technical Preview

Properties

Detailed Description

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

The list contains elements that have an anchor property with the type XrSpatialAnchor.

You can use it like this:

Repeater3D {
    model: XrSpatialAnchorListModel {
    }
    delegate: Node {
        required property XrSpatialAnchor anchor
        position: anchor.position
        rotation: anchor.rotation
        // Further use of anchor properties...
    }
}

Property Documentation

classificationFilter : enumeration

Holds the classification flag used for filtering spatial anchors.

The ClassificationFlag filter is represented as a combination of flags:

ConstantValue
XrSpatialAnchorListModel.Wall
XrSpatialAnchorListModel.Ceiling
XrSpatialAnchorListModel.Floor
XrSpatialAnchorListModel.Table
XrSpatialAnchorListModel.Seat
XrSpatialAnchorListModel.Window
XrSpatialAnchorListModel.Door
XrSpatialAnchorListModel.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
XrSpatialAnchorListModel.AllShow all spatial anchors.
XrSpatialAnchorListModel.ClassificationShow spatial anchors based on the provided classification filter flag.
XrSpatialAnchorListModel.IdentifierShow spatial anchors based on matching the provided Identifiers.

identifierFilter : list<string>

Holds the list of identifiers for filtering spatial anchors.


© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.