Pikkart AR SDK  3.1
iOS SDK references
PKTCameraController.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(^PKTCameraControllerCompletionHandler)();
44 @interface PKTCameraController : GLKViewController<PKTIRecognitionListener,PKTINetworkInfoProvider>
45 
51 -(void)StartRecognition:(PKTRecognitionOptions *)recognitionOptions
52  andRecognitionCallback:(id<PKTIRecognitionListener>) recognitionCallback;
53 
57 -(void)StopRecognition;
58 
63 -(void)CloseWithSessionReset:(PKTCameraControllerCompletionHandler)completionHandler;
68 -(void)ChangeRecognitionOptions:(PKTRecognitionOptions*) options;
69 
73 -(bool)isActive;
74 
79 -(bool)isTracking;
80 
86 
91 -(void)getCurrentProjectionMatrix:(float **)matrixPointer;
92 
97 -(void)getCurrentModelViewMatrix:(float **)matrixPointer;
98 
103 -(bool)enableTorch;
104 
109 -(bool)disableTorch;
110 
116 -(void)RenderCameraWithViewPortSize:(CGSize) viewPortSize
117  andAngle:(int)angle;
118 
123 -(void)setFocusMode:(AVCaptureFocusMode)focusMode;
124 
129 -(AVCaptureFocusMode)getFocusMode;
130 
135 -(void)setMarkerCacheSize:(int) markerCacheSize;
136 
137 
138 @end
PKTMarker * getCurrentMarker()
Get Current Tracking Marker.
PKTIRecognitionListener protocol.
Definition: PKTIRecognitionListener.h:24
bool isTracking()
Check if recognition session has been tracked a marker.
PKTMarker class.
Definition: PKTMarker.h:34
AVCaptureFocusMode getFocusMode()
Get focus mode on Capture Device.
bool enableTorch()
Enable Torch on device, if available.
void StopRecognition()
Stop Recognition Session without AVCaptureSession reset.
bool isActive()
Check if recognition session is running.
The Pikkart Augmented Reality View Controller.
Definition: PKTCameraController.h:44
bool disableTorch()
Disable Torch on device, if available.
Pikkart Recognition Process tracking options.
Definition: PKTRecognitionOptions.h:47