MaxstARSDK
MasTrackerManager.h
Go to the documentation of this file.
1 //
2 // MasTrackerManager.h
3 // MaxstAR
4 //
5 // Created by Kimseunglee on 2017. 12. 7..
6 // Copyright © 2017년 Maxst. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "MasTrackingState.h"
11 #import "MasTrackingResult.h"
12 #import "MasSurfaceThumbnail.h"
13 #import "MasGuideInfo.h"
14 
18 @interface MasTrackerManager : NSObject
19 
37 typedef NS_ENUM(int, TrackerType) {
64 };
65 
77 typedef NS_ENUM(int, TrackingOption) {
79  NORMAL_TRACKING = 0x01,
81  EXTENDED_TRACKING = 0x02,
83  ENHANCED_TRACKING = 0x80,
85  MULTI_TRACKING = 0x04,
87  JITTER_REDUCTION_ACTIVATION = 0x08,
89  JITTER_REDUCTION_DEACTIVATION = 0x10,
91  CLOUD_RECOGNITION_AUTO_ACTIVATION = 0x20,
93  CLOUD_RECOGNITION_AUTO_DEACTIVATION = 0x40,
94 };
95 
100 - (void)startTracker:(TrackerType)trackerMask;
101 
105 - (void)stopTracker;
106 
110 - (void)destroyTracker;
111 
116 - (void)addTrackerData:(NSString *)trackingFileName;
117 
123 - (void)removeTrackerData:(NSString *)trackingFileName;
124 
128 - (void)loadTrackerData;
129 
134 - (bool)isTrackerDataLoadCompleted;
135 
140 - (bool)isFusionSupported;
141 
147 - (int)getFusionTrackingState;
148 
153 - (MasTrackingState *)updateTrackingState;
154 
158 - (void)findSurface;
159 
163 - (void)quitFindingSurface;
164 
168 - (void)findImageOfCloudRecognition;
169 
175 - (MasSurfaceThumbnail *)saveSurfaceData:(NSString *)outputFileName;
176 
177 - (void)setVocabulary:(NSString *)filePath;
178 
184 - (void)getWorldPositionFromScreenCoordinate:(float *)screen world:(float *)world;
185 
190 - (MasGuideInfo *)getGuideInformation;
191 
199 - (void)setTrackingOption:(TrackingOption)option;
200 - (void)saveFrames;
201 
207 - (void)setCloudRecognitionSecretId:(NSString *)secretId secretKey:(NSString *)secretKey;
208 
209 @end
210 
Definition: MasGuideInfo.h:13
Contains surface thumbnail image information of first keyframe.
Definition: MasSurfaceThumbnail.h:16
Control AR Engine.
Definition: MasTrackerManager.h:19
TrackingOption
Additional tracking option. @constant NORMAL_TRACKING Normal Tracking (Image Tracker Only) @constant ...
Definition: MasTrackerManager.h:77
@ TRACKER_TYPE_MARKER
Definition: MasTrackerManager.h:43
@ TRACKER_TYPE_OBJECT_FUSION
Definition: MasTrackerManager.h:55
@ TRACKER_TYPE_IMAGE_FUSION
Definition: MasTrackerManager.h:53
@ TRACKER_TYPE_MARKER_FUSION
Definition: MasTrackerManager.h:59
@ TRACKER_TYPE_CODE_SCANNER
Definition: MasTrackerManager.h:39
@ TRACKER_TYPE_OBJECT
Definition: MasTrackerManager.h:45
@ TRACKER_TYPE_QR_TRACKER
Definition: MasTrackerManager.h:51
@ TRACKER_TYPE_CLOUD_RECOGNIZER
Definition: MasTrackerManager.h:49
@ TRACKER_TYPE_INSTANT
Definition: MasTrackerManager.h:47
@ TRACKER_TYPE_INSTANT_FUSION
Definition: MasTrackerManager.h:63
@ TRACKER_TYPE_SPACE
Definition: MasTrackerManager.h:61
@ TRACKER_TYPE_IMAGE
Definition: MasTrackerManager.h:41
@ TRACKER_TYPE_QR_FUSION
Definition: MasTrackerManager.h:57
Tracking state container.
Definition: MasTrackingState.h:21