コード例 #1
0
ファイル: MapViewer.cs プロジェクト: madquokka/CarEngine
 internal void Deinitialize()
 {
     NativeAPI.MapViewer_deInitialize();
 }
コード例 #2
0
 /// <summary>
 /// Set Camera Zoom Scale
 /// </summary>
 /// <param name="zoomValue">zoomScale Zoom value</param>
 /// <returns>result Zoom.</returns>
 public bool SetZoom(float zoomValue)
 {
     return(NativeAPI.maxst_CameraDevice_setZoom(zoomValue));
 }
コード例 #3
0
 /// <summary>
 /// Set camera parameter (Android only supported now)
 /// </summary>
 /// <param name="key">Parameter key</param>
 /// <param name="intTypeValue">Parameter value</param>
 /// <returns> True success</returns>
 public bool SetParam(string key, int intTypeValue)
 {
     return(NativeAPI.maxst_CameraDevice_setIntTypeParameter(key, intTypeValue));
 }
コード例 #4
0
 /// <summary>
 /// Turn on/off flash light
 /// </summary>
 public bool SetFlashLightMode(bool toggle)
 {
     return(NativeAPI.maxst_CameraDevice_setFlashLightMode(toggle));
 }
コード例 #5
0
 /// <summary>
 /// Flip video background
 /// </summary>
 /// <param name="direction">Flip direction</param>
 /// <param name="on">True to set. False to rest</param>
 public void FlipVideo(FlipDirection direction, bool on)
 {
     NativeAPI.maxst_CameraDevice_flipVideo((int)direction, on);
 }
コード例 #6
0
ファイル: SensorDevice.cs プロジェクト: madquokka/CarEngine
 /// <summary>
 /// Stop device sensor
 /// </summary>
 public void Stop()
 {
     NativeAPI.stopSensor();
 }
コード例 #7
0
 /// <summary>
 /// Set external camera image and timestamp to AR engine.(Free, Enterprise license key can activate this interface. Mobile only supported)
 /// </summary>
 /// <param name="data">Native address of camera image</param>
 /// <param name="length">Lenght of data buffer</param>
 /// <param name="width">Width of camera image</param>
 /// <param name="height">Height of camera image</param>
 /// <param name="format">Color format</param>
 /// <param name="timestamp">Timestamp</param>
 /// <returns>True success</returns>
 public bool SetNewFrameAndTimestamp(ulong data, int length, int width, int height, ColorFormat format, ulong timestamp)
 {
     return(NativeAPI.maxst_CameraDevice_setNewFramePtrAndTimestamp(data, length, width, height, (int)format, timestamp));
 }
コード例 #8
0
ファイル: MapViewer.cs プロジェクト: madquokka/CarEngine
 internal void GetImage(int idx, out byte image)
 {
     NativeAPI.MapViewer_getImage(idx, out image);
 }
コード例 #9
0
 /// <summary>Add the Trackable data to the Map List.</summary>
 /// <param name="trackingFileName">File path of map for map addition.</param>
 /// <param name="isAndroidAssetFile">Map file position for addition. True is in Asset folder.</param>
 public void AddTrackerData(string trackingFileName, bool isAndroidAssetFile = false)
 {
     NativeAPI.maxst_TrackerManager_addTrackerData(trackingFileName, isAndroidAssetFile);
 }
コード例 #10
0
ファイル: MapViewer.cs プロジェクト: madquokka/CarEngine
 internal void GetTexCoords(out float texCoords)
 {
     NativeAPI.MapViewer_getTexCoords(out texCoords);
 }
コード例 #11
0
ファイル: MapViewer.cs プロジェクト: madquokka/CarEngine
 internal int GetImageSize(int idx)
 {
     return(NativeAPI.MapViewer_getImageSize(idx));
 }
コード例 #12
0
ファイル: MapViewer.cs プロジェクト: madquokka/CarEngine
 internal void GetIndices(out int indices)
 {
     NativeAPI.MapViewer_getIndices(out indices);
 }
コード例 #13
0
ファイル: MapViewer.cs プロジェクト: madquokka/CarEngine
 internal int Create(int idx)
 {
     return(NativeAPI.MapViewer_create(idx));
 }
コード例 #14
0
ファイル: MapViewer.cs プロジェクト: madquokka/CarEngine
 internal IntPtr GetJson()
 {
     return(NativeAPI.MapViewer_getJson());
 }
コード例 #15
0
 /// <summary>SLAM stops learning.</summary>
 public void QuitFindingSurface()
 {
     NativeAPI.maxst_TrackerManager_quitFindingSurface();
 }
コード例 #16
0
 /// <summary>Delete the Trackable data from the Map List.</summary>
 /// <param name="trackingFileName">trackingFileName map file name.
 /// This name should be same which added. If set "" (empty) file list will be cleared</param>
 public void RemoveTrackerData(string trackingFileName = "")
 {
     NativeAPI.maxst_TrackerManager_removeTrackerData(trackingFileName);
 }
コード例 #17
0
ファイル: SensorDevice.cs プロジェクト: madquokka/CarEngine
 /// <summary>
 /// Start device sensor
 /// </summary>
 public void Start()
 {
     NativeAPI.startSensor();
 }
コード例 #18
0
 /// <summary>Load the Trackable data.</summary>
 public void LoadTrackerData()
 {
     NativeAPI.maxst_TrackerManager_loadTrackerData();
 }
コード例 #19
0
 /// <summary>
 /// Set external camera image to AR engine.(Free, Enterprise license key can activate this interface. Mobile only supported)
 /// </summary>
 /// <param name="data">Native address of camera image</param>
 /// <param name="length">Lenght of data buffer</param>
 /// <param name="width">Width of camera image</param>
 /// <param name="height">Height of camera image</param>
 /// <param name="format">Color format</param>
 /// <returns>True success</returns>
 public bool SetNewFrame(ulong data, int length, int width, int height, ColorFormat format)
 {
     return(NativeAPI.maxst_CameraDevice_setNewFramePtr(data, length, width, height, (int)format));
 }
コード例 #20
0
 /// <summary>Check that the Trackable data loading is finished.</summary>
 /// <returns>Return map loading status. True is completed.</returns>
 public bool IsTrackerDataLoadCompleted()
 {
     return(NativeAPI.maxst_TrackerManager_isTrackerDataLoadCompleted());
 }
コード例 #21
0
 /// <summary>
 /// Set camera focus mode
 /// </summary>
 /// <param name="focusMode"></param>
 /// <returns></returns>
 public bool SetFocusMode(FocusMode focusMode)
 {
     return(NativeAPI.maxst_CameraDevice_setFocusMode((int)focusMode));
 }
コード例 #22
0
 /// <summary>Get the device supports Fusion.</summary>
 /// <returns>true if device supports Fusion.</returns>
 public bool IsFusionSupported()
 {
     return(NativeAPI.maxst_TrackerManager_isFusionSupported());
 }
コード例 #23
0
 /// <summary>
 /// Toggle auto white balance lock (Android only supported now)
 /// </summary>
 public bool SetAutoWhiteBalanceLock(bool toggle)
 {
     return(NativeAPI.maxst_CameraDevice_setAutoWhiteBalanceLock(toggle));
 }
コード例 #24
0
 /// <summary>Get tracking fusion state.</summary>
 /// <returns>tracking status 'Success' is 1 or not -1</returns>
 public int GetFusionTrackingState()
 {
     return(NativeAPI.maxst_TrackerManager_getFusionTrackingState());
 }
コード例 #25
0
 public bool IsVideoFlipped(FlipDirection direction)
 {
     return(NativeAPI.maxst_CameraDevice_isVideoFlipped((int)direction));
 }
コード例 #26
0
 /// <summary>Set Vocabulary.</summary>
 public void SetVocabulary(string vocFilename, bool isAndroidAssetFile = false)
 {
     NativeAPI.maxst_TrackerManager_setVocabulary(vocFilename, isAndroidAssetFile);
 }
コード例 #27
0
 /// <summary>
 /// Get Camera Device Max Zoom value.
 /// </summary>
 /// <returns>Max Zoom value.</returns>
 public float getMaxZoomValue()
 {
     return(NativeAPI.maxst_CameraDevice_getMaxZoomValue());
 }
コード例 #28
0
 /// <summary>Start SLAM learning.</summary>
 public void FindSurface()
 {
     NativeAPI.maxst_TrackerManager_findSurface();
 }
コード例 #29
0
 /// <summary>
 /// Set camera parameter (Android only supported now)
 /// </summary>
 /// <param name="key">Parameter key</param>
 /// <param name="min">min value</param>
 /// <param name="max">min value</param>
 /// <returns> True success</returns>
 public bool SetParam(string key, int min, int max)
 {
     return(NativeAPI.maxst_CameraDevice_setRangeTypeParameter(key, min, max));
 }
コード例 #30
0
ファイル: MapViewer.cs プロジェクト: madquokka/CarEngine
 internal bool Initialize(string fileName)
 {
     return(NativeAPI.MapViewer_initialize(fileName));
 }