0.2.0-dev Download ZIP
80 lines ·3.3 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="OpenXRSpatialEntityTracker" inherits="XRPositionalTracker" api_type="core" experimental="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd"> |
| 3 | <brief_description> |
| 4 | Base class for Positional trackers managed by OpenXR's spatial entity extensions. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | These are trackers created and managed by OpenXR's spatial entity extensions that give access to specific data related to OpenXR's spatial entities. They will always be of type [code]TRACKER_ANCHOR[/code]. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | </tutorials> |
| 11 | <methods> |
| 12 | <method name="add_next"> |
| 13 | <return type="void" /> |
| 14 | <param index="0" name="next" type="OpenXRStructureBase" /> |
| 15 | <description> |
| 16 | Adds a new [OpenXRStructureBase] to the next-chain. |
| 17 | [method get_next] will return this [param next] until either [method add_next] is called again or it's removed in [method remove_next]. |
| 18 | </description> |
| 19 | </method> |
| 20 | <method name="get_next" qualifiers="const"> |
| 21 | <return type="OpenXRStructureBase" /> |
| 22 | <description> |
| 23 | Gets the head [OpenXRStructureBase] in the next-chain. |
| 24 | See also [method add_next] and [method remove_next]. |
| 25 | </description> |
| 26 | </method> |
| 27 | <method name="get_spatial_context" qualifiers="const"> |
| 28 | <return type="RID" /> |
| 29 | <description> |
| 30 | Gets the spatial context used to create this [OpenXRSpatialEntityTracker]. |
| 31 | </description> |
| 32 | </method> |
| 33 | <method name="remove_next"> |
| 34 | <return type="void" /> |
| 35 | <param index="0" name="next" type="OpenXRStructureBase" /> |
| 36 | <description> |
| 37 | Removes a [param next] object previously added in [method add_next] from the next-chain. |
| 38 | </description> |
| 39 | </method> |
| 40 | <method name="set_spatial_context"> |
| 41 | <return type="void" /> |
| 42 | <param index="0" name="spatial_context" type="RID" /> |
| 43 | <description> |
| 44 | Sets the spatial context used to create this tracker. |
| 45 | </description> |
| 46 | </method> |
| 47 | </methods> |
| 48 | <members> |
| 49 | <member name="entity" type="RID" setter="set_entity" getter="get_entity" default="RID()"> |
| 50 | The spatial entity associated with this tracker. |
| 51 | </member> |
| 52 | <member name="spatial_tracking_state" type="int" setter="set_spatial_tracking_state" getter="get_spatial_tracking_state" enum="OpenXRSpatialEntityTracker.EntityTrackingState" default="2"> |
| 53 | The spatial tracking state for this tracker. |
| 54 | </member> |
| 55 | <member name="type" type="int" setter="set_tracker_type" getter="get_tracker_type" overrides="XRTracker" enum="XRServer.TrackerType" default="8" /> |
| 56 | </members> |
| 57 | <signals> |
| 58 | <signal name="next_changed"> |
| 59 | <description> |
| 60 | Emitted when the next-chain changes, from either [method add_next] or [method remove_next]. |
| 61 | </description> |
| 62 | </signal> |
| 63 | <signal name="spatial_tracking_state_changed"> |
| 64 | <param index="0" name="spatial_tracking_state" type="int" /> |
| 65 | <description> |
| 66 | </description> |
| 67 | </signal> |
| 68 | </signals> |
| 69 | <constants> |
| 70 | <constant name="ENTITY_TRACKING_STATE_STOPPED" value="1" enum="EntityTrackingState"> |
| 71 | This anchor has stopped tracking. |
| 72 | </constant> |
| 73 | <constant name="ENTITY_TRACKING_STATE_PAUSED" value="2" enum="EntityTrackingState"> |
| 74 | Tracking is currently paused. |
| 75 | </constant> |
| 76 | <constant name="ENTITY_TRACKING_STATE_TRACKING" value="3" enum="EntityTrackingState"> |
| 77 | This anchor is currently being tracked. |
| 78 | </constant> |
| 79 | </constants> |
| 80 | </class> |