KudanAR - Android  1.6.0
ARModelNode Class Reference

Inherits ARNode.

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

◆ getCurrentAnimationTime()

long ARModelNode.getCurrentAnimationTime ( )

Returns current play time of an ARModel animation.

Returns
long Current animation time.

◆ getMeshNodes()

List<ARMeshNode> ARModelNode.getMeshNodes ( )

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

Returns
The list of ARMeshNodes for the imported model.

◆ pause()

void ARModelNode.pause ( )

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

◆ play()

void ARModelNode.play ( )

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

◆ preRender()

void ARModelNode.preRender ( )

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

Reimplemented from ARNode.

◆ reset()

void ARModelNode.reset ( )

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,

◆ setBlendAnimationChannels()

void ARModelNode.setBlendAnimationChannels ( List< ARBlendAnimationChannel animationChannels)

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

Parameters
animationChannelsa List of ARAnimationChannel

◆ setCurrentAnimationTime()

void ARModelNode.setCurrentAnimationTime ( long  mCurrentAnimationTime)

Sets the current play time of an ARModel animation.

◆ setMeshNodes()

void ARModelNode.setMeshNodes ( List< ARMeshNode meshNodes)

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

Parameters
meshNodesThe ARMeshNodes that make up an ARModel.

◆ setNodeAnimationChannels()

void ARModelNode.setNodeAnimationChannels ( List< ARAnimationChannel animationChannels)

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: