Class FBSpatialEntityQuery
This extension enables an application to discover persistent spatial entities in the area and restore them. Using the query system, the application can load persistent spatial entities from storage. The query system consists of a set of filters to define the spatial entity search query and an operation that needs to be performed on the search results.
In order to enable the functionality of this extension, you must pass the name of the extension into CreateInstance via the XrInstanceCreateInfo::enabledExtensionNames parameter as indicated in the extension section.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intXrSpaceQueryActionFB - Type of query being performedstatic final intXrSpaceStorageLocationFB - Storage location to persist spatial entitiesstatic final intXrSpaceStorageLocationFB - Storage location to persist spatial entitiesstatic final intXrSpaceStorageLocationFB - Storage location to persist spatial entitiesstatic final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrQuerySpacesFB(XrSession session, long info, long requestId) Unsafe version of:QuerySpacesFBstatic intnxrRetrieveSpaceQueryResultsFB(XrSession session, long requestId, long results) Unsafe version of:RetrieveSpaceQueryResultsFBstatic intxrQuerySpacesFB(XrSession session, XrSpaceQueryInfoBaseHeaderFB info, LongBuffer requestId) Queries for spatial entities.static intxrRetrieveSpaceQueryResultsFB(XrSession session, long requestId, XrSpaceQueryResultsFB results) Copies query results into an output buffer.
-
Field Details
-
XR_FB_spatial_entity_query_SPEC_VERSION
public static final int XR_FB_spatial_entity_query_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_FB_SPATIAL_ENTITY_QUERY_EXTENSION_NAME
The extension name.- See Also:
-
XR_TYPE_SPACE_QUERY_INFO_FB
public static final int XR_TYPE_SPACE_QUERY_INFO_FBExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_SPACE_QUERY_RESULTS_FB
public static final int XR_TYPE_SPACE_QUERY_RESULTS_FBExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB
public static final int XR_TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FBExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_SPACE_UUID_FILTER_INFO_FB
public static final int XR_TYPE_SPACE_UUID_FILTER_INFO_FBExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_SPACE_COMPONENT_FILTER_INFO_FB
public static final int XR_TYPE_SPACE_COMPONENT_FILTER_INFO_FBExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB
public static final int XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FBExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB
public static final int XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FBExtendsXrStructureType.Enum values:
- See Also:
-
XR_SPACE_QUERY_ACTION_LOAD_FB
public static final int XR_SPACE_QUERY_ACTION_LOAD_FBXrSpaceQueryActionFB - Type of query being performedDescription
Specify the type of query being performed.
Enumerant Descriptions
SPACE_QUERY_ACTION_LOAD_FB— Tells the query to perform a load operation on anyXrSpacereturned by the query.
See Also
- See Also:
-
XR_SPACE_STORAGE_LOCATION_INVALID_FB
public static final int XR_SPACE_STORAGE_LOCATION_INVALID_FBXrSpaceStorageLocationFB - Storage location to persist spatial entitiesDescription
The
XrSpaceStorageLocationFBenumeration contains the storage locations used to store, erase, and query spatial entities.Enumerant Descriptions
SPACE_STORAGE_LOCATION_INVALID_FB— Invalid storage locationSPACE_STORAGE_LOCATION_LOCAL_FB— Local device storageSPACE_STORAGE_LOCATION_CLOUD_FB— Cloud storage
See Also
XrEventDataSpaceEraseCompleteFB,XrEventDataSpaceSaveCompleteFB,XrSpaceEraseInfoFB,XrSpaceListSaveInfoFB,XrSpaceSaveInfoFB,XrSpaceStorageLocationFilterInfoFB- See Also:
-
XR_SPACE_STORAGE_LOCATION_LOCAL_FB
public static final int XR_SPACE_STORAGE_LOCATION_LOCAL_FBXrSpaceStorageLocationFB - Storage location to persist spatial entitiesDescription
The
XrSpaceStorageLocationFBenumeration contains the storage locations used to store, erase, and query spatial entities.Enumerant Descriptions
SPACE_STORAGE_LOCATION_INVALID_FB— Invalid storage locationSPACE_STORAGE_LOCATION_LOCAL_FB— Local device storageSPACE_STORAGE_LOCATION_CLOUD_FB— Cloud storage
See Also
XrEventDataSpaceEraseCompleteFB,XrEventDataSpaceSaveCompleteFB,XrSpaceEraseInfoFB,XrSpaceListSaveInfoFB,XrSpaceSaveInfoFB,XrSpaceStorageLocationFilterInfoFB- See Also:
-
XR_SPACE_STORAGE_LOCATION_CLOUD_FB
public static final int XR_SPACE_STORAGE_LOCATION_CLOUD_FBXrSpaceStorageLocationFB - Storage location to persist spatial entitiesDescription
The
XrSpaceStorageLocationFBenumeration contains the storage locations used to store, erase, and query spatial entities.Enumerant Descriptions
SPACE_STORAGE_LOCATION_INVALID_FB— Invalid storage locationSPACE_STORAGE_LOCATION_LOCAL_FB— Local device storageSPACE_STORAGE_LOCATION_CLOUD_FB— Cloud storage
See Also
XrEventDataSpaceEraseCompleteFB,XrEventDataSpaceSaveCompleteFB,XrSpaceEraseInfoFB,XrSpaceListSaveInfoFB,XrSpaceSaveInfoFB,XrSpaceStorageLocationFilterInfoFB- See Also:
-
-
Method Details
-
nxrQuerySpacesFB
Unsafe version of:QuerySpacesFB -
xrQuerySpacesFB
public static int xrQuerySpacesFB(XrSession session, XrSpaceQueryInfoBaseHeaderFB info, LongBuffer requestId) Queries for spatial entities.C Specification
The
QuerySpacesFBfunction is defined as:XrResult xrQuerySpacesFB( XrSession session, const XrSpaceQueryInfoBaseHeaderFB* info, XrAsyncRequestIdFB* requestId);Description
The
QuerySpacesFBfunction enables an application to find and retrieve spatial entities from storage. Cast anXrSpaceQueryInfoFBpointer to aXrSpaceQueryInfoBaseHeaderFBpointer to pass asinfo. The application should keep the returnedrequestIdfor the duration of the request as it is used to refer to the request when callingRetrieveSpaceQueryResultsFBand is used to map completion events to the request. This operation is asynchronous and the runtime must post anXrEventDataSpaceQueryCompleteFBevent when the operation completes successfully or encounters an error. If this function returns a failure code, no event is posted. The runtime must post anXrEventDataSpaceQueryResultsAvailableFBbeforeXrEventDataSpaceQueryCompleteFBif any results are found. Once anXrEventDataSpaceQueryResultsAvailableFBevent has been posted, the application may callRetrieveSpaceQueryResultsFBto retrieve the available results.Valid Usage (Implicit)
- The
XR_FB_spatial_entity_queryextension must be enabled prior to callingQuerySpacesFB sessionmust be a validXrSessionhandleinfomust be a pointer to a validXrSpaceQueryInfoBaseHeaderFB-based structure. See also:XrSpaceQueryInfoFBrequestIdmust be a pointer to anXrAsyncRequestIdFBvalue
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- a handle to anXrSession.info- a pointer to theXrSpaceQueryInfoBaseHeaderFBstructure.requestId- an output parameter, and the variable it points to will be populated with the ID of this asynchronous request.
- The
-
nxrRetrieveSpaceQueryResultsFB
Unsafe version of:RetrieveSpaceQueryResultsFB -
xrRetrieveSpaceQueryResultsFB
public static int xrRetrieveSpaceQueryResultsFB(XrSession session, long requestId, XrSpaceQueryResultsFB results) Copies query results into an output buffer.C Specification
The
RetrieveSpaceQueryResultsFBfunction is defined as:XrResult xrRetrieveSpaceQueryResultsFB( XrSession session, XrAsyncRequestIdFB requestId, XrSpaceQueryResultsFB* results);Description
Allows an application to retrieve all available results for a specified query. Call this function once to get the number of results found and then once more to copy the results into a buffer provided by the application. The number of results will not change between the two calls used to retrieve results. This function must only retrieve each query result once. After the application has used this function to retrieve a query result, the runtime frees its copy. The runtime must return
ERROR_VALIDATION_FAILUREifrequestIdrefers to a request that is not yet complete, a request for which results have already been retrieved, or ifrequestIddoes not refer to a known request.Valid Usage (Implicit)
- The
XR_FB_spatial_entity_queryextension must be enabled prior to callingRetrieveSpaceQueryResultsFB sessionmust be a validXrSessionhandleresultsmust be a pointer to anXrSpaceQueryResultsFBstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- theXrSessionfor which the in-progress query is valid.requestId- theXrAsyncRequestIdFBto enumerate results for.results- a pointer to anXrSpaceQueryResultsFBto populate with results.
- The
-