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