XrSpatialAnchorListModel QML Type

提供包含空间锚点的模型。更多

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

ListModel

Status: Technical Preview

属性

详细说明

该类型提供了一个空间锚点列表,空间锚点是物理世界中可被跟踪并与虚拟内容相关联的点。

该列表包含具有anchor 属性的元素,其类型为XrSpatialAnchor

您可以这样使用它:

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

属性文档

classificationFilter : enumeration

持有用于过滤空间锚点的分类标志。

ClassificationFlag 过滤器由多个标志组合而成:

常量
XrSpatialAnchorListModel.Wall
XrSpatialAnchorListModel.Ceiling
XrSpatialAnchorListModel.Floor
XrSpatialAnchorListModel.Table
XrSpatialAnchorListModel.Seat
XrSpatialAnchorListModel.Window
XrSpatialAnchorListModel.Door
XrSpatialAnchorListModel.Other

classificationStringFilter : list<string>

保存用于过滤空间锚点的分类字符串。

如果filterMode 设置为Classification ,则该属性可用于提供附加分类字符串列表以进行筛选。这些标签将与空间锚点的XrSpatialAnchor::classificationString 属性所报告的相同值进行匹配。

注: 只有分类为Otherspatial anchors 才会根据此过滤器进行检查。


filterMode : enumeration

指定空间锚点的过滤模式。

保持过滤模式。过滤模式可以是以下模式之一:

常量说明
XrSpatialAnchorListModel.All显示所有空间锚点。
XrSpatialAnchorListModel.Classification根据提供的分类过滤标志显示空间锚点。
XrSpatialAnchorListModel.Identifier根据提供的标识符匹配情况显示空间锚点。

identifierFilter : list<string>

保存用于筛选空间锚点的标识符列表。


© 2025 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.