Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/modules/openxr/doc_classes/OpenXRSpatialComponentMarkerList.xml
11323 views
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<class name="OpenXRSpatialComponentMarkerList" inherits="OpenXRSpatialComponentData" experimental="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
3
<brief_description>
4
Object for storing the queries marker result data.
5
</brief_description>
6
<description>
7
Object for storing the queries marker result data when calling [method OpenXRSpatialEntityExtension.query_snapshot].
8
</description>
9
<tutorials>
10
</tutorials>
11
<methods>
12
<method name="get_marker_data" qualifiers="const">
13
<return type="Variant" />
14
<param index="0" name="snapshot" type="RID" />
15
<param index="1" name="index" type="int" />
16
<description>
17
Returns either a [String] or a [PackedByteArray] buffer with data for the marker at this [param index]. Only applicable for QR code markers.
18
</description>
19
</method>
20
<method name="get_marker_id" qualifiers="const">
21
<return type="int" />
22
<param index="0" name="index" type="int" />
23
<description>
24
Returns the marker ID for the marker at this [param index]. Only applicable for Aruco or April Tag markers.
25
</description>
26
</method>
27
<method name="get_marker_type" qualifiers="const">
28
<return type="int" enum="OpenXRSpatialComponentMarkerList.MarkerType" />
29
<param index="0" name="index" type="int" />
30
<description>
31
Returns the marker type for the marker at this [param index].
32
</description>
33
</method>
34
</methods>
35
<constants>
36
<constant name="MARKER_TYPE_UNKNOWN" value="0" enum="MarkerType">
37
Unknown or unset marker type.
38
</constant>
39
<constant name="MARKER_TYPE_QRCODE" value="1" enum="MarkerType">
40
Marker based on a QR code.
41
</constant>
42
<constant name="MARKER_TYPE_MICRO_QRCODE" value="2" enum="MarkerType">
43
Marker based on a micro QR code.
44
</constant>
45
<constant name="MARKER_TYPE_ARUCO" value="3" enum="MarkerType">
46
Marker based on an Aruco code.
47
</constant>
48
<constant name="MARKER_TYPE_APRIL_TAG" value="4" enum="MarkerType">
49
Marker based on an April Tag.
50
</constant>
51
<constant name="MARKER_TYPE_MAX" value="5" enum="MarkerType">
52
Maximum value for this enum.
53
</constant>
54
</constants>
55
</class>
56
57