SLProject  4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SENSiOSARKitDelegate.h
Go to the documentation of this file.
1 #ifndef SENS_IOSARKIT_DELEGATE_H
2 #define SENS_IOSARKIT_DELEGATE_H
3 
4 #import <ARKit/ARKit.h>
5 #import <simd/simd.h>
6 #include <SENSCamera.h>
7 
8 @interface SENSiOSARCoreDelegate : NSObject<ARSessionDelegate>
9 
10 - (BOOL)isAvailable;
11 
12 - (BOOL)run;
13 - (void)pause;
14 - (BOOL)reset;
15 
16 - (void)latestFrame:(cv::Mat*)pose
17  withImg:(cv::Mat*)imgBGR
18  AndIntrinsic:(cv::Mat*)intrinsic
19  AndImgWidth:(int*)w
20  AndImgHeight:(int*)h
21  IsTracking:(BOOL*)isTracking
22  WithPointClout:(cv::Mat*)pc;
23 - (void)initARKit;
24 
25 //pose, yPlane, uvPlane, width, height, intrinsic
26 @property (nonatomic, assign) std::function<void(simd_float4x4*, uint8_t*, uint8_t*, size_t, size_t, simd_float3x3*, bool isTracking)> updateCB;
27 @property (nonatomic, assign) std::function<void(simd_float4x4* camPose, cv::Mat imgBGR, simd_float3x3* camMat3x3)> updateBgrCB;
28 @end
29 
30 #endif
typedef void(SL_STDCALL *cbOnImGuiBuild)(SLScene *s
Callback function typedef for ImGui build function.
std::function< void(simd_float4x4 *camPose, cv::Mat imgBGR, simd_float3x3 *camMat3x3)> updateBgrCB
std::function< void(simd_float4x4 *, uint8_t *, uint8_t *, size_t, size_t, simd_float3x3 *, bool isTracking)> updateCB
int run(Config config)
App::run implementation from App.h for the Emscripten platform.
Definition: AppAndroid.cpp:78