XrSpatialAnchorListModel QML Type
Provides a model for managing spatial anchors. More...
Import Statement: | import QtQuick3D.Xr |
Since: | Qt 6.8 |
Inherits: | |
Status: | Technical Preview |
Properties
- classificationFilter : enumeration
- classificationStringFilter : string
- filterMode : enumeration
- identifierFilter : list
Signals
- classificationFilterChanged()
- classificationStringFilterChanged()
- filterModeChanged()
- identifierFilterChanged()
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:
Constant | Value |
---|---|
Wall | |
Ceiling | |
Floor | |
Table | |
Seat | |
Window | |
Door | |
Other |
classificationStringFilter : 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:
Constant | Description |
---|---|
All | Show all spatial anchors. |
Classification | Show spatial anchors based on the provided classification filter flag. |
Identifier | Show spatial anchors based matching the provided Identifiers. |
identifierFilter : list |
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
.
© 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.