|
MaxstARSDK
3.5.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... | |
| (int) | - getKeyframeCount |
| Get the number of keyframes included in surface data. 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 |
Protected Member Functions | |
| (typedef) | - NS_ENUM |
| (typedef) | - NS_ENUM |
Control AR Engine.
Definition at line 18 of file MasTrackerManager.h.
| - (void) addTrackerData: | (NSString*) | trackingFileName |
Add map file to candidate list.
| trackingFileName | absolute file path |
Definition at line 44 of file MasTrackerManager.mm.
| - (MasGuideInfo *) getGuideInfo |
Get surface mesh information of the found surface after the findSurface method has been called.
Definition at line 102 of file MasTrackerManager.mm.
| - (int) getKeyframeCount |
Get the number of keyframes included in surface data.
Definition at line 98 of file MasTrackerManager.mm.
| - (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 |
Definition at line 94 of file MasTrackerManager.mm.
| - (bool) isTrackerDataLoadCompleted |
Get map files loading state. This is for UI expression.
Definition at line 56 of file MasTrackerManager.mm.
| - (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. |
Definition at line 48 of file MasTrackerManager.mm.
| - (MasSurfaceThumbnail *) saveSurfaceData: | (NSString*) | outputFileName |
Save the surface data to file.
| outputFileName | file path (should be absolute path) |
Definition at line 80 of file MasTrackerManager.mm.
| - (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) |
Definition at line 115 of file MasTrackerManager.mm.
| - (void) startTracker: | (TrackerType) | trackerMask |
Start AR engine. Only one tracking engine could be run at one time.
| trackerMask | tracking engine type |
Definition at line 32 of file MasTrackerManager.mm.
| - (MasTrackingState *) updateTrackingState |
Update tracking state. This function should be called before getTrackingResult and background rendering
Definition at line 60 of file MasTrackerManager.mm.
1.8.14