Commit 708d3dee authored by BlackAngle233's avatar BlackAngle233
Browse files

update final design

parent 1444629e
fileFormatVersion: 2
guid: c56a3fc345972c14b9645060133297f5
folderAsset: yes
timeCreated: 1611716646
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: d108ccc9037739545b8d1c25eaf54980
folderAsset: yes
timeCreated: 1611716646
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 1f575ed0ed26210498ac32c38aac37b4
timeCreated: 1611716671
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 9ac3528fbd4efca4dac353fd506b82a1
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 62fe204bdf4fd934b86e3cf09fc786fb
folderAsset: yes
timeCreated: 1562496585
licenseType: Pro
PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
data:
first:
Any:
second:
enabled: 0
settings: {}
data:
first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
data:
first:
iPhone: iOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 09b2ee28d6c87d649b02cd4866636b4f
folderAsset: yes
timeCreated: 1611716646
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
//=============================================================================================================================
//
// EasyAR Sense 4.2.0.8700-7bcbc8b1c
// Copyright (c) 2015-2021 VisionStar Information Technology (Shanghai) Co., Ltd. All Rights Reserved.
// EasyAR is the registered trademark or trademark of VisionStar Information Technology (Shanghai) Co., Ltd in China
// and other countries for the augmented reality technology developed by VisionStar Information Technology (Shanghai) Co., Ltd.
//
//=============================================================================================================================
#ifndef __EASYAR_ACCELEROMETER_HXX__
#define __EASYAR_ACCELEROMETER_HXX__
#include "easyar/types.hxx"
namespace easyar {
/// <summary>
/// record
/// Accelerometer reading.
///
/// The positive direction of x-axis is from the device center to its right side of the screen.
/// The positive direction of y-axis is from the device center to its top side of the screen.
/// The positive direction of z-axis is from the device center perpendicular to the screen outward.
///
/// The unit of x, y, z is m/s^2.
/// The unit of timestamp is second.
/// </summary>
struct AccelerometerResult
{
float x;
float y;
float z;
double timestamp;
AccelerometerResult();
AccelerometerResult(float x, float y, float z, double timestamp);
easyar_AccelerometerResult get_cdata();
};
}
#endif
#ifndef __IMPLEMENTATION_EASYAR_ACCELEROMETER_HXX__
#define __IMPLEMENTATION_EASYAR_ACCELEROMETER_HXX__
namespace easyar {
inline AccelerometerResult::AccelerometerResult()
{
this->x = float();
this->y = float();
this->z = float();
this->timestamp = double();
}
inline AccelerometerResult::AccelerometerResult(float x, float y, float z, double timestamp)
{
this->x = x;
this->y = y;
this->z = z;
this->timestamp = timestamp;
}
inline easyar_AccelerometerResult AccelerometerResult::get_cdata()
{
easyar_AccelerometerResult _return_value_ = {x, y, z, timestamp};
return _return_value_;
}
}
#endif
fileFormatVersion: 2
guid: d0b6a1bf52c624f4fa3ad06cda0dfa30
timeCreated: 1611716672
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
//=============================================================================================================================
//
// EasyAR Sense 4.2.0.8700-7bcbc8b1c
// Copyright (c) 2015-2021 VisionStar Information Technology (Shanghai) Co., Ltd. All Rights Reserved.
// EasyAR is the registered trademark or trademark of VisionStar Information Technology (Shanghai) Co., Ltd in China
// and other countries for the augmented reality technology developed by VisionStar Information Technology (Shanghai) Co., Ltd.
//
//=============================================================================================================================
#import "easyar/types.oc.h"
/// <summary>
/// record
/// Accelerometer reading.
///
/// The positive direction of x-axis is from the device center to its right side of the screen.
/// The positive direction of y-axis is from the device center to its top side of the screen.
/// The positive direction of z-axis is from the device center perpendicular to the screen outward.
///
/// The unit of x, y, z is m/s^2.
/// The unit of timestamp is second.
/// </summary>
@interface easyar_AccelerometerResult : NSObject
@property (nonatomic) float x;
@property (nonatomic) float y;
@property (nonatomic) float z;
@property (nonatomic) double timestamp;
+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)create:(float)x y:(float)y z:(float)z timestamp:(double)timestamp;
@end
fileFormatVersion: 2
guid: 64b9f8e7bf71af7419351b7d294a325b
timeCreated: 1611716672
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
//=============================================================================================================================
//
// EasyAR Sense 4.2.0.8700-7bcbc8b1c
// Copyright (c) 2015-2021 VisionStar Information Technology (Shanghai) Co., Ltd. All Rights Reserved.
// EasyAR is the registered trademark or trademark of VisionStar Information Technology (Shanghai) Co., Ltd in China
// and other countries for the augmented reality technology developed by VisionStar Information Technology (Shanghai) Co., Ltd.
//
//=============================================================================================================================
#ifndef __EASYAR_ARCORECAMERA_H__
#define __EASYAR_ARCORECAMERA_H__
#include "easyar/types.h"
#ifdef __cplusplus
extern "C" {
#endif
void easyar_ARCoreCameraDevice__ctor(/* OUT */ easyar_ARCoreCameraDevice * * Return);
/// <summary>
/// Checks if the component is available. It returns true only on Android when ARCore is installed.
/// If called with libarcore_sdk_c.so not loaded, it returns false.
/// Notice: If ARCore is not supported on the device but ARCore apk is installed via side-loading, it will return true, but ARCore will not function properly.
/// </summary>
bool easyar_ARCoreCameraDevice_isAvailable(void);
/// <summary>
/// `InputFrame`_ buffer capacity. The default is 8.
/// </summary>
int easyar_ARCoreCameraDevice_bufferCapacity(const easyar_ARCoreCameraDevice * This);
/// <summary>
/// Sets `InputFrame`_ buffer capacity.
/// </summary>
void easyar_ARCoreCameraDevice_setBufferCapacity(easyar_ARCoreCameraDevice * This, int capacity);
/// <summary>
/// `InputFrame`_ output port.
/// </summary>
void easyar_ARCoreCameraDevice_inputFrameSource(easyar_ARCoreCameraDevice * This, /* OUT */ easyar_InputFrameSource * * Return);
/// <summary>
/// Starts video stream capture.
/// </summary>
bool easyar_ARCoreCameraDevice_start(easyar_ARCoreCameraDevice * This);
/// <summary>
/// Stops video stream capture.
/// </summary>
void easyar_ARCoreCameraDevice_stop(easyar_ARCoreCameraDevice * This);
/// <summary>
/// Close. The component shall not be used after calling close.
/// </summary>
void easyar_ARCoreCameraDevice_close(easyar_ARCoreCameraDevice * This);
void easyar_ARCoreCameraDevice__dtor(easyar_ARCoreCameraDevice * This);
void easyar_ARCoreCameraDevice__retain(const easyar_ARCoreCameraDevice * This, /* OUT */ easyar_ARCoreCameraDevice * * Return);
const char * easyar_ARCoreCameraDevice__typeName(const easyar_ARCoreCameraDevice * This);
#ifdef __cplusplus
}
#endif
#endif
fileFormatVersion: 2
guid: 034c0fc64da8b904f92dd30cd2ccc60c
timeCreated: 1611716671
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
//=============================================================================================================================
//
// EasyAR Sense 4.2.0.8700-7bcbc8b1c
// Copyright (c) 2015-2021 VisionStar Information Technology (Shanghai) Co., Ltd. All Rights Reserved.
// EasyAR is the registered trademark or trademark of VisionStar Information Technology (Shanghai) Co., Ltd in China
// and other countries for the augmented reality technology developed by VisionStar Information Technology (Shanghai) Co., Ltd.
//
//=============================================================================================================================
#ifndef __EASYAR_ARCORECAMERA_HXX__
#define __EASYAR_ARCORECAMERA_HXX__
#include "easyar/types.hxx"
namespace easyar {
/// <summary>
/// ARCoreCameraDevice implements a camera device based on ARCore, which outputs `InputFrame`_ (including image, camera parameters, timestamp, 6DOF location, and tracking status).
/// Loading of libarcore_sdk_c.so with java.lang.System.loadLibrary is required.
/// After creation, start/stop can be invoked to start or stop video stream capture.
/// When the component is not needed anymore, call close function to close it. It shall not be used after calling close.
/// ARCoreCameraDevice outputs `InputFrame`_ from inputFrameSource. inputFrameSource shall be connected to `InputFrameSink`_ for use. Refer to `Overview &lt;Overview.html&gt;`__ .
/// bufferCapacity is the capacity of `InputFrame`_ buffer. If the count of `InputFrame`_ which has been output from the device and have not been released is more than this number, the device will not output new `InputFrame`_ , until previous `InputFrame`_ have been released. This may cause screen stuck. Refer to `Overview &lt;Overview.html&gt;`__ .
/// Caution: Currently, ARCore(v1.13.0) has memory leaks on creating and destroying sessions. Repeated creations and destructions will cause an increasing and non-reclaimable memory footprint.
/// </summary>
class ARCoreCameraDevice
{
protected:
easyar_ARCoreCameraDevice * cdata_ ;
void init_cdata(easyar_ARCoreCameraDevice * cdata);
virtual ARCoreCameraDevice & operator=(const ARCoreCameraDevice & data) { return *this; } //deleted
public:
ARCoreCameraDevice(easyar_ARCoreCameraDevice * cdata);
virtual ~ARCoreCameraDevice();
ARCoreCameraDevice(const ARCoreCameraDevice & data);
const easyar_ARCoreCameraDevice * get_cdata() const;
easyar_ARCoreCameraDevice * get_cdata();
ARCoreCameraDevice();
/// <summary>
/// Checks if the component is available. It returns true only on Android when ARCore is installed.
/// If called with libarcore_sdk_c.so not loaded, it returns false.
/// Notice: If ARCore is not supported on the device but ARCore apk is installed via side-loading, it will return true, but ARCore will not function properly.
/// </summary>
static bool isAvailable();
/// <summary>
/// `InputFrame`_ buffer capacity. The default is 8.
/// </summary>
int bufferCapacity();
/// <summary>
/// Sets `InputFrame`_ buffer capacity.
/// </summary>
void setBufferCapacity(int capacity);
/// <summary>
/// `InputFrame`_ output port.
/// </summary>
void inputFrameSource(/* OUT */ InputFrameSource * * Return);
/// <summary>
/// Starts video stream capture.
/// </summary>
bool start();
/// <summary>
/// Stops video stream capture.
/// </summary>
void stop();
/// <summary>
/// Close. The component shall not be used after calling close.
/// </summary>
void close();
};
}
#endif
#ifndef __IMPLEMENTATION_EASYAR_ARCORECAMERA_HXX__
#define __IMPLEMENTATION_EASYAR_ARCORECAMERA_HXX__
#include "easyar/arcorecamera.h"
#include "easyar/dataflow.hxx"
#include "easyar/frame.hxx"
#include "easyar/image.hxx"
#include "easyar/buffer.hxx"
#include "easyar/cameraparameters.hxx"
#include "easyar/vector.hxx"
#include "easyar/matrix.hxx"
namespace easyar {
inline ARCoreCameraDevice::ARCoreCameraDevice(easyar_ARCoreCameraDevice * cdata)
:
cdata_(NULL)
{
init_cdata(cdata);
}
inline ARCoreCameraDevice::~ARCoreCameraDevice()
{
if (cdata_) {
easyar_ARCoreCameraDevice__dtor(cdata_);
cdata_ = NULL;
}
}
inline ARCoreCameraDevice::ARCoreCameraDevice(const ARCoreCameraDevice & data)
:
cdata_(NULL)
{
easyar_ARCoreCameraDevice * cdata = NULL;
easyar_ARCoreCameraDevice__retain(data.cdata_, &cdata);
init_cdata(cdata);
}
inline const easyar_ARCoreCameraDevice * ARCoreCameraDevice::get_cdata() const
{
return cdata_;
}
inline easyar_ARCoreCameraDevice * ARCoreCameraDevice::get_cdata()
{
return cdata_;
}
inline void ARCoreCameraDevice::init_cdata(easyar_ARCoreCameraDevice * cdata)
{
cdata_ = cdata;
}
inline ARCoreCameraDevice::ARCoreCameraDevice()
:
cdata_(NULL)
{
easyar_ARCoreCameraDevice * _return_value_ = NULL;
easyar_ARCoreCameraDevice__ctor(&_return_value_);
init_cdata(_return_value_);
}
inline bool ARCoreCameraDevice::isAvailable()
{
bool _return_value_ = easyar_ARCoreCameraDevice_isAvailable();
return _return_value_;
}
inline int ARCoreCameraDevice::bufferCapacity()
{
if (cdata_ == NULL) {
return int();
}
int _return_value_ = easyar_ARCoreCameraDevice_bufferCapacity(cdata_);
return _return_value_;
}
inline void ARCoreCameraDevice::setBufferCapacity(int arg0)
{
if (cdata_ == NULL) {
return;
}
easyar_ARCoreCameraDevice_setBufferCapacity(cdata_, arg0);
}
inline void ARCoreCameraDevice::inputFrameSource(/* OUT */ InputFrameSource * * Return)
{
if (cdata_ == NULL) {
*Return = NULL;
return;
}
easyar_InputFrameSource * _return_value_ = NULL;
easyar_ARCoreCameraDevice_inputFrameSource(cdata_, &_return_value_);
*Return = new InputFrameSource(_return_value_);
}
inline bool ARCoreCameraDevice::start()
{
if (cdata_ == NULL) {
return bool();
}
bool _return_value_ = easyar_ARCoreCameraDevice_start(cdata_);
return _return_value_;
}
inline void ARCoreCameraDevice::stop()
{
if (cdata_ == NULL) {
return;
}
easyar_ARCoreCameraDevice_stop(cdata_);
}
inline void ARCoreCameraDevice::close()
{
if (cdata_ == NULL) {
return;
}
easyar_ARCoreCameraDevice_close(cdata_);
}
}
#endif
fileFormatVersion: 2
guid: 15b5572df6a4f8f4fb475d66f8c13131
timeCreated: 1611716671
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
//=============================================================================================================================
//
// EasyAR Sense 4.2.0.8700-7bcbc8b1c
// Copyright (c) 2015-2021 VisionStar Information Technology (Shanghai) Co., Ltd. All Rights Reserved.
// EasyAR is the registered trademark or trademark of VisionStar Information Technology (Shanghai) Co., Ltd in China
// and other countries for the augmented reality technology developed by VisionStar Information Technology (Shanghai) Co., Ltd.
//
//=============================================================================================================================
#import "easyar/types.oc.h"
/// <summary>
/// ARCoreCameraDevice implements a camera device based on ARCore, which outputs `InputFrame`_ (including image, camera parameters, timestamp, 6DOF location, and tracking status).
/// Loading of libarcore_sdk_c.so with java.lang.System.loadLibrary is required.
/// After creation, start/stop can be invoked to start or stop video stream capture.
/// When the component is not needed anymore, call close function to close it. It shall not be used after calling close.
/// ARCoreCameraDevice outputs `InputFrame`_ from inputFrameSource. inputFrameSource shall be connected to `InputFrameSink`_ for use. Refer to `Overview &lt;Overview.html&gt;`__ .
/// bufferCapacity is the capacity of `InputFrame`_ buffer. If the count of `InputFrame`_ which has been output from the device and have not been released is more than this number, the device will not output new `InputFrame`_ , until previous `InputFrame`_ have been released. This may cause screen stuck. Refer to `Overview &lt;Overview.html&gt;`__ .
/// Caution: Currently, ARCore(v1.13.0) has memory leaks on creating and destroying sessions. Repeated creations and destructions will cause an increasing and non-reclaimable memory footprint.
/// </summary>
@interface easyar_ARCoreCameraDevice : easyar_RefBase
+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)init NS_UNAVAILABLE;
+ (easyar_ARCoreCameraDevice *) create;
/// <summary>
/// Checks if the component is available. It returns true only on Android when ARCore is installed.
/// If called with libarcore_sdk_c.so not loaded, it returns false.
/// Notice: If ARCore is not supported on the device but ARCore apk is installed via side-loading, it will return true, but ARCore will not function properly.
/// </summary>
+ (bool)isAvailable;
/// <summary>
/// `InputFrame`_ buffer capacity. The default is 8.
/// </summary>
- (int)bufferCapacity;
/// <summary>
/// Sets `InputFrame`_ buffer capacity.
/// </summary>
- (void)setBufferCapacity:(int)capacity;
/// <summary>
/// `InputFrame`_ output port.
/// </summary>
- (easyar_InputFrameSource *)inputFrameSource;
/// <summary>
/// Starts video stream capture.
/// </summary>
- (bool)start;
/// <summary>
/// Stops video stream capture.
/// </summary>
- (void)stop;
/// <summary>
/// Close. The component shall not be used after calling close.
/// </summary>
- (void)close;
@end
fileFormatVersion: 2
guid: 7c971803d4790724796e991ebe0ad25e
timeCreated: 1611716672
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
//=============================================================================================================================
//
// EasyAR Sense 4.2.0.8700-7bcbc8b1c
// Copyright (c) 2015-2021 VisionStar Information Technology (Shanghai) Co., Ltd. All Rights Reserved.
// EasyAR is the registered trademark or trademark of VisionStar Information Technology (Shanghai) Co., Ltd in China
// and other countries for the augmented reality technology developed by VisionStar Information Technology (Shanghai) Co., Ltd.
//
//=============================================================================================================================
#ifndef __EASYAR_ARKITCAMERA_H__
#define __EASYAR_ARKITCAMERA_H__
#include "easyar/types.h"
#ifdef __cplusplus
extern "C" {
#endif
void easyar_ARKitCameraDevice__ctor(/* OUT */ easyar_ARKitCameraDevice * * Return);
/// <summary>
/// Checks if the component is available. It returns true only on iOS 11 or later when ARKit is supported by hardware.
/// </summary>
bool easyar_ARKitCameraDevice_isAvailable(void);
/// <summary>
/// `InputFrame`_ buffer capacity. The default is 8.
/// </summary>
int easyar_ARKitCameraDevice_bufferCapacity(const easyar_ARKitCameraDevice * This);
/// <summary>
/// Sets `InputFrame`_ buffer capacity.
/// </summary>
void easyar_ARKitCameraDevice_setBufferCapacity(easyar_ARKitCameraDevice * This, int capacity);
/// <summary>
/// `InputFrame`_ output port.
/// </summary>
void easyar_ARKitCameraDevice_inputFrameSource(easyar_ARKitCameraDevice * This, /* OUT */ easyar_InputFrameSource * * Return);
/// <summary>
/// Starts video stream capture.
/// </summary>
bool easyar_ARKitCameraDevice_start(easyar_ARKitCameraDevice * This);
/// <summary>
/// Stops video stream capture.
/// </summary>
void easyar_ARKitCameraDevice_stop(easyar_ARKitCameraDevice * This);
/// <summary>
/// Close. The component shall not be used after calling close.
/// </summary>
void easyar_ARKitCameraDevice_close(easyar_ARKitCameraDevice * This);
void easyar_ARKitCameraDevice__dtor(easyar_ARKitCameraDevice * This);
void easyar_ARKitCameraDevice__retain(const easyar_ARKitCameraDevice * This, /* OUT */ easyar_ARKitCameraDevice * * Return);
const char * easyar_ARKitCameraDevice__typeName(const easyar_ARKitCameraDevice * This);
#ifdef __cplusplus
}
#endif
#endif
fileFormatVersion: 2
guid: 350e620f429976f4ebe31744e3ed25ef
timeCreated: 1611716672
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
//=============================================================================================================================
//
// EasyAR Sense 4.2.0.8700-7bcbc8b1c
// Copyright (c) 2015-2021 VisionStar Information Technology (Shanghai) Co., Ltd. All Rights Reserved.
// EasyAR is the registered trademark or trademark of VisionStar Information Technology (Shanghai) Co., Ltd in China
// and other countries for the augmented reality technology developed by VisionStar Information Technology (Shanghai) Co., Ltd.
//
//=============================================================================================================================
#ifndef __EASYAR_ARKITCAMERA_HXX__
#define __EASYAR_ARKITCAMERA_HXX__
#include "easyar/types.hxx"
namespace easyar {
/// <summary>
/// ARKitCameraDevice implements a camera device based on ARKit, which outputs `InputFrame`_ (including image, camera parameters, timestamp, 6DOF location, and tracking status).
/// After creation, start/stop can be invoked to start or stop data collection.
/// When the component is not needed anymore, call close function to close it. It shall not be used after calling close.
/// ARKitCameraDevice outputs `InputFrame`_ from inputFrameSource. inputFrameSource shall be connected to `InputFrameSink`_ for use. Refer to `Overview &lt;Overview.html&gt;`__ .
/// bufferCapacity is the capacity of `InputFrame`_ buffer. If the count of `InputFrame`_ which has been output from the device and have not been released is more than this number, the device will not output new `InputFrame`_ , until previous `InputFrame`_ have been released. This may cause screen stuck. Refer to `Overview &lt;Overview.html&gt;`__ .
/// </summary>
class ARKitCameraDevice
{
protected:
easyar_ARKitCameraDevice * cdata_ ;
void init_cdata(easyar_ARKitCameraDevice * cdata);
virtual ARKitCameraDevice & operator=(const ARKitCameraDevice & data) { return *this; } //deleted
public:
ARKitCameraDevice(easyar_ARKitCameraDevice * cdata);
virtual ~ARKitCameraDevice();
ARKitCameraDevice(const ARKitCameraDevice & data);
const easyar_ARKitCameraDevice * get_cdata() const;
easyar_ARKitCameraDevice * get_cdata();
ARKitCameraDevice();
/// <summary>
/// Checks if the component is available. It returns true only on iOS 11 or later when ARKit is supported by hardware.
/// </summary>
static bool isAvailable();
/// <summary>
/// `InputFrame`_ buffer capacity. The default is 8.
/// </summary>
int bufferCapacity();
/// <summary>
/// Sets `InputFrame`_ buffer capacity.
/// </summary>
void setBufferCapacity(int capacity);
/// <summary>
/// `InputFrame`_ output port.
/// </summary>
void inputFrameSource(/* OUT */ InputFrameSource * * Return);
/// <summary>
/// Starts video stream capture.
/// </summary>
bool start();
/// <summary>
/// Stops video stream capture.
/// </summary>
void stop();
/// <summary>
/// Close. The component shall not be used after calling close.
/// </summary>
void close();
};
}
#endif
#ifndef __IMPLEMENTATION_EASYAR_ARKITCAMERA_HXX__
#define __IMPLEMENTATION_EASYAR_ARKITCAMERA_HXX__
#include "easyar/arkitcamera.h"
#include "easyar/dataflow.hxx"
#include "easyar/frame.hxx"
#include "easyar/image.hxx"
#include "easyar/buffer.hxx"
#include "easyar/cameraparameters.hxx"
#include "easyar/vector.hxx"
#include "easyar/matrix.hxx"
namespace easyar {
inline ARKitCameraDevice::ARKitCameraDevice(easyar_ARKitCameraDevice * cdata)
:
cdata_(NULL)
{
init_cdata(cdata);
}
inline ARKitCameraDevice::~ARKitCameraDevice()
{
if (cdata_) {
easyar_ARKitCameraDevice__dtor(cdata_);
cdata_ = NULL;
}
}
inline ARKitCameraDevice::ARKitCameraDevice(const ARKitCameraDevice & data)
:
cdata_(NULL)
{
easyar_ARKitCameraDevice * cdata = NULL;
easyar_ARKitCameraDevice__retain(data.cdata_, &cdata);
init_cdata(cdata);
}
inline const easyar_ARKitCameraDevice * ARKitCameraDevice::get_cdata() const
{
return cdata_;
}
inline easyar_ARKitCameraDevice * ARKitCameraDevice::get_cdata()
{
return cdata_;
}
inline void ARKitCameraDevice::init_cdata(easyar_ARKitCameraDevice * cdata)
{
cdata_ = cdata;
}
inline ARKitCameraDevice::ARKitCameraDevice()
:
cdata_(NULL)
{
easyar_ARKitCameraDevice * _return_value_ = NULL;
easyar_ARKitCameraDevice__ctor(&_return_value_);
init_cdata(_return_value_);
}
inline bool ARKitCameraDevice::isAvailable()
{
bool _return_value_ = easyar_ARKitCameraDevice_isAvailable();
return _return_value_;
}
inline int ARKitCameraDevice::bufferCapacity()
{
if (cdata_ == NULL) {
return int();
}
int _return_value_ = easyar_ARKitCameraDevice_bufferCapacity(cdata_);
return _return_value_;
}
inline void ARKitCameraDevice::setBufferCapacity(int arg0)
{
if (cdata_ == NULL) {
return;
}
easyar_ARKitCameraDevice_setBufferCapacity(cdata_, arg0);
}
inline void ARKitCameraDevice::inputFrameSource(/* OUT */ InputFrameSource * * Return)
{
if (cdata_ == NULL) {
*Return = NULL;
return;
}
easyar_InputFrameSource * _return_value_ = NULL;
easyar_ARKitCameraDevice_inputFrameSource(cdata_, &_return_value_);
*Return = new InputFrameSource(_return_value_);
}
inline bool ARKitCameraDevice::start()
{
if (cdata_ == NULL) {
return bool();
}
bool _return_value_ = easyar_ARKitCameraDevice_start(cdata_);
return _return_value_;
}
inline void ARKitCameraDevice::stop()
{
if (cdata_ == NULL) {
return;
}
easyar_ARKitCameraDevice_stop(cdata_);
}
inline void ARKitCameraDevice::close()
{
if (cdata_ == NULL) {
return;
}
easyar_ARKitCameraDevice_close(cdata_);
}
}
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment