Class VARJOMarkerTracking
- java.lang.Object
-
- org.lwjgl.openxr.VARJOMarkerTracking
-
public class VARJOMarkerTracking extends java.lang.ObjectThe VARJO_marker_tracking extension.
-
-
Field Summary
Fields Modifier and Type Field Description static intXR_ERROR_MARKER_ID_INVALID_VARJO
XR_ERROR_MARKER_NOT_TRACKED_VARJOExtendsXrResult.static intXR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO
XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO
XR_TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJOExtendsXrStructureType.static java.lang.StringXR_VARJO_MARKER_TRACKING_EXTENSION_NAMEThe extension name.static intXR_VARJO_marker_tracking_SPEC_VERSIONThe extension specification version.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnxrCreateMarkerSpaceVARJO(XrSession session, long createInfo, long space)Unsafe version of:CreateMarkerSpaceVARJOstatic intnxrGetMarkerSizeVARJO(XrSession session, long markerId, long size)Unsafe version of:GetMarkerSizeVARJOstatic intxrCreateMarkerSpaceVARJO(XrSession session, XrMarkerSpaceCreateInfoVARJO createInfo, org.lwjgl.PointerBuffer space)Creates marker space.static intxrGetMarkerSizeVARJO(XrSession session, long markerId, XrExtent2Df size)Gets physical size of marker.static intxrSetMarkerTrackingPredictionVARJO(XrSession session, long markerId, boolean enabled)Sets marker tracking with prediction.static intxrSetMarkerTrackingTimeoutVARJO(XrSession session, long markerId, long timeout)Sets marker lifetime duration.static intxrSetMarkerTrackingVARJO(XrSession session, boolean enabled)Enables marker tracking.
-
-
-
Field Detail
-
XR_VARJO_marker_tracking_SPEC_VERSION
The extension specification version.
-
XR_VARJO_MARKER_TRACKING_EXTENSION_NAME
The extension name.
-
XR_TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO, XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO, XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO
ExtendsXrStructureType.Enum values:
-
-
Method Detail
-
xrSetMarkerTrackingVARJO
public static int xrSetMarkerTrackingVARJO(XrSession session, boolean enabled)
Enables marker tracking.C Specification
The
SetMarkerTrackingVARJOfunction is defined as:XrResult xrSetMarkerTrackingVARJO( XrSession session, XrBool32 enabled);Description
The
SetMarkerTrackingVARJOfunction enables or disables marker tracking functionality. As soon as feature is become disabled all trackable markers become inactive and corresponding events will be generated. An application may call any of the functions in this extension regardless if the marker tracking functionality is enabled or disabled.Valid Usage (Implicit)
- The
XR_VARJO_marker_trackingextension must be enabled prior to callingSetMarkerTrackingVARJO sessionmust be a validXrSessionhandle
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
session- anXrSessionhandle previously created withCreateSession.enabled- the flag to enable or disable marker tracking.
- The
-
xrSetMarkerTrackingTimeoutVARJO
public static int xrSetMarkerTrackingTimeoutVARJO(XrSession session, long markerId, long timeout)
Sets marker lifetime duration.C Specification
The
SetMarkerTrackingTimeoutVARJOfunction is defined as:XrResult xrSetMarkerTrackingTimeoutVARJO( XrSession session, uint64_t markerId, XrDuration timeout);Description
The
SetMarkerTrackingTimeoutVARJOfunction sets a desired lifetime duration for a specified marker. The default value isNO_DURATION. Negative value will be clamped toNO_DURATION. It defines the time period during which the runtime must keep returning poses of previously tracked markers. The tracking may be lost if the marker went outside of the trackable field of view. In this case the runtime still will try to predict marker’s pose for the timeout period. The runtime must returnERROR_MARKER_ID_INVALID_VARJOif the suppliedmarkerIdis invalid.Valid Usage (Implicit)
- The
XR_VARJO_marker_trackingextension must be enabled prior to callingSetMarkerTrackingTimeoutVARJO sessionmust be a validXrSessionhandle
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
session- anXrSessionhandle previously created withCreateSession.markerId- the unique identifier of the marker for which the timeout will be updated.timeout- the desired lifetime duration for a specified marker.
- The
-
xrSetMarkerTrackingPredictionVARJO
public static int xrSetMarkerTrackingPredictionVARJO(XrSession session, long markerId, boolean enabled)
Sets marker tracking with prediction.C Specification
The
SetMarkerTrackingPredictionVARJOfunction is defined as:XrResult xrSetMarkerTrackingPredictionVARJO( XrSession session, uint64_t markerId, XrBool32 enabled);Description
The
SetMarkerTrackingPredictionVARJOfunction enables or disables the prediction feature for a specified marker. By default, markers are created with disabled prediction. This works well for markers that are supposed to be stationary. The prediction can be used to improve tracking of movable markers. The runtime must returnERROR_MARKER_ID_INVALID_VARJOif the suppliedmarkerIdis invalid.Valid Usage (Implicit)
- The
XR_VARJO_marker_trackingextension must be enabled prior to callingSetMarkerTrackingPredictionVARJO sessionmust be a validXrSessionhandle
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
session- anXrSessionhandle previously created withCreateSession.markerId- the unique identifier of the marker which should be tracked with prediction.
- The
-
nxrGetMarkerSizeVARJO
public static int nxrGetMarkerSizeVARJO(XrSession session, long markerId, long size)
Unsafe version of:GetMarkerSizeVARJO
-
xrGetMarkerSizeVARJO
public static int xrGetMarkerSizeVARJO(XrSession session, long markerId, XrExtent2Df size)
Gets physical size of marker.C Specification
The
GetMarkerSizeVARJOfunction is defined as:XrResult xrGetMarkerSizeVARJO( XrSession session, uint64_t markerId, XrExtent2Df* size);Description
The
GetMarkerSizeVARJOfunction retrieves the height and width of an active marker. The runtime must returnERROR_MARKER_NOT_TRACKED_VARJOif marker tracking functionality is disabled or the marker with givenmarkerIdis inactive. The runtime must returnERROR_MARKER_ID_INVALID_VARJOif the suppliedmarkerIdis invalid.Valid Usage (Implicit)
- The
XR_VARJO_marker_trackingextension must be enabled prior to callingGetMarkerSizeVARJO sessionmust be a validXrSessionhandlesizemust be a pointer to anXrExtent2Dfstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- anXrSessionhandle previously created withCreateSession.markerId- the unique identifier of the marker for which size is requested.size- pointer to the size to populate by the runtime with the physical size of plane marker in meters.
- The
-
nxrCreateMarkerSpaceVARJO
public static int nxrCreateMarkerSpaceVARJO(XrSession session, long createInfo, long space)
Unsafe version of:CreateMarkerSpaceVARJO
-
xrCreateMarkerSpaceVARJO
public static int xrCreateMarkerSpaceVARJO(XrSession session, XrMarkerSpaceCreateInfoVARJO createInfo, org.lwjgl.PointerBuffer space)
Creates marker space.C Specification
The
CreateMarkerSpaceVARJOfunction is defined as:XrResult xrCreateMarkerSpaceVARJO( XrSession session, const XrMarkerSpaceCreateInfoVARJO* createInfo, XrSpace* space);Description
The
CreateMarkerSpaceVARJOfunction creates markerXrSpacefor pose relative to the marker specified inXrMarkerSpaceCreateInfoVARJO. The runtime must returnERROR_MARKER_ID_INVALID_VARJOif the suppliedmarkerIdis invalid.Valid Usage (Implicit)
- The
XR_VARJO_marker_trackingextension must be enabled prior to callingCreateMarkerSpaceVARJO sessionmust be a validXrSessionhandlecreateInfomust be a pointer to a validXrMarkerSpaceCreateInfoVARJOstructurespacemust be a pointer to anXrSpacehandle
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- anXrSessionhandle previously created withCreateSession.createInfo- the structure containing information about how to create the space based on marker.space- a pointer to a handle in which the createdXrSpaceis returned.
- The
-
-