KudanAR - iOS
ARCameraView Class Reference

#import <ARCameraView.h>

+ Inheritance diagram for ARCameraView:
+ Collaboration diagram for ARCameraView:

Instance Methods

(void) - pause
 
(void) - resume
 
(void) - didReceiveNewFrame:timeStamp:
 
- Instance Methods inherited from ARView
(UIImage *) - screenshot
 
(void) - didRotateToInterfaceOrientation:
 
(instancetype) - initWithFrame:interfaceOrientation:
 
- Instance Methods inherited from <ARCameraStreamEvent>
(void) - didReceiveNewFrameWithLuma:chroma:timeStamp:
 

Properties

ARTexturecameraTexture
 
ARCameraViewControllercameraViewController
 
ARViewPortcameraViewPort
 
ARViewPortcontentViewPort
 
ARViewPortpointsViewPort
 
- Properties inherited from ARView
ARRenderTargetMainrenderTarget
 

Detailed Description

An ARCameraView is a subclass of ARView that contains viewports for the automatic rendering of the camera image, content and point clouds.

Method Documentation

- (void) didReceiveNewFrame: (NSData *)  data
timeStamp: (NSTimeInterval)  timeStamp 

Method called when a new camera frame is received. Image data is in the YUV format. The first WxH bytes of this data will be the greyscale image. It is possible to hook into this method and get the camera data in order to use it for other purposes.

Parameters
dataThe data in greyscale.
timeStampthe time the frame was received.

Reimplemented from <ARCameraStreamEvent>.

- (void) pause

Resume rendering of the camera view.

- (void) resume

Pause rendering of the camera view.

Property Documentation

- (ARTexture*) cameraTexture
readwritenonatomicassign

The camera texture that the camera stream is drawing to. Essentially, this is the camera feed seen whilst running an AR scene.

- (ARCameraViewController*) cameraViewController
readwritenonatomicweak

The ARCameraViewController that contains this view.

- (ARViewPort*) cameraViewPort
readwritenonatomicassign

The viewport responsible for displaying the camera feed. This has an orthographic projection.

- (ARViewPort*) contentViewPort
readwritenonatomicassign

The viewport responsible for displaying any AR content, such as images, videos or 3D models, on top of the camera feed. This has a perspective projection.


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