KudanAR - Android  1.6.0
ARCamera Class Reference

Inherits ARNode.

Public Member Functions

 ARCamera ()
 
void setProjectionMatrix (Matrix4f projection)
 
Matrix4f getProjectionMatrix ()
 
- Public Member Functions inherited from ARNode
 ARNode ()
 
 ARNode (String name)
 
void remove ()
 
void removeAllChildren ()
 
void addChild (ARNode child)
 
ARNode getParent ()
 
void setParent (ARNode parent)
 
List< ARNodegetChildren ()
 
ARNode getWorld ()
 
Vector3f getPosition ()
 
void setPosition (Vector3f position)
 
void setPosition (float x, float y, float z)
 
void translateBy (float x, float y, float z)
 
void scaleBy (float x, float y, float z)
 
Vector3f getScale ()
 
void setScale (Vector3f scale)
 
void setScale (float x, float y, float z)
 
void scaleByUniform (float scale)
 
Quaternion getOrientation ()
 
void setOrientation (Quaternion orientation)
 
void setOrientation (float x, float y, float z, float w)
 
void rotateByQuaternion (Quaternion quaternion)
 
void rotateByDegrees (float angle, float x, float y, float z)
 
Matrix4f getFullTransform ()
 
Vector3f getFullScale ()
 
Quaternion getFullOrientation ()
 
Matrix4f getLocalTransform ()
 
Matrix4f getWorldTransform ()
 
void render ()
 
boolean getVisible ()
 
void setVisible (boolean visible)
 
Quaternion getWorldOrientation ()
 
Vector3f getWorldScale ()
 
Vector3f getWorldPosition ()
 
Vector3f getFullPosition ()
 
String getName ()
 
void setName (String name)
 
void preRender ()
 
void postRender ()
 
ARNode findChildByName (String name)
 
void addChildren (List< ARNode > children)
 
void translateByVector (Vector3f translation)
 
void scaleByVector (Vector3f scale)
 
void rotateByRadians (float angle, float x, float y, float z)
 

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.

Constructor & Destructor Documentation

◆ ARCamera()

ARCamera.ARCamera ( )

Initialises the ARCamera and adds ARArbiTrack, ARGyroPlaceManager and ARImageTracker's worlds as children. These worlds are used to position AR content.

Member Function Documentation

◆ getProjectionMatrix()

Matrix4f ARCamera.getProjectionMatrix ( )

Returns the projection matrix for this ARCamera. This represents the transformation from the camera space to clip space.

Returns
The projection matrix representing the camera intrinsics.

◆ setProjectionMatrix()

void ARCamera.setProjectionMatrix ( Matrix4f  projection)

Sets the camera's projection matrix used to transform objects from camera space to clip space.

Parameters
projectionThe projection matrix representing the camera intrinsics.

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