OpenXRSpatialCapabilityConfigurationPlaneTracking
Inherits: OpenXRSpatialCapabilityConfigurationBaseHeader < Shared < Object
Configuration header for plane tracking.
Description
Section titled “Description”Configuration header for plane tracking. Pass this to OpenXRSpatialEntityExtension.create_spatial_context() to create a spatial context with plane tracking capabilities.
Methods
Section titled “Methods”| Returns | Method |
|---|---|
[]int | get_enabled_components() |
| bool | supports_labels() |
| bool | supports_mesh_2d() |
| bool | supports_polygons() |
Method descriptions
Section titled “Method descriptions”get_enabled_components
Section titled “get_enabled_components”[]int get_enabled_components() const
Returns the components enabled by this configuration.
Note: Only valid after this configuration was used to create a spatial context.
supports_labels
Section titled “supports_labels”bool supports_labels()
Returns true if we support the plane semantic label component (only valid after the OpenXR session has started). You can query these using the OpenXRSpatialComponentPlaneSemanticLabelList data object.
supports_mesh_2d
Section titled “supports_mesh_2d”bool supports_mesh_2d()
Returns true if we support the mesh 2D component (only valid after the OpenXR session has started). You can query these using the OpenXRSpatialComponentMesh2DList data object.
supports_polygons
Section titled “supports_polygons”bool supports_polygons()
Returns true if we support the polygon 2D component (only valid after the OpenXR session has started). You can query these using the OpenXRSpatialComponentPolygon2DList data object.