Skip to content
0.2.0-dev Download ZIP
54 lines ·3.1 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="OpenXRSpatialPlaneTrackingCapability" inherits="OpenXRExtensionWrapper" api_type="core" experimental="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
3 <brief_description>
4 Implementation for handling spatial entity plane tracking logic.
5 </brief_description>
6 <description>
7 This class handles the OpenXR plane tracking spatial entity extension.
8 </description>
9 <tutorials>
10 </tutorials>
11 <methods>
12 <method name="get_built_in_tracking_state">
13 <return type="int" enum="OpenXRSpatialEntityExtension.TrackingState" />
14 <description>
15 Returns the state of the built-in tracking system.
16 </description>
17 </method>
18 <method name="is_supported">
19 <return type="bool" />
20 <description>
21 Returns [code]true[/code] if plane tracking is supported by the current device.
22 </description>
23 </method>
24 <method name="start_built_in_tracking">
25 <return type="bool" />
26 <description>
27 Starts the built-in plane tracking logic. This will fail if built-in tracking is already enabled.
28 </description>
29 </method>
30 <method name="start_entity_discovery">
31 <return type="OpenXRFutureResult" />
32 <param index="0" name="spatial_context" type="RID" />
33 <param index="1" name="component_data" type="OpenXRSpatialComponentData[]" />
34 <param index="2" name="next_snapshot_create" type="OpenXRStructureBase" default="null" />
35 <param index="3" name="next_snapshot_query" type="OpenXRStructureBase" default="null" />
36 <param index="4" name="user_callback" type="Callable" default="Callable()" />
37 <description>
38 Calls [method OpenXRSpatialEntityExtension.discover_spatial_entities] and [method OpenXRSpatialEntityExtension.query_snapshot] with the plane entities associated with [param spatial_context].
39 [param component_data] are the [OpenXRSpatialComponentData]s to discover for this plane capability.
40 If [param next_snapshot_create] is non-null, then pass this to the [code]next[/code] parameter in [method OpenXRSpatialEntityExtension.discover_spatial_entities].
41 If [param next_snapshot_query] is non-null, then pass this to the [code]next[/code] parameter in [method OpenXRSpatialEntityExtension.query_snapshot].
42 [param user_callback], when non-null, is called with two parameters usually twice. The first parameter is the [RID] of the discovery snapshot and the second parameter is a boolean where [code]false[/code] indicates the discovery snapshot is about to be processed, and [code]true[/code] indicates the discovery snapshot has been processed and [param component_data] has valid data. The second call is skipped if an error was encountered.
43 The returned [OpenXRFutureResult] is identical to the return from [method OpenXRSpatialEntityExtension.discover_spatial_entities].
44 </description>
45 </method>
46 <method name="stop_built_in_tracking">
47 <return type="void" />
48 <param index="0" name="clear_trackers" type="bool" default="true" />
49 <description>
50 Stops the built-in plane tracking logic.
51 </description>
52 </method>
53 </methods>
54</class>