class_openxrspatialcomponentmarkerlist.rst 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/modules/openxr/doc_classes/OpenXRSpatialComponentMarkerList.xml.
  6. .. _class_OpenXRSpatialComponentMarkerList:
  7. OpenXRSpatialComponentMarkerList
  8. ================================
  9. **Experimental:** This class may be changed or removed in future versions.
  10. **Inherits:** :ref:`OpenXRSpatialComponentData<class_OpenXRSpatialComponentData>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  11. Object for storing the queries marker result data.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. Object for storing the queries marker result data when calling :ref:`OpenXRSpatialEntityExtension.query_snapshot()<class_OpenXRSpatialEntityExtension_method_query_snapshot>`.
  16. .. rst-class:: classref-reftable-group
  17. Methods
  18. -------
  19. .. table::
  20. :widths: auto
  21. +---------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`Variant<class_Variant>` | :ref:`get_marker_data<class_OpenXRSpatialComponentMarkerList_method_get_marker_data>`\ (\ snapshot\: :ref:`RID<class_RID>`, index\: :ref:`int<class_int>`\ ) |const| |
  23. +---------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`int<class_int>` | :ref:`get_marker_id<class_OpenXRSpatialComponentMarkerList_method_get_marker_id>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  25. +---------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`MarkerType<enum_OpenXRSpatialComponentMarkerList_MarkerType>` | :ref:`get_marker_type<class_OpenXRSpatialComponentMarkerList_method_get_marker_type>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  27. +---------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. .. rst-class:: classref-section-separator
  29. ----
  30. .. rst-class:: classref-descriptions-group
  31. Enumerations
  32. ------------
  33. .. _enum_OpenXRSpatialComponentMarkerList_MarkerType:
  34. .. rst-class:: classref-enumeration
  35. enum **MarkerType**: :ref:`🔗<enum_OpenXRSpatialComponentMarkerList_MarkerType>`
  36. .. _class_OpenXRSpatialComponentMarkerList_constant_MARKER_TYPE_UNKNOWN:
  37. .. rst-class:: classref-enumeration-constant
  38. :ref:`MarkerType<enum_OpenXRSpatialComponentMarkerList_MarkerType>` **MARKER_TYPE_UNKNOWN** = ``0``
  39. Unknown or unset marker type.
  40. .. _class_OpenXRSpatialComponentMarkerList_constant_MARKER_TYPE_QRCODE:
  41. .. rst-class:: classref-enumeration-constant
  42. :ref:`MarkerType<enum_OpenXRSpatialComponentMarkerList_MarkerType>` **MARKER_TYPE_QRCODE** = ``1``
  43. Marker based on a QR code.
  44. .. _class_OpenXRSpatialComponentMarkerList_constant_MARKER_TYPE_MICRO_QRCODE:
  45. .. rst-class:: classref-enumeration-constant
  46. :ref:`MarkerType<enum_OpenXRSpatialComponentMarkerList_MarkerType>` **MARKER_TYPE_MICRO_QRCODE** = ``2``
  47. Marker based on a micro QR code.
  48. .. _class_OpenXRSpatialComponentMarkerList_constant_MARKER_TYPE_ARUCO:
  49. .. rst-class:: classref-enumeration-constant
  50. :ref:`MarkerType<enum_OpenXRSpatialComponentMarkerList_MarkerType>` **MARKER_TYPE_ARUCO** = ``3``
  51. Marker based on an Aruco code.
  52. .. _class_OpenXRSpatialComponentMarkerList_constant_MARKER_TYPE_APRIL_TAG:
  53. .. rst-class:: classref-enumeration-constant
  54. :ref:`MarkerType<enum_OpenXRSpatialComponentMarkerList_MarkerType>` **MARKER_TYPE_APRIL_TAG** = ``4``
  55. Marker based on an April Tag.
  56. .. _class_OpenXRSpatialComponentMarkerList_constant_MARKER_TYPE_MAX:
  57. .. rst-class:: classref-enumeration-constant
  58. :ref:`MarkerType<enum_OpenXRSpatialComponentMarkerList_MarkerType>` **MARKER_TYPE_MAX** = ``5``
  59. Maximum value for this enum.
  60. .. rst-class:: classref-section-separator
  61. ----
  62. .. rst-class:: classref-descriptions-group
  63. Method Descriptions
  64. -------------------
  65. .. _class_OpenXRSpatialComponentMarkerList_method_get_marker_data:
  66. .. rst-class:: classref-method
  67. :ref:`Variant<class_Variant>` **get_marker_data**\ (\ snapshot\: :ref:`RID<class_RID>`, index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_OpenXRSpatialComponentMarkerList_method_get_marker_data>`
  68. Returns either a :ref:`String<class_String>` or a :ref:`PackedByteArray<class_PackedByteArray>` buffer with data for the marker at this ``index``. Only applicable for QR code markers.
  69. .. rst-class:: classref-item-separator
  70. ----
  71. .. _class_OpenXRSpatialComponentMarkerList_method_get_marker_id:
  72. .. rst-class:: classref-method
  73. :ref:`int<class_int>` **get_marker_id**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_OpenXRSpatialComponentMarkerList_method_get_marker_id>`
  74. Returns the marker ID for the marker at this ``index``. Only applicable for Aruco or April Tag markers.
  75. .. rst-class:: classref-item-separator
  76. ----
  77. .. _class_OpenXRSpatialComponentMarkerList_method_get_marker_type:
  78. .. rst-class:: classref-method
  79. :ref:`MarkerType<enum_OpenXRSpatialComponentMarkerList_MarkerType>` **get_marker_type**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_OpenXRSpatialComponentMarkerList_method_get_marker_type>`
  80. Returns the marker type for the marker at this ``index``.
  81. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  82. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  83. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  84. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  85. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  86. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  87. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  88. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  89. .. |void| replace:: :abbr:`void (No return value.)`