Pikkart AR SDK  3.5
iOS SDK references
PKTRecognitionController.h
1 /* ===============================================================================
2  * Copyright (c) 2016 Pikkart S.r.l. All Rights Reserved.
3  * Pikkart is a trademark of Pikkart S.r.l., registered in Europe,
4  * the United States and other countries.
5  *
6  * This file is part of Pikkart AR Recognition SDK.
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ===============================================================================*/
20 
21 #import <Foundation/Foundation.h>
22 #import <GLKit/GLKit.h>
23 #import <AVFoundation/AVFoundation.h>
24 
25 #import "PKTRecognitionOptions.h"
26 #import "PKTIRecognitionListener.h"
27 #import "PKTINetworkInfoProvider.h"
28 
29 
30 typedef void(^PKTRecognitionControllerCompletionHandler)(void);
32 typedef NS_ENUM(NSInteger, PKTRecognitionFocusMode) {
33  PKTFocusModeLocked = AVCaptureFocusModeLocked,
34  PKTFocusModeAutoFocus = AVCaptureFocusModeAutoFocus,
35  PKTFocusModeContinuousAutoFocus = AVCaptureFocusModeContinuousAutoFocus,
36  PKTFocusModeCenter = PKTFocusModeContinuousAutoFocus + 1,
37  PKTFocusModeCenterTap = PKTFocusModeContinuousAutoFocus +2
38 };
48 @interface PKTRecognitionController : GLKViewController<PKTIRecognitionListener,PKTINetworkInfoProvider>
49 
55 -(void)StartRecognition:(PKTRecognitionOptions *)recognitionOptions
56  andRecognitionCallback:(id<PKTIRecognitionListener>) recognitionCallback;
57 
62 
66 -(void)StopRecognition;
67 
72 -(void)CloseWithSessionReset:(PKTRecognitionControllerCompletionHandler)completionHandler;
77 -(void)ChangeRecognitionOptions:(PKTRecognitionOptions*) options;
78 
82 -(bool)isActive;
83 
88 -(bool)isTracking;
89 
95 
100 -(void)getCurrentProjectionMatrix:(float **)matrixPointer;
101 
106 -(void)getCurrentModelViewMatrix:(float **)matrixPointer;
107 
112 -(bool)enableTorch;
113 
118 -(bool)disableTorch;
119 
125 -(void)RenderCameraWithViewPortSize:(CGSize) viewPortSize
126  andAngle:(int)angle;
127 
132 -(void)setFocusMode:(PKTRecognitionFocusMode)focusMode;
133 
138 -(PKTRecognitionFocusMode)getFocusMode;
139 
144 -(void)setMarkerCacheSize:(int) markerCacheSize;
145 
149 -(void) DisableRecognition;
150 
154 -(void)EnableRecognition;
155 
159 -(bool)IsRecognitionEnabled;
160 
165 
170 
171 @end
PKTIRecognitionListener protocol.
Definition: PKTIRecognitionListener.h:24
void DisableRecognitionEffect()
disable the orange dots recognition effect
void StopRecognition()
Stop Recognition Session.
PKTMarker * getCurrentMarker()
Get Current Tracking Marker.
bool isTracking()
Check if recognition session has been tracked a marker.
void DisableRecognition()
Disable the recognition system.
bool IsRecognitionEnabled()
Is the recognition system enabled.
PKTMarker class.
Definition: PKTMarker.h:34
void EnableRecognitionEffect()
enable the orange dots recognition effect
PKTRecognitionFocusMode getFocusMode()
Get focus mode on Capture Device.
bool isActive()
Check if recognition session is running.
The Pikkart Augmented Reality View Controller.
Definition: PKTRecognitionController.h:48
bool disableTorch()
Disable Torch on device, if available.
bool enableTorch()
Enable Torch on device, if available.
Pikkart Recognition Process tracking options.
Definition: PKTRecognitionOptions.h:47
void StopRecognitionWithoutCameraReset()
Stop Recognition Session without AVCaptureSession reset.
void EnableRecognition()
Enables the recognition system.