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 : list<string>
- filterMode : enumeration
- identifierFilter : list<string>
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 |
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. |
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.