hmi.graphics.util
Class SeamlessDaeHumanoidLoader

java.lang.Object
  extended by hmi.graphics.util.SeamlessDaeHumanoidLoader
All Implemented Interfaces:
DaeHumanoidLoader

public final class SeamlessDaeHumanoidLoader
extends Object
implements DaeHumanoidLoader

Helper class to load a seamless humanoid from a dae file. Useful when a fullfledged ElckerlycDemoEnvironment is not needed. On request, after loading, the "null pose" for the humanoid is the H-Anim null pose. Assumption about the collada file: - after applying the joint renaming file, the animation root joint is called HumanoidRoot

Author:
Herwin van Welbergen, Dennis Reidsma

Field Summary
private  VJoint avatarAnimationRootJoint
           
private  VGLNode avatarRenderNode
           
private  VJoint avatarRenderRootJoint
           
private  GLScene glScene
           
 
Constructor Summary
private SeamlessDaeHumanoidLoader()
           
  SeamlessDaeHumanoidLoader(String id, Resources resources, String daeFile, String colladaRenamingFile, float colladaScalingFactor, String colladaIncludeDir, boolean setToHAnim, String colladaRenderRootNode)
           
 
Method Summary
 VJoint getAvatarAnimationRootJoint()
           
 VGLNode getAvatarRenderNode()
           
 VJoint getAvatarRenderRootJoint()
           
 GLScene getGLScene()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

avatarAnimationRootJoint

private VJoint avatarAnimationRootJoint

avatarRenderNode

private VGLNode avatarRenderNode

avatarRenderRootJoint

private VJoint avatarRenderRootJoint

glScene

private GLScene glScene
Constructor Detail

SeamlessDaeHumanoidLoader

private SeamlessDaeHumanoidLoader()

SeamlessDaeHumanoidLoader

public SeamlessDaeHumanoidLoader(String id,
                                 Resources resources,
                                 String daeFile,
                                 String colladaRenamingFile,
                                 float colladaScalingFactor,
                                 String colladaIncludeDir,
                                 boolean setToHAnim,
                                 String colladaRenderRootNode)
                          throws IOException
Throws:
IOException
Method Detail

getAvatarAnimationRootJoint

public VJoint getAvatarAnimationRootJoint()
Specified by:
getAvatarAnimationRootJoint in interface DaeHumanoidLoader
Returns:
the avatarAnimationRootJoint

getAvatarRenderNode

public VGLNode getAvatarRenderNode()
Specified by:
getAvatarRenderNode in interface DaeHumanoidLoader
Returns:
the avatarRenderNode

getAvatarRenderRootJoint

public VJoint getAvatarRenderRootJoint()
Specified by:
getAvatarRenderRootJoint in interface DaeHumanoidLoader
Returns:
the avatarRenderRootJoint

getGLScene

public GLScene getGLScene()
Specified by:
getGLScene in interface DaeHumanoidLoader
Returns:
the GLScene