|
Maxst AR SDK 4.0.0
4.0.0
|
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... | |
| (MasTrackingState *) | - updateTrackingState |
| (void) | - findSurface |
| Start to find the surface of an environment from a camera image. | |
| (void) | - quitFindingSurface |
| Stop to find the surface. | |
| (MasSurfaceThumbnail *) | - saveSurfaceData: |
| Save the surface data to file. More... | |
| (void) | - getWorldPositionFromScreenCoordinate:world: |
| Get 3d world coordinate corresponding to given 2d screen position. More... | |
| (MasGuideInfo *) | - getGuideInfo |
| 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 |
| - (MasGuideInfo *) getGuideInfo |
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) 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)
Visual slam tracker (Can create surface data and save it)
Instant tracker
Cloud recognizer
| - (typedef) NS_ENUM | (int) | ||
| (TrackingOption) | |||
Normal Tracking (Image Tracker Only)
Extended Tracking (Image Tracker Only)
Multi Target Tracking (Image Tracker Only)
Jitter Reduction Activation (Marker, Image, and object trackers)
Jitter Reduction Deactivation (Marker, Image, and object trackers)
| - (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 |
Update tracking state. This function should be called before getTrackingResult and background rendering
1.8.14