API reference
OpenXRSpatialComponentMarkerList
Inherits: OpenXRSpatialComponentData < Shared < Object
Object for storing the queries marker result data.
Description
Section titled “Description”Object for storing the queries marker result data when calling OpenXRSpatialEntityExtension.query_snapshot().
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| Variant | get_marker_data(snapshot, index) |
| int | get_marker_id(index) |
| OpenXRSpatialComponentMarkerList.MarkerType | get_marker_type(index) |
Enumerations and constants
Section titled “Enumerations and constants”enum MarkerType
Section titled “enum MarkerType”- MARKER_TYPE_UNKNOWN =
0— Unknown or unset marker type.
- MARKER_TYPE_QRCODE =
1— Marker based on a QR code.
- MARKER_TYPE_MICRO_QRCODE =
2— Marker based on a micro QR code.
- MARKER_TYPE_ARUCO =
3— Marker based on an Aruco code.
- MARKER_TYPE_APRIL_TAG =
4— Marker based on an April Tag.
- MARKER_TYPE_MAX =
5— Maximum value for this enum.
Method descriptions
Section titled “Method descriptions”get_marker_data
Section titled “get_marker_data”Variant get_marker_data(snapshot: RID, index: int) const
Returns either a String or a []u8 buffer with data for the marker at this index. Only applicable for QR code markers.
get_marker_id
Section titled “get_marker_id”int get_marker_id(index: int) const
Returns the marker ID for the marker at this index. Only applicable for Aruco or April Tag markers.
get_marker_type
Section titled “get_marker_type”OpenXRSpatialComponentMarkerList.MarkerType get_marker_type(index: int) const
Returns the marker type for the marker at this index.