:github_url: hide .. _class_OpenXRSpatialComponentData: OpenXRSpatialComponentData ========================== **Experimental:** This class may be changed or removed in future versions. **Hereda:** :ref:`RefCounted` **<** :ref:`Object` **Heredado por:** :ref:`OpenXRSpatialComponentAnchorList`, :ref:`OpenXRSpatialComponentBounded2DList`, :ref:`OpenXRSpatialComponentBounded3DList`, :ref:`OpenXRSpatialComponentMarkerList`, :ref:`OpenXRSpatialComponentMesh2DList`, :ref:`OpenXRSpatialComponentMesh3DList`, :ref:`OpenXRSpatialComponentParentList`, :ref:`OpenXRSpatialComponentPersistenceList`, :ref:`OpenXRSpatialComponentPlaneAlignmentList`, :ref:`OpenXRSpatialComponentPlaneSemanticLabelList`, :ref:`OpenXRSpatialComponentPolygon2DList`, :ref:`OpenXRSpatialQueryResultData` Object for storing OpenXR spatial entity component data. .. rst-class:: classref-introduction-group Descripción ---------------------- Object for storing OpenXR spatial entity component data. .. rst-class:: classref-reftable-group Métodos -------------- .. table:: :widths: auto +-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_get_component_type`\ (\ ) |virtual| |const| | +-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`_get_structure_data`\ (\ next\: :ref:`int`\ ) |virtual| |const| | +-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_set_capacity`\ (\ capacity\: :ref:`int`\ ) |virtual| | +-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_capacity`\ (\ capacity\: :ref:`int`\ ) | +-----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Descripciones de Métodos ------------------------------------------------ .. _class_OpenXRSpatialComponentData_private_method__get_component_type: .. rst-class:: classref-method :ref:`int` **_get_component_type**\ (\ ) |virtual| |const| :ref:`🔗` Return the component type for the component we store data for. .. rst-class:: classref-item-separator ---- .. _class_OpenXRSpatialComponentData_private_method__get_structure_data: .. rst-class:: classref-method :ref:`int` **_get_structure_data**\ (\ next\: :ref:`int`\ ) |virtual| |const| :ref:`🔗` Return a pointer to the structure data that will be submitted along with the snapshot query. This pointer must remain valid as long as this object is instantiated. .. rst-class:: classref-item-separator ---- .. _class_OpenXRSpatialComponentData_private_method__set_capacity: .. rst-class:: classref-method |void| **_set_capacity**\ (\ capacity\: :ref:`int`\ ) |virtual| :ref:`🔗` Set the expected capacity as provided by the spatial entities query system. Buffers should be initialized with the correct storage. .. rst-class:: classref-item-separator ---- .. _class_OpenXRSpatialComponentData_method_set_capacity: .. rst-class:: classref-method |void| **set_capacity**\ (\ capacity\: :ref:`int`\ ) :ref:`🔗` Set the expected capacity as provided by the spatial entities query system. Buffers should be initialized with the correct storage. .. |virtual| replace:: :abbr:`virtual (Normalmente, este método debería ser sobreescrito por el usuario para que tenga algún efecto.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (Este método no tiene efectos secundarios. No modifica ninguna de las variables miembro de la instancia.)` .. |vararg| replace:: :abbr:`vararg (Este método permite agregar cualquier número de argumentos después de los descritos aquí.)` .. |constructor| replace:: :abbr:`constructor (Este método se utiliza para construir un tipo.)` .. |static| replace:: :abbr:`static (Este método no necesita una instancia para ser llamado, por lo que puede llamarse directamente utilizando el nombre de la clase.)` .. |operator| replace:: :abbr:`operator (Este método describe un operador válido para usar con este tipo como operando izquierdo.)` .. |bitfield| replace:: :abbr:`BitField (Este valor es un entero compuesto como una máscara de bits de las siguientes banderas.)` .. |void| replace:: :abbr:`void (Sin valor de retorno.)`