Class EXTPlaneDetection
This extension enables applications to detect planes in the scene.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intExtendsXrResult.static final intExtendsXrResult.static final StringThe extension name.static final intThe extension specification version.static final intExtendsXrObjectType.static final intXrPlaneDetectionCapabilityFlagBitsEXT - Feature Flag Bitsstatic final intXrPlaneDetectionCapabilityFlagBitsEXT - Feature Flag Bitsstatic final intXrPlaneDetectionCapabilityFlagBitsEXT - Feature Flag Bitsstatic final intXrPlaneDetectionCapabilityFlagBitsEXT - Feature Flag Bitsstatic final intXrPlaneDetectionCapabilityFlagBitsEXT - Feature Flag Bitsstatic final intXrPlaneDetectionCapabilityFlagBitsEXT - Feature Flag Bitsstatic final intXrPlaneDetectionCapabilityFlagBitsEXT - Feature Flag Bitsstatic final intXrPlaneDetectionStateEXT - Plane Detection Statestatic final intXrPlaneDetectionStateEXT - Plane Detection Statestatic final intXrPlaneDetectionStateEXT - Plane Detection Statestatic final intXrPlaneDetectionStateEXT - Plane Detection Statestatic final intXrPlaneDetectionStateEXT - Plane Detection Statestatic final intXrPlaneDetectorFlagBitsEXT - Plane Detector flagsstatic final intXrPlaneDetectorOrientationEXT - Orientation of the detected plane (upward, downward…)static final intXrPlaneDetectorOrientationEXT - Orientation of the detected plane (upward, downward…)static final intXrPlaneDetectorOrientationEXT - Orientation of the detected plane (upward, downward…)static final intXrPlaneDetectorOrientationEXT - Orientation of the detected plane (upward, downward…)static final intXrPlaneDetectorSemanticTypeEXT - Type of the detected plane (upward, downward…)static final intXrPlaneDetectorSemanticTypeEXT - Type of the detected plane (upward, downward…)static final intXrPlaneDetectorSemanticTypeEXT - Type of the detected plane (upward, downward…)static final intXrPlaneDetectorSemanticTypeEXT - Type of the detected plane (upward, downward…)static final intXrPlaneDetectorSemanticTypeEXT - Type of the detected plane (upward, downward…)static 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 intnxrBeginPlaneDetectionEXT(XrPlaneDetectorEXT planeDetector, long beginInfo) Unsafe version of:BeginPlaneDetectionEXTstatic intnxrCreatePlaneDetectorEXT(XrSession session, long createInfo, long planeDetector) Unsafe version of:CreatePlaneDetectorEXTstatic intnxrGetPlaneDetectionsEXT(XrPlaneDetectorEXT planeDetector, long info, long locations) Unsafe version of:GetPlaneDetectionsEXTstatic intnxrGetPlaneDetectionStateEXT(XrPlaneDetectorEXT planeDetector, long state) Unsafe version of:GetPlaneDetectionStateEXTstatic intnxrGetPlanePolygonBufferEXT(XrPlaneDetectorEXT planeDetector, long planeId, int polygonBufferIndex, long polygonBuffer) Unsafe version of:GetPlanePolygonBufferEXTstatic intxrBeginPlaneDetectionEXT(XrPlaneDetectorEXT planeDetector, XrPlaneDetectorBeginInfoEXT beginInfo) Detect planes.static intxrCreatePlaneDetectorEXT(XrSession session, XrPlaneDetectorCreateInfoEXT createInfo, org.lwjgl.PointerBuffer planeDetector) Create a plane detection handle.static intxrDestroyPlaneDetectorEXT(XrPlaneDetectorEXT planeDetector) Destroy a plane detection handle.static intxrGetPlaneDetectionsEXT(XrPlaneDetectorEXT planeDetector, XrPlaneDetectorGetInfoEXT info, XrPlaneDetectorLocationsEXT locations) Get the detected planes.static intxrGetPlaneDetectionStateEXT(XrPlaneDetectorEXT planeDetector, IntBuffer state) Get the state of the plane detection pass.static intxrGetPlanePolygonBufferEXT(XrPlaneDetectorEXT planeDetector, long planeId, int polygonBufferIndex, XrPlaneDetectorPolygonBufferEXT polygonBuffer) Gets the plane.
-
Field Details
-
XR_EXT_plane_detection_SPEC_VERSION
public static final int XR_EXT_plane_detection_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_EXT_PLANE_DETECTION_EXTENSION_NAME
The extension name.- See Also:
-
XR_ERROR_SPACE_NOT_LOCATABLE_EXT
public static final int XR_ERROR_SPACE_NOT_LOCATABLE_EXTExtendsXrResult.Enum values:
- See Also:
-
XR_ERROR_PLANE_DETECTION_PERMISSION_DENIED_EXT
public static final int XR_ERROR_PLANE_DETECTION_PERMISSION_DENIED_EXTExtendsXrResult.Enum values:
- See Also:
-
XR_OBJECT_TYPE_PLANE_DETECTOR_EXT
public static final int XR_OBJECT_TYPE_PLANE_DETECTOR_EXTExtendsXrObjectType.- See Also:
-
XR_TYPE_PLANE_DETECTOR_CREATE_INFO_EXT
public static final int XR_TYPE_PLANE_DETECTOR_CREATE_INFO_EXTExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_PLANE_DETECTOR_BEGIN_INFO_EXT
public static final int XR_TYPE_PLANE_DETECTOR_BEGIN_INFO_EXTExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_PLANE_DETECTOR_GET_INFO_EXT
public static final int XR_TYPE_PLANE_DETECTOR_GET_INFO_EXTExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_PLANE_DETECTOR_LOCATIONS_EXT
public static final int XR_TYPE_PLANE_DETECTOR_LOCATIONS_EXTExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_PLANE_DETECTOR_LOCATION_EXT
public static final int XR_TYPE_PLANE_DETECTOR_LOCATION_EXTExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_PLANE_DETECTOR_POLYGON_BUFFER_EXT
public static final int XR_TYPE_PLANE_DETECTOR_POLYGON_BUFFER_EXTExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_SYSTEM_PLANE_DETECTION_PROPERTIES_EXT
public static final int XR_TYPE_SYSTEM_PLANE_DETECTION_PROPERTIES_EXTExtendsXrStructureType.Enum values:
- See Also:
-
XR_PLANE_DETECTION_CAPABILITY_PLANE_DETECTION_BIT_EXT
public static final int XR_PLANE_DETECTION_CAPABILITY_PLANE_DETECTION_BIT_EXTXrPlaneDetectionCapabilityFlagBitsEXT - Feature Flag BitsDescription
The flag bits have the following meanings:
Flag Descriptions
PLANE_DETECTION_CAPABILITY_PLANE_DETECTION_BIT_EXT— plane detection is supportedPLANE_DETECTION_CAPABILITY_PLANE_HOLES_BIT_EXT— polygon buffers for holes in planes can be generatedPLANE_DETECTION_CAPABILITY_SEMANTIC_CEILING_BIT_EXT— plane detection supports ceiling semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_FLOOR_BIT_EXT— plane detection supports floor semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_WALL_BIT_EXT— plane detection supports wall semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_PLATFORM_BIT_EXT— plane detection supports platform semantic classification (for example table tops)PLANE_DETECTION_CAPABILITY_ORIENTATION_BIT_EXT— plane detection supports plane orientation classification. If not supported planes are always classified as ARBITRARY.
- See Also:
-
XR_PLANE_DETECTION_CAPABILITY_PLANE_HOLES_BIT_EXT
public static final int XR_PLANE_DETECTION_CAPABILITY_PLANE_HOLES_BIT_EXTXrPlaneDetectionCapabilityFlagBitsEXT - Feature Flag BitsDescription
The flag bits have the following meanings:
Flag Descriptions
PLANE_DETECTION_CAPABILITY_PLANE_DETECTION_BIT_EXT— plane detection is supportedPLANE_DETECTION_CAPABILITY_PLANE_HOLES_BIT_EXT— polygon buffers for holes in planes can be generatedPLANE_DETECTION_CAPABILITY_SEMANTIC_CEILING_BIT_EXT— plane detection supports ceiling semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_FLOOR_BIT_EXT— plane detection supports floor semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_WALL_BIT_EXT— plane detection supports wall semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_PLATFORM_BIT_EXT— plane detection supports platform semantic classification (for example table tops)PLANE_DETECTION_CAPABILITY_ORIENTATION_BIT_EXT— plane detection supports plane orientation classification. If not supported planes are always classified as ARBITRARY.
- See Also:
-
XR_PLANE_DETECTION_CAPABILITY_SEMANTIC_CEILING_BIT_EXT
public static final int XR_PLANE_DETECTION_CAPABILITY_SEMANTIC_CEILING_BIT_EXTXrPlaneDetectionCapabilityFlagBitsEXT - Feature Flag BitsDescription
The flag bits have the following meanings:
Flag Descriptions
PLANE_DETECTION_CAPABILITY_PLANE_DETECTION_BIT_EXT— plane detection is supportedPLANE_DETECTION_CAPABILITY_PLANE_HOLES_BIT_EXT— polygon buffers for holes in planes can be generatedPLANE_DETECTION_CAPABILITY_SEMANTIC_CEILING_BIT_EXT— plane detection supports ceiling semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_FLOOR_BIT_EXT— plane detection supports floor semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_WALL_BIT_EXT— plane detection supports wall semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_PLATFORM_BIT_EXT— plane detection supports platform semantic classification (for example table tops)PLANE_DETECTION_CAPABILITY_ORIENTATION_BIT_EXT— plane detection supports plane orientation classification. If not supported planes are always classified as ARBITRARY.
- See Also:
-
XR_PLANE_DETECTION_CAPABILITY_SEMANTIC_FLOOR_BIT_EXT
public static final int XR_PLANE_DETECTION_CAPABILITY_SEMANTIC_FLOOR_BIT_EXTXrPlaneDetectionCapabilityFlagBitsEXT - Feature Flag BitsDescription
The flag bits have the following meanings:
Flag Descriptions
PLANE_DETECTION_CAPABILITY_PLANE_DETECTION_BIT_EXT— plane detection is supportedPLANE_DETECTION_CAPABILITY_PLANE_HOLES_BIT_EXT— polygon buffers for holes in planes can be generatedPLANE_DETECTION_CAPABILITY_SEMANTIC_CEILING_BIT_EXT— plane detection supports ceiling semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_FLOOR_BIT_EXT— plane detection supports floor semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_WALL_BIT_EXT— plane detection supports wall semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_PLATFORM_BIT_EXT— plane detection supports platform semantic classification (for example table tops)PLANE_DETECTION_CAPABILITY_ORIENTATION_BIT_EXT— plane detection supports plane orientation classification. If not supported planes are always classified as ARBITRARY.
- See Also:
-
XR_PLANE_DETECTION_CAPABILITY_SEMANTIC_WALL_BIT_EXT
public static final int XR_PLANE_DETECTION_CAPABILITY_SEMANTIC_WALL_BIT_EXTXrPlaneDetectionCapabilityFlagBitsEXT - Feature Flag BitsDescription
The flag bits have the following meanings:
Flag Descriptions
PLANE_DETECTION_CAPABILITY_PLANE_DETECTION_BIT_EXT— plane detection is supportedPLANE_DETECTION_CAPABILITY_PLANE_HOLES_BIT_EXT— polygon buffers for holes in planes can be generatedPLANE_DETECTION_CAPABILITY_SEMANTIC_CEILING_BIT_EXT— plane detection supports ceiling semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_FLOOR_BIT_EXT— plane detection supports floor semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_WALL_BIT_EXT— plane detection supports wall semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_PLATFORM_BIT_EXT— plane detection supports platform semantic classification (for example table tops)PLANE_DETECTION_CAPABILITY_ORIENTATION_BIT_EXT— plane detection supports plane orientation classification. If not supported planes are always classified as ARBITRARY.
- See Also:
-
XR_PLANE_DETECTION_CAPABILITY_SEMANTIC_PLATFORM_BIT_EXT
public static final int XR_PLANE_DETECTION_CAPABILITY_SEMANTIC_PLATFORM_BIT_EXTXrPlaneDetectionCapabilityFlagBitsEXT - Feature Flag BitsDescription
The flag bits have the following meanings:
Flag Descriptions
PLANE_DETECTION_CAPABILITY_PLANE_DETECTION_BIT_EXT— plane detection is supportedPLANE_DETECTION_CAPABILITY_PLANE_HOLES_BIT_EXT— polygon buffers for holes in planes can be generatedPLANE_DETECTION_CAPABILITY_SEMANTIC_CEILING_BIT_EXT— plane detection supports ceiling semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_FLOOR_BIT_EXT— plane detection supports floor semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_WALL_BIT_EXT— plane detection supports wall semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_PLATFORM_BIT_EXT— plane detection supports platform semantic classification (for example table tops)PLANE_DETECTION_CAPABILITY_ORIENTATION_BIT_EXT— plane detection supports plane orientation classification. If not supported planes are always classified as ARBITRARY.
- See Also:
-
XR_PLANE_DETECTION_CAPABILITY_ORIENTATION_BIT_EXT
public static final int XR_PLANE_DETECTION_CAPABILITY_ORIENTATION_BIT_EXTXrPlaneDetectionCapabilityFlagBitsEXT - Feature Flag BitsDescription
The flag bits have the following meanings:
Flag Descriptions
PLANE_DETECTION_CAPABILITY_PLANE_DETECTION_BIT_EXT— plane detection is supportedPLANE_DETECTION_CAPABILITY_PLANE_HOLES_BIT_EXT— polygon buffers for holes in planes can be generatedPLANE_DETECTION_CAPABILITY_SEMANTIC_CEILING_BIT_EXT— plane detection supports ceiling semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_FLOOR_BIT_EXT— plane detection supports floor semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_WALL_BIT_EXT— plane detection supports wall semantic classificationPLANE_DETECTION_CAPABILITY_SEMANTIC_PLATFORM_BIT_EXT— plane detection supports platform semantic classification (for example table tops)PLANE_DETECTION_CAPABILITY_ORIENTATION_BIT_EXT— plane detection supports plane orientation classification. If not supported planes are always classified as ARBITRARY.
- See Also:
-
XR_PLANE_DETECTOR_ENABLE_CONTOUR_BIT_EXT
public static final int XR_PLANE_DETECTOR_ENABLE_CONTOUR_BIT_EXTXrPlaneDetectorFlagBitsEXT - Plane Detector flagsDescription
The flag bits have the following meanings:
Flag Descriptions
PLANE_DETECTOR_ENABLE_CONTOUR_BIT_EXT— populate the plane contour information
- See Also:
-
XR_PLANE_DETECTOR_ORIENTATION_HORIZONTAL_UPWARD_EXT
public static final int XR_PLANE_DETECTOR_ORIENTATION_HORIZONTAL_UPWARD_EXTXrPlaneDetectorOrientationEXT - Orientation of the detected plane (upward, downward…)Description
The enums have the following meanings:
Enum Description PLANE_DETECTOR_ORIENTATION_HORIZONTAL_UPWARD_EXTThe detected plane is horizontal and faces upward (e.g. floor). PLANE_DETECTOR_ORIENTATION_HORIZONTAL_DOWNWARD_EXTThe detected plane is horizontal and faces downward (e.g. ceiling). PLANE_DETECTOR_ORIENTATION_VERTICAL_EXTThe detected plane is vertical (e.g. wall). PLANE_DETECTOR_ORIENTATION_ARBITRARY_EXTThe detected plane has an arbitrary, non-vertical and non-horizontal orientation. See Also
XrPlaneDetectorBeginInfoEXT,XrPlaneDetectorLocationEXT,GetPlaneDetectionsEXT- See Also:
-
XR_PLANE_DETECTOR_ORIENTATION_HORIZONTAL_DOWNWARD_EXT
public static final int XR_PLANE_DETECTOR_ORIENTATION_HORIZONTAL_DOWNWARD_EXTXrPlaneDetectorOrientationEXT - Orientation of the detected plane (upward, downward…)Description
The enums have the following meanings:
Enum Description PLANE_DETECTOR_ORIENTATION_HORIZONTAL_UPWARD_EXTThe detected plane is horizontal and faces upward (e.g. floor). PLANE_DETECTOR_ORIENTATION_HORIZONTAL_DOWNWARD_EXTThe detected plane is horizontal and faces downward (e.g. ceiling). PLANE_DETECTOR_ORIENTATION_VERTICAL_EXTThe detected plane is vertical (e.g. wall). PLANE_DETECTOR_ORIENTATION_ARBITRARY_EXTThe detected plane has an arbitrary, non-vertical and non-horizontal orientation. See Also
XrPlaneDetectorBeginInfoEXT,XrPlaneDetectorLocationEXT,GetPlaneDetectionsEXT- See Also:
-
XR_PLANE_DETECTOR_ORIENTATION_VERTICAL_EXT
public static final int XR_PLANE_DETECTOR_ORIENTATION_VERTICAL_EXTXrPlaneDetectorOrientationEXT - Orientation of the detected plane (upward, downward…)Description
The enums have the following meanings:
Enum Description PLANE_DETECTOR_ORIENTATION_HORIZONTAL_UPWARD_EXTThe detected plane is horizontal and faces upward (e.g. floor). PLANE_DETECTOR_ORIENTATION_HORIZONTAL_DOWNWARD_EXTThe detected plane is horizontal and faces downward (e.g. ceiling). PLANE_DETECTOR_ORIENTATION_VERTICAL_EXTThe detected plane is vertical (e.g. wall). PLANE_DETECTOR_ORIENTATION_ARBITRARY_EXTThe detected plane has an arbitrary, non-vertical and non-horizontal orientation. See Also
XrPlaneDetectorBeginInfoEXT,XrPlaneDetectorLocationEXT,GetPlaneDetectionsEXT- See Also:
-
XR_PLANE_DETECTOR_ORIENTATION_ARBITRARY_EXT
public static final int XR_PLANE_DETECTOR_ORIENTATION_ARBITRARY_EXTXrPlaneDetectorOrientationEXT - Orientation of the detected plane (upward, downward…)Description
The enums have the following meanings:
Enum Description PLANE_DETECTOR_ORIENTATION_HORIZONTAL_UPWARD_EXTThe detected plane is horizontal and faces upward (e.g. floor). PLANE_DETECTOR_ORIENTATION_HORIZONTAL_DOWNWARD_EXTThe detected plane is horizontal and faces downward (e.g. ceiling). PLANE_DETECTOR_ORIENTATION_VERTICAL_EXTThe detected plane is vertical (e.g. wall). PLANE_DETECTOR_ORIENTATION_ARBITRARY_EXTThe detected plane has an arbitrary, non-vertical and non-horizontal orientation. See Also
XrPlaneDetectorBeginInfoEXT,XrPlaneDetectorLocationEXT,GetPlaneDetectionsEXT- See Also:
-
XR_PLANE_DETECTOR_SEMANTIC_TYPE_UNDEFINED_EXT
public static final int XR_PLANE_DETECTOR_SEMANTIC_TYPE_UNDEFINED_EXTXrPlaneDetectorSemanticTypeEXT - Type of the detected plane (upward, downward…)Description
The enums have the following meanings:
Enum Description PLANE_DETECTOR_SEMANTIC_TYPE_UNDEFINED_EXTThe runtime was unable to classify this plane. PLANE_DETECTOR_SEMANTIC_TYPE_CEILING_EXTThe detected plane is a ceiling. PLANE_DETECTOR_SEMANTIC_TYPE_FLOOR_EXTThe detected plane is a floor. PLANE_DETECTOR_SEMANTIC_TYPE_WALL_EXTThe detected plane is a wall. PLANE_DETECTOR_SEMANTIC_TYPE_PLATFORM_EXTThe detected plane is a platform, like a table. See Also
XrPlaneDetectorBeginInfoEXT,XrPlaneDetectorLocationEXT,GetPlaneDetectionsEXT- See Also:
-
XR_PLANE_DETECTOR_SEMANTIC_TYPE_CEILING_EXT
public static final int XR_PLANE_DETECTOR_SEMANTIC_TYPE_CEILING_EXTXrPlaneDetectorSemanticTypeEXT - Type of the detected plane (upward, downward…)Description
The enums have the following meanings:
Enum Description PLANE_DETECTOR_SEMANTIC_TYPE_UNDEFINED_EXTThe runtime was unable to classify this plane. PLANE_DETECTOR_SEMANTIC_TYPE_CEILING_EXTThe detected plane is a ceiling. PLANE_DETECTOR_SEMANTIC_TYPE_FLOOR_EXTThe detected plane is a floor. PLANE_DETECTOR_SEMANTIC_TYPE_WALL_EXTThe detected plane is a wall. PLANE_DETECTOR_SEMANTIC_TYPE_PLATFORM_EXTThe detected plane is a platform, like a table. See Also
XrPlaneDetectorBeginInfoEXT,XrPlaneDetectorLocationEXT,GetPlaneDetectionsEXT- See Also:
-
XR_PLANE_DETECTOR_SEMANTIC_TYPE_FLOOR_EXT
public static final int XR_PLANE_DETECTOR_SEMANTIC_TYPE_FLOOR_EXTXrPlaneDetectorSemanticTypeEXT - Type of the detected plane (upward, downward…)Description
The enums have the following meanings:
Enum Description PLANE_DETECTOR_SEMANTIC_TYPE_UNDEFINED_EXTThe runtime was unable to classify this plane. PLANE_DETECTOR_SEMANTIC_TYPE_CEILING_EXTThe detected plane is a ceiling. PLANE_DETECTOR_SEMANTIC_TYPE_FLOOR_EXTThe detected plane is a floor. PLANE_DETECTOR_SEMANTIC_TYPE_WALL_EXTThe detected plane is a wall. PLANE_DETECTOR_SEMANTIC_TYPE_PLATFORM_EXTThe detected plane is a platform, like a table. See Also
XrPlaneDetectorBeginInfoEXT,XrPlaneDetectorLocationEXT,GetPlaneDetectionsEXT- See Also:
-
XR_PLANE_DETECTOR_SEMANTIC_TYPE_WALL_EXT
public static final int XR_PLANE_DETECTOR_SEMANTIC_TYPE_WALL_EXTXrPlaneDetectorSemanticTypeEXT - Type of the detected plane (upward, downward…)Description
The enums have the following meanings:
Enum Description PLANE_DETECTOR_SEMANTIC_TYPE_UNDEFINED_EXTThe runtime was unable to classify this plane. PLANE_DETECTOR_SEMANTIC_TYPE_CEILING_EXTThe detected plane is a ceiling. PLANE_DETECTOR_SEMANTIC_TYPE_FLOOR_EXTThe detected plane is a floor. PLANE_DETECTOR_SEMANTIC_TYPE_WALL_EXTThe detected plane is a wall. PLANE_DETECTOR_SEMANTIC_TYPE_PLATFORM_EXTThe detected plane is a platform, like a table. See Also
XrPlaneDetectorBeginInfoEXT,XrPlaneDetectorLocationEXT,GetPlaneDetectionsEXT- See Also:
-
XR_PLANE_DETECTOR_SEMANTIC_TYPE_PLATFORM_EXT
public static final int XR_PLANE_DETECTOR_SEMANTIC_TYPE_PLATFORM_EXTXrPlaneDetectorSemanticTypeEXT - Type of the detected plane (upward, downward…)Description
The enums have the following meanings:
Enum Description PLANE_DETECTOR_SEMANTIC_TYPE_UNDEFINED_EXTThe runtime was unable to classify this plane. PLANE_DETECTOR_SEMANTIC_TYPE_CEILING_EXTThe detected plane is a ceiling. PLANE_DETECTOR_SEMANTIC_TYPE_FLOOR_EXTThe detected plane is a floor. PLANE_DETECTOR_SEMANTIC_TYPE_WALL_EXTThe detected plane is a wall. PLANE_DETECTOR_SEMANTIC_TYPE_PLATFORM_EXTThe detected plane is a platform, like a table. See Also
XrPlaneDetectorBeginInfoEXT,XrPlaneDetectorLocationEXT,GetPlaneDetectionsEXT- See Also:
-
XR_PLANE_DETECTION_STATE_NONE_EXT
public static final int XR_PLANE_DETECTION_STATE_NONE_EXTXrPlaneDetectionStateEXT - Plane Detection StateEnumerant Descriptions
PLANE_DETECTION_STATE_NONE_EXT- The plane detector is not actively looking for planes; callBeginPlaneDetectionEXTto start detection.PLANE_DETECTION_STATE_PENDING_EXT- This plane detector is currently looking for planes but not yet ready with results; callGetPlaneDetectionsEXTagain, or callBeginPlaneDetectionEXTto restart with new filter parameters.PLANE_DETECTION_STATE_DONE_EXT- This plane detector has finished and results may now be retrieved. The results are valid untilBeginPlaneDetectionEXTorDestroyPlaneDetectorEXTare called.PLANE_DETECTION_STATE_ERROR_EXT- An error occurred. The query may be tried again.PLANE_DETECTION_STATE_FATAL_EXT- An error occurred. The query must not be tried again.
See Also
- See Also:
-
XR_PLANE_DETECTION_STATE_PENDING_EXT
public static final int XR_PLANE_DETECTION_STATE_PENDING_EXTXrPlaneDetectionStateEXT - Plane Detection StateEnumerant Descriptions
PLANE_DETECTION_STATE_NONE_EXT- The plane detector is not actively looking for planes; callBeginPlaneDetectionEXTto start detection.PLANE_DETECTION_STATE_PENDING_EXT- This plane detector is currently looking for planes but not yet ready with results; callGetPlaneDetectionsEXTagain, or callBeginPlaneDetectionEXTto restart with new filter parameters.PLANE_DETECTION_STATE_DONE_EXT- This plane detector has finished and results may now be retrieved. The results are valid untilBeginPlaneDetectionEXTorDestroyPlaneDetectorEXTare called.PLANE_DETECTION_STATE_ERROR_EXT- An error occurred. The query may be tried again.PLANE_DETECTION_STATE_FATAL_EXT- An error occurred. The query must not be tried again.
See Also
- See Also:
-
XR_PLANE_DETECTION_STATE_DONE_EXT
public static final int XR_PLANE_DETECTION_STATE_DONE_EXTXrPlaneDetectionStateEXT - Plane Detection StateEnumerant Descriptions
PLANE_DETECTION_STATE_NONE_EXT- The plane detector is not actively looking for planes; callBeginPlaneDetectionEXTto start detection.PLANE_DETECTION_STATE_PENDING_EXT- This plane detector is currently looking for planes but not yet ready with results; callGetPlaneDetectionsEXTagain, or callBeginPlaneDetectionEXTto restart with new filter parameters.PLANE_DETECTION_STATE_DONE_EXT- This plane detector has finished and results may now be retrieved. The results are valid untilBeginPlaneDetectionEXTorDestroyPlaneDetectorEXTare called.PLANE_DETECTION_STATE_ERROR_EXT- An error occurred. The query may be tried again.PLANE_DETECTION_STATE_FATAL_EXT- An error occurred. The query must not be tried again.
See Also
- See Also:
-
XR_PLANE_DETECTION_STATE_ERROR_EXT
public static final int XR_PLANE_DETECTION_STATE_ERROR_EXTXrPlaneDetectionStateEXT - Plane Detection StateEnumerant Descriptions
PLANE_DETECTION_STATE_NONE_EXT- The plane detector is not actively looking for planes; callBeginPlaneDetectionEXTto start detection.PLANE_DETECTION_STATE_PENDING_EXT- This plane detector is currently looking for planes but not yet ready with results; callGetPlaneDetectionsEXTagain, or callBeginPlaneDetectionEXTto restart with new filter parameters.PLANE_DETECTION_STATE_DONE_EXT- This plane detector has finished and results may now be retrieved. The results are valid untilBeginPlaneDetectionEXTorDestroyPlaneDetectorEXTare called.PLANE_DETECTION_STATE_ERROR_EXT- An error occurred. The query may be tried again.PLANE_DETECTION_STATE_FATAL_EXT- An error occurred. The query must not be tried again.
See Also
- See Also:
-
XR_PLANE_DETECTION_STATE_FATAL_EXT
public static final int XR_PLANE_DETECTION_STATE_FATAL_EXTXrPlaneDetectionStateEXT - Plane Detection StateEnumerant Descriptions
PLANE_DETECTION_STATE_NONE_EXT- The plane detector is not actively looking for planes; callBeginPlaneDetectionEXTto start detection.PLANE_DETECTION_STATE_PENDING_EXT- This plane detector is currently looking for planes but not yet ready with results; callGetPlaneDetectionsEXTagain, or callBeginPlaneDetectionEXTto restart with new filter parameters.PLANE_DETECTION_STATE_DONE_EXT- This plane detector has finished and results may now be retrieved. The results are valid untilBeginPlaneDetectionEXTorDestroyPlaneDetectorEXTare called.PLANE_DETECTION_STATE_ERROR_EXT- An error occurred. The query may be tried again.PLANE_DETECTION_STATE_FATAL_EXT- An error occurred. The query must not be tried again.
See Also
- See Also:
-
-
Method Details
-
nxrCreatePlaneDetectorEXT
Unsafe version of:CreatePlaneDetectorEXT -
xrCreatePlaneDetectorEXT
public static int xrCreatePlaneDetectorEXT(XrSession session, XrPlaneDetectorCreateInfoEXT createInfo, org.lwjgl.PointerBuffer planeDetector) Create a plane detection handle.C Specification
The
CreatePlaneDetectorEXTfunction is defined as:XrResult xrCreatePlaneDetectorEXT( XrSession session, const XrPlaneDetectorCreateInfoEXT* createInfo, XrPlaneDetectorEXT* planeDetector);Description
An application creates an
XrPlaneDetectorEXThandle usingCreatePlaneDetectorEXTfunction.If the system does not support plane detection, the runtime must return
ERROR_FEATURE_UNSUPPORTEDfromCreatePlaneDetectorEXT.Valid Usage (Implicit)
- The
XR_EXT_plane_detectionextension must be enabled prior to callingCreatePlaneDetectorEXT sessionmust be a validXrSessionhandlecreateInfomust be a pointer to a validXrPlaneDetectorCreateInfoEXTstructureplaneDetectormust be a pointer to anXrPlaneDetectorEXThandle
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
XrPlaneDetectorCreateInfoEXT,BeginPlaneDetectionEXT,DestroyPlaneDetectorEXT- Parameters:
session- anXrSessionin which the plane detection will be active.createInfo- theXrPlaneDetectorCreateInfoEXTused to specify the plane detection.planeDetector- the returnedXrPlaneDetectorEXThandle.
- The
-
xrDestroyPlaneDetectorEXT
Destroy a plane detection handle.C Specification
The
DestroyPlaneDetectorEXTfunction is defined as:XrResult xrDestroyPlaneDetectorEXT( XrPlaneDetectorEXT planeDetector);Description
DestroyPlaneDetectorEXTfunction releases theplaneDetectorand the underlying resources when finished with plane detection experiences.Valid Usage (Implicit)
- The
XR_EXT_plane_detectionextension must be enabled prior to callingDestroyPlaneDetectorEXT planeDetectormust be a validXrPlaneDetectorEXThandle
Thread Safety
- Access to
planeDetector, and any child handles, must be externally synchronized
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
planeDetector- anXrPlaneDetectorEXTpreviously created byCreatePlaneDetectorEXT.
- The
-
nxrBeginPlaneDetectionEXT
Unsafe version of:BeginPlaneDetectionEXT -
xrBeginPlaneDetectionEXT
public static int xrBeginPlaneDetectionEXT(XrPlaneDetectorEXT planeDetector, XrPlaneDetectorBeginInfoEXT beginInfo) Detect planes.C Specification
The
BeginPlaneDetectionEXTfunction is defined as:XrResult xrBeginPlaneDetectionEXT( XrPlaneDetectorEXT planeDetector, const XrPlaneDetectorBeginInfoEXT* beginInfo);Description
The
BeginPlaneDetectionEXTfunction begins the detection of planes in the scene. Detecting planes in a scene is an asynchronous operation.GetPlaneDetectionStateEXTcan be used to determine if the query has finished. Once it has finished the results may be retrieved viaGetPlaneDetectionsEXT. If a detection has already been started on a plane detector handle, callingBeginPlaneDetectionEXTagain on the same handle will cancel the operation in progress and start a new detection with the new filter parameters.The bounding volume is resolved and fixed relative to LOCAL space at the time of the call to
BeginPlaneDetectionEXTusingXrPlaneDetectorBeginInfoEXT::baseSpace,XrPlaneDetectorBeginInfoEXT::time,XrPlaneDetectorBeginInfoEXT::boundingBoxPoseandXrPlaneDetectorBeginInfoEXT::boundingBoxExtent. The runtime must resolve the location defined byXrPlaneDetectorBeginInfoEXT::baseSpaceat the time of the call. TheXrPlaneDetectorBeginInfoEXT::boundingBoxPoseis the pose of the center of the box defined byXrPlaneDetectorBeginInfoEXT::boundingBoxExtent.The runtime must return
ERROR_SPACE_NOT_LOCATABLE_EXTif theXrPlaneDetectorBeginInfoEXT::baseSpaceis not locatable at the time of the call.Valid Usage (Implicit)
- The
XR_EXT_plane_detectionextension must be enabled prior to callingBeginPlaneDetectionEXT planeDetectormust be a validXrPlaneDetectorEXThandlebeginInfomust be a pointer to a validXrPlaneDetectorBeginInfoEXTstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
XrPlaneDetectorBeginInfoEXT,XrPlaneDetectorGetInfoEXT,GetPlaneDetectionsEXT- Parameters:
planeDetector- anXrPlaneDetectorEXTpreviously created byCreatePlaneDetectorEXT.beginInfo- a pointer toXrPlaneDetectorBeginInfoEXTcontaining plane detection parameters.
- The
-
nxrGetPlaneDetectionStateEXT
Unsafe version of:GetPlaneDetectionStateEXT -
xrGetPlaneDetectionStateEXT
Get the state of the plane detection pass.C Specification
The
GetPlaneDetectionStateEXTfunction is defined as:XrResult xrGetPlaneDetectionStateEXT( XrPlaneDetectorEXT planeDetector, XrPlaneDetectionStateEXT* state);Description
The
GetPlaneDetectionStateEXTfunction retrieves the state of the plane query and must be called before callingGetPlaneDetectionsEXT.If the plane detection has not yet finished
statemust bePLANE_DETECTION_STATE_PENDING_EXT. If the plane detection has finishedstatemust bePLANE_DETECTION_STATE_DONE_EXT. If no plane detection was previously startedPLANE_DETECTION_STATE_NONE_EXTmust be returned. For all three states the function must returnSUCCESS.When a query error occurs the function must return
SUCCESSand the appropriate error state value must be set.Valid Usage (Implicit)
- The
XR_EXT_plane_detectionextension must be enabled prior to callingGetPlaneDetectionStateEXT planeDetectormust be a validXrPlaneDetectorEXThandlestatemust be a pointer to anXrPlaneDetectionStateEXTvalue
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
planeDetector- anXrPlaneDetectorEXTpreviously created byCreatePlaneDetectorEXT.state- a pointer toXrPlaneDetectionStateEXT.
- The
-
nxrGetPlaneDetectionsEXT
public static int nxrGetPlaneDetectionsEXT(XrPlaneDetectorEXT planeDetector, long info, long locations) Unsafe version of:GetPlaneDetectionsEXT -
xrGetPlaneDetectionsEXT
public static int xrGetPlaneDetectionsEXT(XrPlaneDetectorEXT planeDetector, XrPlaneDetectorGetInfoEXT info, XrPlaneDetectorLocationsEXT locations) Get the detected planes.C Specification
The
GetPlaneDetectionsEXTfunction is defined as:XrResult xrGetPlaneDetectionsEXT( XrPlaneDetectorEXT planeDetector, const XrPlaneDetectorGetInfoEXT* info, XrPlaneDetectorLocationsEXT* locations);Description
GetPlaneDetectionsEXTmust returnERROR_CALL_ORDER_INVALIDif the detector state reported byGetPlaneDetectionStateEXTis notPLANE_DETECTION_STATE_DONE_EXTfor the current query started byBeginPlaneDetectionEXT.If the
XrPlaneDetectorGetInfoEXT::baseSpace is not locatableERROR_SPACE_NOT_LOCATABLE_EXTmust be returned.Once
BeginPlaneDetectionEXTis called again, the previous results for that handle are no longer available. The application should cache them before callingBeginPlaneDetectionEXTagain if it needs access to that data while waiting for updated detection results.Upon the completion of a detection cycle (
BeginPlaneDetectionEXT,GetPlaneDetectionStateEXTtoGetPlaneDetectionsEXT) the runtime must keep a snapshot of the plane data and no data may be modified. CallingGetPlaneDetectionsEXTmultiple times with the same baseSpace and time must return the same plane pose data.The current snapshot, if any, must be discarded upon calling
BeginPlaneDetectionEXT.If the
XrEventDataReferenceSpaceChangePendingis queued and the changeTime elapsed while the application is holding cached data the application may use the event data to adjusted poses accordingly.Valid Usage (Implicit)
- The
XR_EXT_plane_detectionextension must be enabled prior to callingGetPlaneDetectionsEXT planeDetectormust be a validXrPlaneDetectorEXThandleinfomust be a pointer to a validXrPlaneDetectorGetInfoEXTstructurelocationsmust be a pointer to anXrPlaneDetectorLocationsEXTstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
XrPlaneDetectorGetInfoEXT,XrPlaneDetectorLocationsEXT,BeginPlaneDetectionEXT- Parameters:
planeDetector- anXrPlaneDetectorEXTpreviously created byCreatePlaneDetectorEXT.info- a pointer toXrPlaneDetectorGetInfoEXT.locations- a pointer toXrPlaneDetectorLocationsEXTreceiving the returned plane locations.
- The
-
nxrGetPlanePolygonBufferEXT
public static int nxrGetPlanePolygonBufferEXT(XrPlaneDetectorEXT planeDetector, long planeId, int polygonBufferIndex, long polygonBuffer) Unsafe version of:GetPlanePolygonBufferEXT -
xrGetPlanePolygonBufferEXT
public static int xrGetPlanePolygonBufferEXT(XrPlaneDetectorEXT planeDetector, long planeId, int polygonBufferIndex, XrPlaneDetectorPolygonBufferEXT polygonBuffer) Gets the plane.C Specification
The
GetPlanePolygonBufferEXTfunction is defined as:XrResult xrGetPlanePolygonBufferEXT( XrPlaneDetectorEXT planeDetector, uint64_t planeId, uint32_t polygonBufferIndex, XrPlaneDetectorPolygonBufferEXT* polygonBuffer);Description
The
GetPlanePolygonBufferEXTfunction retrieves the plane’s polygon buffer for the givenplaneIdandpolygonBufferIndex. CallingGetPlanePolygonBufferEXTwithpolygonBufferIndexequal to 0 must return the outside contour, if available. Calls with non-zero indices less thanXrPlaneDetectorLocationEXT::polygonBufferCountmust return polygons corresponding to holes in the plane. This feature may not be supported by all runtimes, check theXrSystemPlaneDetectionPropertiesEXT::supportedFeaturesfor support.Outside contour polygon vertices must be ordered in counter clockwise order. Vertices of holes must be ordered in clockwise order. The right-hand rule is used to determine the direction of the normal of this plane. The polygon contour data is relative to the pose of the plane and coplanar with it.
This function only retrieves polygons, which means that it needs to be converted to a regular mesh to be rendered.
Valid Usage (Implicit)
- The
XR_EXT_plane_detectionextension must be enabled prior to callingGetPlanePolygonBufferEXT planeDetectormust be a validXrPlaneDetectorEXThandlepolygonBuffermust be a pointer to anXrPlaneDetectorPolygonBufferEXTstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
planeDetector- anXrPlaneDetectorEXTpreviously created byCreatePlaneDetectorEXT.planeId- theXrPlaneDetectorLocationEXT::planeId.polygonBufferIndex- the index of the polygon contour buffer to retrieve. This must be a number from 0 toXrPlaneDetectorLocationEXT:polygonBufferCount -1. Index 0 retrieves the outside contour, larger indexes retrieve holes in the plane.polygonBuffer- a pointer toXrPlaneDetectorPolygonBufferEXTreceiving the returned plane polygon buffer.
- The
-