Monado OpenXR Runtime
xrt_plane_detector.h File Reference

Header defining planes detector enum and structs. More...

#include "xrt/xrt_defines.h"
#include "xrt/xrt_limits.h"
#include <stdlib.h>
#include <string.h>
Include dependency graph for xrt_plane_detector.h:

Go to the source code of this file.

Data Structures

struct  xrt_plane_detector_begin_info_ext
 A query for a plane. More...
 
struct  xrt_plane_detector_location_ext
 Location and other info for a plane. More...
 
struct  xrt_plane_polygon_info_ext
 Helper struct to pair up metadata for one polygon. More...
 
struct  xrt_plane_detections_ext
 Each plane has n polygons; ultimately plane metadata from locations and vetices is reconstructed. More...
 

Enumerations

enum  xrt_plane_detection_capability_flags_ext {
  XRT_PLANE_DETECTION_CAPABILITY_PLANE_DETECTION_BIT_EXT = 0x00000001 , XRT_PLANE_DETECTION_CAPABILITY_PLANE_HOLES_BIT_EXT = 0x00000002 , XRT_PLANE_DETECTION_CAPABILITY_SEMANTIC_CEILING_BIT_EXT = 0x00000004 , XRT_PLANE_DETECTION_CAPABILITY_SEMANTIC_FLOOR_BIT_EXT = 0x00000008 ,
  XRT_PLANE_DETECTION_CAPABILITY_SEMANTIC_WALL_BIT_EXT = 0x00000010 , XRT_PLANE_DETECTION_CAPABILITY_SEMANTIC_PLATFORM_BIT_EXT = 0x00000020 , XRT_PLANE_DETECTION_CAPABILITY_ORIENTATION_BIT_EXT = 0x00000040
}
 Caps for a plane detector, see xrt_device. More...
 
enum  xrt_plane_detector_flags_ext { XRT_PLANE_DETECTOR_FLAGS_CONTOUR_EXT = 1 }
 Flags used when running plane detection. More...
 
enum  xrt_plane_detector_orientation_ext { XRT_PLANE_DETECTOR_ORIENTATION_HORIZONTAL_UPWARD_EXT = 0 , XRT_PLANE_DETECTOR_ORIENTATION_HORIZONTAL_DOWNWARD_EXT = 1 , XRT_PLANE_DETECTOR_ORIENTATION_VERTICAL_EXT = 2 , XRT_PLANE_DETECTOR_ORIENTATION_ARBITRARY_EXT = 3 }
 Orientation of a plane. More...
 
enum  xrt_plane_detector_semantic_type_ext {
  XRT_PLANE_DETECTOR_SEMANTIC_TYPE_UNDEFINED_EXT = 0 , XRT_PLANE_DETECTOR_SEMANTIC_TYPE_CEILING_EXT = 1 , XRT_PLANE_DETECTOR_SEMANTIC_TYPE_FLOOR_EXT = 2 , XRT_PLANE_DETECTOR_SEMANTIC_TYPE_WALL_EXT = 3 ,
  XRT_PLANE_DETECTOR_SEMANTIC_TYPE_PLATFORM_EXT = 4
}
 Has this plane any semantic meaning? More...
 
enum  xrt_plane_detector_state_ext {
  XRT_PLANE_DETECTOR_STATE_NONE_EXT = 0 , XRT_PLANE_DETECTOR_STATE_PENDING_EXT = 1 , XRT_PLANE_DETECTOR_STATE_DONE_EXT = 2 , XRT_PLANE_DETECTOR_STATE_ERROR_EXT = 3 ,
  XRT_PLANE_DETECTOR_STATE_FATAL_EXT = 4
}
 State of a plane detector, see xrt_device. More...
 

Functions

static void xrt_plane_detections_ext_clear (struct xrt_plane_detections_ext *detections)
 Small helper to free any data of a xrt_plane_detections_ext struct, does not free the struct itself. More...
 

Detailed Description

Header defining planes detector enum and structs.

Author
Christoph Haag chris.nosp@m.toph.nosp@m..haag.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m