KudanAR - iOS
ARCamera Class Reference

#import <ARCamera.h>

+ Inheritance diagram for ARCamera:
+ Collaboration diagram for ARCamera:

Class Methods

(ARCamera *) + defaultCamera
 
- Class Methods inherited from ARNode
(instancetype) + nodeWithName:
 

Properties

ARMatrix4projectionMatrix
 
CGPoint frustumPlaneDistance
 
CGPoint principlePoint
 
CGPoint fov
 
ARViewPortviewPort
 
- Properties inherited from ARNode
NSString * name
 
ARNodeparent
 
NSArray< ARNode * > * children
 
NSArray * descendants
 
ARVector3position
 
ARVector3scale
 
ARQuaternionorientation
 
ARMatrix4localTransform
 
ARMatrix4worldTransform
 
ARMatrix4fullTransform
 
ARQuaternionfullOrientation
 
ARQuaternionworldOrientation
 
ARVector3worldScale
 
ARVector3worldPosition
 
ARVector3fullPosition
 
ARNodeworld
 
NSUInteger childCount
 
BOOL visible
 

Additional Inherited Members

- Instance Methods inherited from ARNode
(void) - addChild:
 
(void) - addChildren:
 
(void) - removeChild:
 
(void) - removeAllChildren
 
(void) - remove
 
(ARNode *) - findChildWithName:
 
(void) - markWorldTransformAsDirty
 
(void) - translateByX:y:z:
 
(void) - translateByX:y:z:transformSpace:
 
(void) - translateByVector:
 
(void) - translateByVector:transformSpace:
 
(void) - scaleByUniform:
 
(void) - scaleByX:y:z:
 
(void) - scaleByVector:
 
(void) - rotateByDegrees:axisX:y:z:
 
(void) - rotateByRadians:axisX:y:z:
 
(void) - rotateByQuaternion:
 
(ARVector3 *) - positionToWorld:
 
(ARVector3 *) - positionToEye:
 
(ARQuaternion *) - orientationToWorld:
 
(ARQuaternion *) - orientationToEye:
 
(CGPoint) - viewPortFromNodePosition:
 
(void) - render
 
(void) - preRender
 
(void) - postRender
 
(void) - addTouchTarget:withAction:
 
(void) - didReceiveTouch
 
(ARVector3 *) - nodeFromViewPort:
 
- Protected Member Functions inherited from ARNode
(typedef) - NS_ENUM
 

Detailed Description

An ARCamera is a subclass of ARNode that represents the root of the scenegraph. It is attached to an ARViewPort and controls the projection.

Method Documentation

+ (ARCamera *) defaultCamera

Reference to a default static camera. Will be created if it hasn't already.

Example of use:

Property Documentation

- (CGPoint) fov
readwritenonatomicassign

The cameras horizontal and verticle field of view. The x represents the horizontal fov and the y represents the vertical fov.

- (CGPoint) frustumPlaneDistance
readwritenonatomicassign

The far plane distance of the camera frustum.

- (CGPoint) principlePoint
readwritenonatomicassign

The principle point of the camera. This is where the optical axis intersects the image plane.

- (ARMatrix4*) projectionMatrix
readwritenonatomicassign

The projection matrix representing the camera intrinsics. A computer monitor is a 2D surface. A 3D scene rendered must therefore be projected onto the computer screen as a 2D image. The projection matrix is used for this projection transformation. First, it transforms all vertex data from eye space to world space. The resulting coordinates are then transformed from camera space to screen space.

- (ARViewPort*) viewPort
readwritenonatomicweak

The viewport this camera is attached to, or nil if detached.


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