|
MaxstAR Native iOS
|
Control AR Engine. More...
#import <MasTrackerManager.h>
Instance Methods | |
| (void) | - startTracker: |
| Start AR engine. Only one tracking engine could be run at one time. More... | |
| (void) | - stopTracker |
| Stop tracking engine. | |
| (void) | - destroyTracker |
| Remove all tracking data (Map data and tracking result) | |
| (void) | - addTrackerData: |
| Add map file to candidate list. More... | |
| (void) | - removeTrackerData: |
| Remove map file from candidate list. More... | |
| (void) | - loadTrackerData |
| Load map files in candidate list to memory. This method don't block main(UI) thread. | |
| (bool) | - isTrackerDataLoadCompleted |
| Get map files loading state. This is for UI expression. More... | |
| (bool) | - isFusionSupported |
| Check if Fusion is supported. More... | |
| (int) | - getFusionTrackingState |
| Check the status of the Fusion Tracker. More... | |
| (MasTrackingState *) | - updateTrackingState |
| (void) | - findSurface |
| Start to find the surface of an environment from a camera image. | |
| (void) | - quitFindingSurface |
| Stop to find the surface. | |
| (void) | - findImageOfCloudRecognition |
| find the tracker ID of the current screen image. | |
| (MasSurfaceThumbnail *) | - saveSurfaceData: |
| Save the surface data to file. More... | |
| (void) | - setVocabulary: |
| (void) | - getWorldPositionFromScreenCoordinate:world: |
| Get 3d world coordinate corresponding to given 2d screen position. More... | |
| (MasGuideInfo *) | - getGuideInformation |
| Get surface mesh information of the found surface after the findSurface method has been called. More... | |
| (void) | - setTrackingOption: |
| Set tracking options. 1, 2, 4 cannot run simultaneously. More... | |
| (void) | - saveFrames |
| (void) | - setCloudRecognitionSecretId:secretKey: |
| Set secret ID and key for access of cloud recognition. More... | |
Protected Member Functions | |
| (typedef) | - NS_ENUM |
| (typedef) | - NS_ENUM |
Control AR Engine.
| - (void) addTrackerData: | (NSString *) | trackingFileName |
Add map file to candidate list.
| trackingFileName | absolute file path |
| - (int) getFusionTrackingState |
Check the status of the Fusion Tracker.
| - (MasGuideInfo *) getGuideInformation |
Get surface mesh information of the found surface after the findSurface method has been called.
| - (void) getWorldPositionFromScreenCoordinate: | (float *) | screen | |
| world: | (float *) | world | |
Get 3d world coordinate corresponding to given 2d screen position.
| screen | screen touch x, y position |
| world | world position x, y, z |
| - (bool) isFusionSupported |
Check if Fusion is supported.
| - (bool) isTrackerDataLoadCompleted |
Get map files loading state. This is for UI expression.
| - (typedef) NS_ENUM | (int) | ||
| (TrackerType) | |||
Code scanner
Planar image tracker
Code scanner
Object tracker (Object data should be created via SLAM tracker)
Instant tracker
Cloud recognizer
QR-Code tracker
Image Fusion tracker
Object Fusion tracker
QR-Code Fusion tracker
Marker Fusion tracker
Instant Fusion tracker
| - (typedef) NS_ENUM | (int) | ||
| (TrackingOption) | |||
Normal Tracking (Image Tracker Only)
Extended Tracking (Image Tracker Only)
Enhanced Tracking (Marker Tracker Only)
Multi Target Tracking (Image Tracker Only)
Jitter Reduction Activation (Marker, Image, and object trackers)
Jitter Reduction Deactivation (Marker, Image, and object trackers)
Cloud Recognition Auto Activation (Cloud Tracker Only)
Cloud Recognition Auto Deactivation (Cloud Tracker Only)
| - (void) removeTrackerData: | (NSString *) | trackingFileName |
Remove map file from candidate list.
| trackingFileName | map file name. This name should be same which added. If set "" (empty) file list will be cleared. |
| - (MasSurfaceThumbnail *) saveSurfaceData: | (NSString *) | outputFileName |
Save the surface data to file.
| outputFileName | file path (should be absolute path) |
| - (void) setCloudRecognitionSecretId: | (NSString *) | secretId | |
| secretKey: | (NSString *) | secretKey | |
Set secret ID and key for access of cloud recognition.
| secretId | secret ID |
| secretKey | secret key |
| - (void) setTrackingOption: | (TrackingOption) | option |
Set tracking options. 1, 2, 4 cannot run simultaneously.
| option | 1 : Normal Tracking (Image Tracker Only) 2 : Extended Tracking (Image Tracker Only) 4 : Multiple Target Tracking (Image Tracker Only) |
| - (void) startTracker: | (TrackerType) | trackerMask |
Start AR engine. Only one tracking engine could be run at one time.
| trackerMask | tracking engine type |
| - (MasTrackingState *) updateTrackingState |
@briedf Update tracking state. This function should be called before getTrackingResult and background rendering
1.8.16