hmi.graphics.util
Class LoadDaeHumanoidInTPose

java.lang.Object
  extended by hmi.graphics.util.LoadDaeHumanoidInTPose

public final class LoadDaeHumanoidInTPose
extends Object

Helper function class to load a Humanoid from a dae file and set it in the H-anim pose. Useful when a fullfledged ElckerlycDemoEnvironment is not needed.

Author:
welberge

Field Summary
private  VJoint animationJoint
           
private  VGLNode avatarNode
           
private  GNode gnode
           
private  VJoint renderJoint
           
 
Constructor Summary
private LoadDaeHumanoidInTPose()
           
  LoadDaeHumanoidInTPose(Resources resources, String daeFile)
           
 
Method Summary
private  void alignJoint(String jointName, String nextJoint, float[] dir)
           
private  void deformMesh(String name, GNode node, float[] q)
           
private  GNode findNode(GNode start, String name)
           
 VJoint getAnimationJoint()
           
 VGLNode getAvatarNode()
           
 GNode getGnode()
           
 VJoint getRenderJoint()
           
private  void rotateMeshInNodes(GNode startNode, float[] q)
           
private  void rotateVJoint(VJoint v, float[] q)
           
private  void transJoint(VJoint v, float[] vPrev)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

animationJoint

private VJoint animationJoint

avatarNode

private VGLNode avatarNode

renderJoint

private VJoint renderJoint

gnode

private GNode gnode
Constructor Detail

LoadDaeHumanoidInTPose

private LoadDaeHumanoidInTPose()

LoadDaeHumanoidInTPose

public LoadDaeHumanoidInTPose(Resources resources,
                              String daeFile)
Method Detail

getAnimationJoint

public VJoint getAnimationJoint()
Returns:
the animationJoint

getAvatarNode

public VGLNode getAvatarNode()
Returns:
the avatarNode

getRenderJoint

public VJoint getRenderJoint()
Returns:
the renderJoint

getGnode

public GNode getGnode()

alignJoint

private void alignJoint(String jointName,
                        String nextJoint,
                        float[] dir)

deformMesh

private void deformMesh(String name,
                        GNode node,
                        float[] q)

rotateVJoint

private void rotateVJoint(VJoint v,
                          float[] q)

transJoint

private void transJoint(VJoint v,
                        float[] vPrev)

findNode

private GNode findNode(GNode start,
                       String name)

rotateMeshInNodes

private void rotateMeshInNodes(GNode startNode,
                               float[] q)