SLProject  4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SENSiOSARKit.h
Go to the documentation of this file.
1 #ifndef SENS_IOSARKIT_H
2 #define SENS_IOSARKIT_H
3 
4 #include <SENSARBaseCamera.h>
6 #import <simd/simd.h>
7 
9 {
10 public:
11  SENSiOSARKit();
13 
14  bool init(unsigned int textureId = 0, bool retrieveCpuImg = false, int targetWidth = -1) override;
15  bool isReady() override;
16  bool resume() override;
17  void reset() override;
18  void pause() override;
19  bool update(cv::Mat& pose) override;
20  bool isAvailable() override { return _available; };
21  bool isInstalled() override { return _available; };
22  bool install() override { return _available; };
23 
24  const SENSCameraConfig& start(std::string deviceId,
25  const SENSCameraStreamConfig& streamConfig,
26  bool provideIntrinsics) override;
27  // from camera (does nothing in this case, because we have no image callbacks but we update arcore and the frame actively
28  void stop() override { _started = false; };
29 
30  const SENSCaptureProps& captureProperties() override;
31 
32 private:
34  bool _available = false;
36 };
37 
38 #endif
Provides interface for the AR frameworks such as ARKit and ARCore.
std::atomic< bool > _started
flags if camera was started
Definition: SENSCamera.h:217
void retrieveCaptureProperties()
Definition: SENSiOSARKit.mm:75
bool install() override
Definition: SENSiOSARKit.h:22
bool resume() override
Definition: SENSiOSARKit.mm:24
bool update(cv::Mat &pose) override
Definition: SENSiOSARKit.mm:54
bool isInstalled() override
Definition: SENSiOSARKit.h:21
bool isAvailable() override
Definition: SENSiOSARKit.h:20
bool init(unsigned int textureId=0, bool retrieveCpuImg=false, int targetWidth=-1) override
Definition: SENSiOSARKit.mm:9
const SENSCaptureProps & captureProperties() override
Get SENSCaptureProps which contains necessary information about all available camera devices and thei...
void pause() override
Definition: SENSiOSARKit.mm:45
void stop() override
Stop a started camera device.
Definition: SENSiOSARKit.h:28
const SENSCameraConfig & start(std::string deviceId, const SENSCameraStreamConfig &streamConfig, bool provideIntrinsics) override
bool isReady() override
Definition: SENSiOSARKit.mm:19
SENSiOSARCoreDelegate * _arcoreDelegate
Definition: SENSiOSARKit.h:35
void reset() override
Definition: SENSiOSARKit.mm:39