KudanAR - Android
ARModelNode Class Reference
+ Inheritance diagram for ARModelNode:
+ Collaboration diagram for ARModelNode:

Public Member Functions

void setMeshNodes (List< ARMeshNode > meshNodes)
 
List< ARMeshNodegetMeshNodes ()
 
void setNodeAnimationChannels (List< ARAnimationChannel > animationChannels)
 
void setBlendAnimationChannels (List< ARBlendAnimationChannel > animationChannels)
 
void play ()
 
void pause ()
 
void reset ()
 
void preRender ()
 
long getCurrentAnimationTime ()
 
void setCurrentAnimationTime (long mCurrentAnimationTime)
 
- 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 ()
 
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

The ARModelNode is a subclass of ARNode that represents an imported 3D model. It is capable of displaying animations and contains channels for controlling these animations.

Member Function Documentation

long getCurrentAnimationTime ( )
inline

Returns current play time of an ARModel animation.

Returns
long Current animation time.
List<ARMeshNode> getMeshNodes ( )
inline

Returns the complete list of all ARMeshNodes imported from the .armodel file.

Returns
The list of ARMeshNodes for the imported model.
void pause ( )
inline

Pauses the animation, if the model has one. The current play time remains the same.

void play ( )
inline

Starts the animation, if the model has one. Resumes from the current play time.

void preRender ( )
inline

ARRendererListener interface method. Called before each frame is drawn. Updates ARModel if it is animated and the ARModel is playing.

void reset ( )
inline

Resets the play time of the animation to 0. This will cause the animation to play from the beginning. This can be called whether the animation is playing or has ben paused,

void setBlendAnimationChannels ( List< ARBlendAnimationChannel >  animationChannels)
inline

Sets ARModels' ARBlendAnimationChannels. This is a channel used for updated a models blend animation.

Parameters
animationChannelsa List of ARAnimationChannel
void setCurrentAnimationTime ( long  mCurrentAnimationTime)
inline

Sets the current play time of an ARModel animation.

void setMeshNodes ( List< ARMeshNode meshNodes)
inline

Sets a ARModel's ARMeshNodes to a list of ARMeshNodes.

Parameters
meshNodesThe ARMeshNodes that make up an ARModel.
void setNodeAnimationChannels ( List< ARAnimationChannel >  animationChannels)
inline

Sets ARModel's ARAnimationChannels. This is a channel used for updating a models bone animation.

Parameters
animationChannelsa List of ARAnimationChannel

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