internal void Deinitialize() { NativeAPI.MapViewer_deInitialize(); }
/// <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)); }
/// <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)); }
/// <summary> /// Turn on/off flash light /// </summary> public bool SetFlashLightMode(bool toggle) { return(NativeAPI.maxst_CameraDevice_setFlashLightMode(toggle)); }
/// <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); }
/// <summary> /// Stop device sensor /// </summary> public void Stop() { NativeAPI.stopSensor(); }
/// <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)); }
internal void GetImage(int idx, out byte image) { NativeAPI.MapViewer_getImage(idx, out image); }
/// <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); }
internal void GetTexCoords(out float texCoords) { NativeAPI.MapViewer_getTexCoords(out texCoords); }
internal int GetImageSize(int idx) { return(NativeAPI.MapViewer_getImageSize(idx)); }
internal void GetIndices(out int indices) { NativeAPI.MapViewer_getIndices(out indices); }
internal int Create(int idx) { return(NativeAPI.MapViewer_create(idx)); }
internal IntPtr GetJson() { return(NativeAPI.MapViewer_getJson()); }
/// <summary>SLAM stops learning.</summary> public void QuitFindingSurface() { NativeAPI.maxst_TrackerManager_quitFindingSurface(); }
/// <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); }
/// <summary> /// Start device sensor /// </summary> public void Start() { NativeAPI.startSensor(); }
/// <summary>Load the Trackable data.</summary> public void LoadTrackerData() { NativeAPI.maxst_TrackerManager_loadTrackerData(); }
/// <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)); }
/// <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()); }
/// <summary> /// Set camera focus mode /// </summary> /// <param name="focusMode"></param> /// <returns></returns> public bool SetFocusMode(FocusMode focusMode) { return(NativeAPI.maxst_CameraDevice_setFocusMode((int)focusMode)); }
/// <summary>Get the device supports Fusion.</summary> /// <returns>true if device supports Fusion.</returns> public bool IsFusionSupported() { return(NativeAPI.maxst_TrackerManager_isFusionSupported()); }
/// <summary> /// Toggle auto white balance lock (Android only supported now) /// </summary> public bool SetAutoWhiteBalanceLock(bool toggle) { return(NativeAPI.maxst_CameraDevice_setAutoWhiteBalanceLock(toggle)); }
/// <summary>Get tracking fusion state.</summary> /// <returns>tracking status 'Success' is 1 or not -1</returns> public int GetFusionTrackingState() { return(NativeAPI.maxst_TrackerManager_getFusionTrackingState()); }
public bool IsVideoFlipped(FlipDirection direction) { return(NativeAPI.maxst_CameraDevice_isVideoFlipped((int)direction)); }
/// <summary>Set Vocabulary.</summary> public void SetVocabulary(string vocFilename, bool isAndroidAssetFile = false) { NativeAPI.maxst_TrackerManager_setVocabulary(vocFilename, isAndroidAssetFile); }
/// <summary> /// Get Camera Device Max Zoom value. /// </summary> /// <returns>Max Zoom value.</returns> public float getMaxZoomValue() { return(NativeAPI.maxst_CameraDevice_getMaxZoomValue()); }
/// <summary>Start SLAM learning.</summary> public void FindSurface() { NativeAPI.maxst_TrackerManager_findSurface(); }
/// <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)); }
internal bool Initialize(string fileName) { return(NativeAPI.MapViewer_initialize(fileName)); }