![]() |
SLProject
4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
#include <SENSAndroidARCore.h>
Public Member Functions | |
| SENSAndroidARCore (JavaVM *jvm, JNIEnv *env, jobject context, jobject activity, std::string appName, std::string writableDir) | |
| ~SENSAndroidARCore () | |
| bool | init (unsigned int textureId=0, bool retrieveCpuImg=false, int targetWidth=-1) override |
| bool | init (JNIEnv *env, void *context, void *activity) |
| bool | isReady () override |
| bool | resume () override |
| void | reset () override |
| void | pause () override |
| bool | update (cv::Mat &pose) override |
| void | lightComponentIntensity (float *components) override |
| bool | checkAvailability (JNIEnv *env, void *context, void *activity) |
| bool | isAvailable () override |
| bool | checkInstalled (JNIEnv *env, void *context, void *activity) |
| bool | isInstalled () override |
| bool | askInstall (JNIEnv *env, void *context, void *activity) |
| bool | install () override |
| bool | installRefused () override |
| void | installRefused (bool b) override |
| const SENSCameraConfig & | start (std::string deviceId, const SENSCameraStreamConfig &streamConfig, bool provideIntrinsics) override |
| This function is needed to correctly use arcore as a camera in SENSCVCamera. More... | |
| void | stop () override |
| Stop a started camera device. More... | |
| const SENSCaptureProps & | captureProperties () override |
| Get SENSCaptureProps which contains necessary information about all available camera devices and their capabilities. More... | |
Public Member Functions inherited from SENSARBaseCamera | |
| SENSARBaseCamera () | |
| virtual | ~SENSARBaseCamera () |
| bool | isRunning () |
| void | fetchPointCloud (bool s) |
| cv::Mat | pointCloud () |
| cv::Size | inputFrameSize () |
| cv::Size | cpuFrameSize () |
Public Member Functions inherited from SENSBaseCamera | |
| SENSFrameBasePtr | latestFrame () override |
| Get the latest captured frame. If no frame was captured the frame will be empty (null). More... | |
| const SENSCameraConfig & | config () const override |
| defines how the camera was configured during start More... | |
| void | registerListener (SENSCameraListener *listener) override |
| void | unregisterListener (SENSCameraListener *listener) override |
| bool | started () const override |
| bool | permissionGranted () const override |
| void | setPermissionGranted () override |
Public Member Functions inherited from SENSCamera | |
| virtual | ~SENSCamera () |
Private Member Functions | |
| void | doFetchPointCloud () |
| cv::Mat | convertToYuv (ArImage *arImage) |
| void | updateCamera (cv::Mat &intrinsics) |
| void | retrieveCaptureProperties () |
Private Attributes | |
| ArSession * | _arSession = nullptr |
| ArFrame * | _arFrame = nullptr |
| bool | _waitInit = false |
| bool | _available = false |
| bool | _installed = false |
| bool | _installRefused = false |
| GLuint | _fbo = 0 |
| GLuint | _pbo = 0 |
| GLuint | _cameraTextureId |
| float | _envLightI [3] |
| JavaVM * | _jvm |
| std::string | _appName |
| std::string | _writableDir |
| SENSGLTextureReader * | _texImgReader = nullptr |
| float | _fx = 0.f |
| float | _fy = 0.f |
| float | _cx = 0.f |
| float | _cy = 0.f |
Additional Inherited Members | |
Protected Member Functions inherited from SENSBaseCamera | |
| void | updateFrame (cv::Mat bgrImg, cv::Mat intrinsics, int width, int height, bool intrinsicsChanged) |
| void | processStart () |
| call from start function to do startup preprocessing More... | |
Protected Attributes inherited from SENSARBaseCamera | |
| bool | _running = false |
| bool | _pause = true |
| int | _inputFrameW = 0 |
| int | _inputFrameH = 0 |
| bool | _retrieveCpuImg = false |
| int | _cpuImgTargetWidth = -1 |
| int | _cpuImgTargetHeight = -1 |
| bool | _fetchPointCloud = false |
| cv::Mat | _pointCloud |
Protected Attributes inherited from SENSBaseCamera | |
| SENSCaptureProps | _captureProperties |
| std::atomic< bool > | _started {false} |
| flags if camera was started More... | |
| SENSCameraConfig | _config |
| indicates what is currently running More... | |
| std::atomic< bool > | _permissionGranted {false} |
| std::vector< SENSCameraListener * > | _listeners |
| std::mutex | _listenerMutex |
| SENSFrameBasePtr | _frame |
| current frame More... | |
| std::mutex | _frameMutex |
Definition at line 23 of file SENSAndroidARCore.h.
| SENSAndroidARCore::SENSAndroidARCore | ( | JavaVM * | jvm, |
| JNIEnv * | env, | ||
| jobject | context, | ||
| jobject | activity, | ||
| std::string | appName, | ||
| std::string | writableDir | ||
| ) |
Definition at line 19 of file SENSAndroidARCore.cpp.
| SENSAndroidARCore::~SENSAndroidARCore | ( | ) |
Definition at line 117 of file SENSAndroidARCore.cpp.
Definition at line 92 of file SENSAndroidARCore.cpp.
|
overridevirtual |
Get SENSCaptureProps which contains necessary information about all available camera devices and their capabilities.
Implements SENSCamera.
Definition at line 487 of file SENSAndroidARCore.cpp.
Definition at line 34 of file SENSAndroidARCore.cpp.
Definition at line 69 of file SENSAndroidARCore.cpp.
|
private |
Definition at line 385 of file SENSAndroidARCore.cpp.
|
private |
Definition at line 536 of file SENSAndroidARCore.cpp.
Definition at line 164 of file SENSAndroidARCore.cpp.
|
overridevirtual |
Implements SENSARBaseCamera.
Definition at line 139 of file SENSAndroidARCore.cpp.
|
overridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
|
overridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
|
overridevirtual |
Implements SENSARBaseCamera.
Definition at line 428 of file SENSAndroidARCore.cpp.
|
overridevirtual |
|
overridevirtual |
|
private |
Definition at line 439 of file SENSAndroidARCore.cpp.
|
overridevirtual |
This function is needed to correctly use arcore as a camera in SENSCVCamera.
This function does not really start the camera as for the arcore implementation, the frame gets only updated with a call to arcore::update.
Implements SENSCamera.
Definition at line 499 of file SENSAndroidARCore.cpp.
|
inlineoverridevirtual |
Stop a started camera device.
Implements SENSCamera.
Definition at line 58 of file SENSAndroidARCore.h.
|
overridevirtual |
Returns true if in tracking state. If correctly initialized, it will update the camera frame that may be retrieved with latestFrame()
Reimplemented from SENSARBaseCamera.
Definition at line 252 of file SENSAndroidARCore.cpp.
|
private |
Definition at line 349 of file SENSAndroidARCore.cpp.
|
private |
Definition at line 81 of file SENSAndroidARCore.h.
|
private |
Definition at line 66 of file SENSAndroidARCore.h.
|
private |
Definition at line 65 of file SENSAndroidARCore.h.
|
private |
Definition at line 68 of file SENSAndroidARCore.h.
|
private |
Definition at line 75 of file SENSAndroidARCore.h.
|
private |
Definition at line 91 of file SENSAndroidARCore.h.
|
private |
Definition at line 91 of file SENSAndroidARCore.h.
|
private |
Definition at line 77 of file SENSAndroidARCore.h.
|
private |
Definition at line 72 of file SENSAndroidARCore.h.
|
private |
Definition at line 91 of file SENSAndroidARCore.h.
|
private |
Definition at line 91 of file SENSAndroidARCore.h.
|
private |
Definition at line 69 of file SENSAndroidARCore.h.
|
private |
Definition at line 70 of file SENSAndroidARCore.h.
|
private |
Definition at line 78 of file SENSAndroidARCore.h.
|
private |
Definition at line 73 of file SENSAndroidARCore.h.
|
private |
Definition at line 84 of file SENSAndroidARCore.h.
|
private |
Definition at line 67 of file SENSAndroidARCore.h.
|
private |
Definition at line 82 of file SENSAndroidARCore.h.