Exemplo n.º 1
0
 internal void Deinitialize()
 {
     NativeAPI.MapViewer_deInitialize();
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Turn on/off flash light
 /// </summary>
 public bool SetFlashLightMode(bool toggle)
 {
     return(NativeAPI.maxst_CameraDevice_setFlashLightMode(toggle));
 }
Exemplo n.º 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);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Stop device sensor
 /// </summary>
 public void Stop()
 {
     NativeAPI.stopSensor();
 }
Exemplo n.º 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));
 }
Exemplo n.º 8
0
 internal void GetImage(int idx, out byte image)
 {
     NativeAPI.MapViewer_getImage(idx, out image);
 }
Exemplo n.º 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);
 }
Exemplo n.º 10
0
 internal void GetTexCoords(out float texCoords)
 {
     NativeAPI.MapViewer_getTexCoords(out texCoords);
 }
Exemplo n.º 11
0
 internal int GetImageSize(int idx)
 {
     return(NativeAPI.MapViewer_getImageSize(idx));
 }
Exemplo n.º 12
0
 internal void GetIndices(out int indices)
 {
     NativeAPI.MapViewer_getIndices(out indices);
 }
Exemplo n.º 13
0
 internal int Create(int idx)
 {
     return(NativeAPI.MapViewer_create(idx));
 }
Exemplo n.º 14
0
 internal IntPtr GetJson()
 {
     return(NativeAPI.MapViewer_getJson());
 }
Exemplo n.º 15
0
 /// <summary>SLAM stops learning.</summary>
 public void QuitFindingSurface()
 {
     NativeAPI.maxst_TrackerManager_quitFindingSurface();
 }
Exemplo n.º 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);
 }
Exemplo n.º 17
0
 /// <summary>
 /// Start device sensor
 /// </summary>
 public void Start()
 {
     NativeAPI.startSensor();
 }
Exemplo n.º 18
0
 /// <summary>Load the Trackable data.</summary>
 public void LoadTrackerData()
 {
     NativeAPI.maxst_TrackerManager_loadTrackerData();
 }
Exemplo n.º 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));
 }
Exemplo n.º 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());
 }
Exemplo n.º 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));
 }
Exemplo n.º 22
0
 /// <summary>Get the device supports Fusion.</summary>
 /// <returns>true if device supports Fusion.</returns>
 public bool IsFusionSupported()
 {
     return(NativeAPI.maxst_TrackerManager_isFusionSupported());
 }
Exemplo n.º 23
0
 /// <summary>
 /// Toggle auto white balance lock (Android only supported now)
 /// </summary>
 public bool SetAutoWhiteBalanceLock(bool toggle)
 {
     return(NativeAPI.maxst_CameraDevice_setAutoWhiteBalanceLock(toggle));
 }
Exemplo n.º 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());
 }
Exemplo n.º 25
0
 public bool IsVideoFlipped(FlipDirection direction)
 {
     return(NativeAPI.maxst_CameraDevice_isVideoFlipped((int)direction));
 }
Exemplo n.º 26
0
 /// <summary>Set Vocabulary.</summary>
 public void SetVocabulary(string vocFilename, bool isAndroidAssetFile = false)
 {
     NativeAPI.maxst_TrackerManager_setVocabulary(vocFilename, isAndroidAssetFile);
 }
Exemplo n.º 27
0
 /// <summary>
 /// Get Camera Device Max Zoom value.
 /// </summary>
 /// <returns>Max Zoom value.</returns>
 public float getMaxZoomValue()
 {
     return(NativeAPI.maxst_CameraDevice_getMaxZoomValue());
 }
Exemplo n.º 28
0
 /// <summary>Start SLAM learning.</summary>
 public void FindSurface()
 {
     NativeAPI.maxst_TrackerManager_findSurface();
 }
Exemplo n.º 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));
 }
Exemplo n.º 30
0
 internal bool Initialize(string fileName)
 {
     return(NativeAPI.MapViewer_initialize(fileName));
 }