KudanAR - iOS
ARView Class Reference

#import <ARView.h>

+ Inheritance diagram for ARView:
+ Collaboration diagram for ARView:

Instance Methods

(UIImage *) - screenshot
 
(void) - didRotateToInterfaceOrientation:
 
(instancetype) - initWithFrame:interfaceOrientation:
 

Properties

ARRenderTargetMainrenderTarget
 

Detailed Description

An ARView encapsulates AR activities.

Method Documentation

- (instancetype) initWithFrame: (CGRect)  frame
interfaceOrientation: (UIInterfaceOrientation)  orientation 

Initialise a view with the given frame at the given interface orientation.

Example of use:

CGRect frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
ARView *view = [[ARView alloc] initWithFrame:frame interfaceOrientation:[[UIApplication sharedApplication] statusBarOrientation]];
Parameters
frameThe frame for the view.
interfaceOrientationThe orientation at the time of creation. ARView needs to keep track of this to function properly.
- (UIImage *) screenshot

Take a screenshot of the current render target. To use this method, it is recommended to use it via the ARCameraView in your ARCameraViewController.

Example of use:

UIImage image = [self.cameraView screenshot];
Returns
A UIImage containing the current framebuffer of the main render target. Resolution will match that of the renderTarget.

Property Documentation

- (ARRenderTargetMain*) renderTarget
readwritenonatomicassign

The ARRenderTarget associated with this view.


The documentation for this class was generated from the following file: