KudanAR - iOS  1.6.0
ARCameraView Class Reference

#import <ARCameraView.h>

Inherits ARView, and <ARCameraStreamEvent>.

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

◆ didReceiveNewFrame:timeStamp:

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

Method called when a new camera frame is received. Image data is the Y component of a YUV format image. It is possible to hook into this method and get the camera data in order to use it for other purposes.

Parameters
dataThe Y component of the incoming image, in YUV format.
timeStampthe time the frame was received.

Reimplemented from <ARCameraStreamEvent>.

◆ pause

- (void) pause

Pause rendering of the camera view.

◆ resume

- (void) resume

Resume rendering of the camera view.

Property Documentation

◆ cameraTexture

- (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.

◆ cameraViewController

- (ARCameraViewController*) cameraViewController
readwritenonatomicweak

The ARCameraViewController that contains this view.

◆ cameraViewPort

- (ARViewPort*) cameraViewPort
readwritenonatomicassign

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

◆ contentViewPort

- (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 files: