class_openxrinteractionprofile.rst 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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/OpenXRInteractionProfile.xml.
  6. .. _class_OpenXRInteractionProfile:
  7. OpenXRInteractionProfile
  8. ========================
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Suggested bindings object for OpenXR.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This object stores suggested bindings for an interaction profile. Interaction profiles define the metadata for a tracked XR device such as an XR controller.
  15. For more information see the `interaction profiles info in the OpenXR specification <https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#semantic-path-interaction-profiles>`__.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +-----------------------------+---------------------------------------------------------------------------------------------------+--------+
  22. | :ref:`Array<class_Array>` | :ref:`binding_modifiers<class_OpenXRInteractionProfile_property_binding_modifiers>` | ``[]`` |
  23. +-----------------------------+---------------------------------------------------------------------------------------------------+--------+
  24. | :ref:`Array<class_Array>` | :ref:`bindings<class_OpenXRInteractionProfile_property_bindings>` | ``[]`` |
  25. +-----------------------------+---------------------------------------------------------------------------------------------------+--------+
  26. | :ref:`String<class_String>` | :ref:`interaction_profile_path<class_OpenXRInteractionProfile_property_interaction_profile_path>` | ``""`` |
  27. +-----------------------------+---------------------------------------------------------------------------------------------------+--------+
  28. .. rst-class:: classref-reftable-group
  29. Methods
  30. -------
  31. .. table::
  32. :widths: auto
  33. +---------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  34. | :ref:`OpenXRIPBinding<class_OpenXRIPBinding>` | :ref:`get_binding<class_OpenXRInteractionProfile_method_get_binding>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  35. +---------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  36. | :ref:`int<class_int>` | :ref:`get_binding_count<class_OpenXRInteractionProfile_method_get_binding_count>`\ (\ ) |const| |
  37. +---------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  38. | :ref:`OpenXRIPBindingModifier<class_OpenXRIPBindingModifier>` | :ref:`get_binding_modifier<class_OpenXRInteractionProfile_method_get_binding_modifier>`\ (\ index\: :ref:`int<class_int>`\ ) |const| |
  39. +---------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  40. | :ref:`int<class_int>` | :ref:`get_binding_modifier_count<class_OpenXRInteractionProfile_method_get_binding_modifier_count>`\ (\ ) |const| |
  41. +---------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+
  42. .. rst-class:: classref-section-separator
  43. ----
  44. .. rst-class:: classref-descriptions-group
  45. Property Descriptions
  46. ---------------------
  47. .. _class_OpenXRInteractionProfile_property_binding_modifiers:
  48. .. rst-class:: classref-property
  49. :ref:`Array<class_Array>` **binding_modifiers** = ``[]`` :ref:`🔗<class_OpenXRInteractionProfile_property_binding_modifiers>`
  50. .. rst-class:: classref-property-setget
  51. - |void| **set_binding_modifiers**\ (\ value\: :ref:`Array<class_Array>`\ )
  52. - :ref:`Array<class_Array>` **get_binding_modifiers**\ (\ )
  53. Binding modifiers for this interaction profile.
  54. .. rst-class:: classref-item-separator
  55. ----
  56. .. _class_OpenXRInteractionProfile_property_bindings:
  57. .. rst-class:: classref-property
  58. :ref:`Array<class_Array>` **bindings** = ``[]`` :ref:`🔗<class_OpenXRInteractionProfile_property_bindings>`
  59. .. rst-class:: classref-property-setget
  60. - |void| **set_bindings**\ (\ value\: :ref:`Array<class_Array>`\ )
  61. - :ref:`Array<class_Array>` **get_bindings**\ (\ )
  62. Action bindings for this interaction profile.
  63. .. rst-class:: classref-item-separator
  64. ----
  65. .. _class_OpenXRInteractionProfile_property_interaction_profile_path:
  66. .. rst-class:: classref-property
  67. :ref:`String<class_String>` **interaction_profile_path** = ``""`` :ref:`🔗<class_OpenXRInteractionProfile_property_interaction_profile_path>`
  68. .. rst-class:: classref-property-setget
  69. - |void| **set_interaction_profile_path**\ (\ value\: :ref:`String<class_String>`\ )
  70. - :ref:`String<class_String>` **get_interaction_profile_path**\ (\ )
  71. The interaction profile path identifying the XR device.
  72. .. rst-class:: classref-section-separator
  73. ----
  74. .. rst-class:: classref-descriptions-group
  75. Method Descriptions
  76. -------------------
  77. .. _class_OpenXRInteractionProfile_method_get_binding:
  78. .. rst-class:: classref-method
  79. :ref:`OpenXRIPBinding<class_OpenXRIPBinding>` **get_binding**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_OpenXRInteractionProfile_method_get_binding>`
  80. Retrieve the binding at this index.
  81. .. rst-class:: classref-item-separator
  82. ----
  83. .. _class_OpenXRInteractionProfile_method_get_binding_count:
  84. .. rst-class:: classref-method
  85. :ref:`int<class_int>` **get_binding_count**\ (\ ) |const| :ref:`🔗<class_OpenXRInteractionProfile_method_get_binding_count>`
  86. Get the number of bindings in this interaction profile.
  87. .. rst-class:: classref-item-separator
  88. ----
  89. .. _class_OpenXRInteractionProfile_method_get_binding_modifier:
  90. .. rst-class:: classref-method
  91. :ref:`OpenXRIPBindingModifier<class_OpenXRIPBindingModifier>` **get_binding_modifier**\ (\ index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_OpenXRInteractionProfile_method_get_binding_modifier>`
  92. Get the :ref:`OpenXRBindingModifier<class_OpenXRBindingModifier>` at this index.
  93. .. rst-class:: classref-item-separator
  94. ----
  95. .. _class_OpenXRInteractionProfile_method_get_binding_modifier_count:
  96. .. rst-class:: classref-method
  97. :ref:`int<class_int>` **get_binding_modifier_count**\ (\ ) |const| :ref:`🔗<class_OpenXRInteractionProfile_method_get_binding_modifier_count>`
  98. Get the number of binding modifiers in this interaction profile.
  99. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  100. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  101. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  102. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  103. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  104. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  105. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  106. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  107. .. |void| replace:: :abbr:`void (No return value.)`