org.xith3d.loaders.models.impl.dae
Class DaeModel

java.lang.Object
  extended by org.xith3d.scenegraph.SceneGraphObject
      extended by org.xith3d.scenegraph.Node
          extended by org.xith3d.scenegraph.GroupNode
              extended by org.xith3d.scenegraph.Group
                  extended by org.xith3d.loaders.models.Model
                      extended by org.xith3d.loaders.models.impl.dae.DaeModel
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.spatial.SpatialNode, UpdatableNode

public class DaeModel
extends Model

A model embeddable in a Xith3D scenegraph


Field Summary
 
Fields inherited from class org.xith3d.scenegraph.GroupNode
children, hostGroup, numChildren, totalNumChildren, totalNumShapes
 
Fields inherited from class org.xith3d.scenegraph.Node
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, transformGroup, untransformedBounds
 
Fields inherited from class org.xith3d.scenegraph.SceneGraphObject
XITH3D_USERDATAKEY_OLDUSERDATA
 
Constructor Summary
DaeModel(org.jagatoo.loaders.models.collada.datastructs.AssetFolder assetFolder, org.jagatoo.loaders.models.collada.datastructs.visualscenes.Node colladaNode)
          Creates a new Xith3D node.
 
Method Summary
 org.jagatoo.loaders.models.collada.datastructs.AssetFolder getAssetFolder()
           
 Model getSharedInstance()
           
 void interpolateAnimation(float animStartTime, float absAnimTime)
          Interpolates the animations towards the next frame.
 boolean update(View view, org.openmali.spatial.bodies.Frustum frustum, long nanoTime, long nanoStep)
          
 
Methods inherited from class org.xith3d.loaders.models.Model
addAnimationListener, addNamedObject, dumpAnimations, dumpNamedObjects, fireOnAnimationFinished, fireOnAnimationStarted, getAnimation, getAnimation, getAnimations, getAnimationsCount, getCamera, getCameras, getCamerasCount, getCurrentAnimation, getDefaultPickHost, getFog, getFogs, getFogsCount, getLight, getLights, getLightsCount, getMainGroup, getMetaData, getMountTransform, getMountTransform, getMountTransforms, getMountTransformsCount, getNamedObject, getNamedObjects, getNamedObjectsCount, getNestedTransform, getNestedTransforms, getShape, getShapes, getShapesCount, getSkyBox, getSound, getSounds, getSoundsCount, getSpawnTransform, getSpawnTransforms, getSpawnTransformsCount, hasAnimations, removeAnimationListener, setAnimations, setCameras, setCurrentAnimation, setCurrentAnimation, setCurrentAnimation, setDefaultPickHost, setFogs, setLights, setMainGroup, setMetaData, setMountTransforms, setNestedTransforms, setShapes, setSkyBox, setSounds, setSpawnTransforms
 
Methods inherited from class org.xith3d.scenegraph.Group
moveTo, newInstance, traverse
 
Methods inherited from class org.xith3d.scenegraph.GroupNode
absorbDetails, addChild, addChild, checkChild, dump, dump, ensureCapacity, expandBounds, findAll, findAll, findFirst, findFirst, freeOpenGLResources, getChild, getChildren, getChildren, getClipper, getPickHost, getScissorRect, getTotalNumChildren, getTotalNumShapes, indexOf, isPickHost, mergeInheritedClipper, mergeInheritedNodes, mergeInheritedScissorRect, numChildren, removeAllChildren, removeChild, removeChild, setBoundsDirty, setBoundsDirtyUpward, setChild, setClipper, setLive, setPickHost, setPickHost, setScissorRect, setShowBounds, sharedCopy, sharedCopy, traverse, unmergeInheritedFog, unmergeInheritedLight, unmergeInheritedNodes, updateBounds, updateBoundsCheap
 
Methods inherited from class org.xith3d.scenegraph.Node
cloneNode, detach, duplicateNode, freeOpenGLResources, getBounds, getBoundsAutoCompute, getBoundsType, getBoundsTypeHint, getDefaultPickable, getIndentString, getInheritedNodeAttributes, getModListener, getOrderedChild, getOrderedState, getParent, getRoot, getShadowAttachment, getShowBounds, getTransformGroup, getTreeCell, getWorldBounds, getWorldTransform, getWorldTransform, isBillboard, isIgnoreBounds, isOccluder, isPickable, isRenderable, isUpdatableNode, popGlobalIgnoreBounds, printBounds, pushGlobalIgnoreBounds, setBounds, setBoundsAutoCompute, setBoundsTypeHint, setDefaultPickable, setGlobalIgnoreBounds, setIgnoreBounds, setIsOccluder, setModListener, setOrderedChild, setParent, setPickable, setPickableRecursive, setPickableRecursive, setRenderable, setShadowAttachment, setShowBounds, setTransformGroup, setTreeCell, updateOrderedChild, updateTransformGroup, updateWorldTransform
 
Methods inherited from class org.xith3d.scenegraph.SceneGraphObject
getName, getUserData, getUserData, getUserDataMap, isLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DaeModel

public DaeModel(org.jagatoo.loaders.models.collada.datastructs.AssetFolder assetFolder,
                org.jagatoo.loaders.models.collada.datastructs.visualscenes.Node colladaNode)
Creates a new Xith3D node.

Parameters:
assetFolder -
colladaNode - The data node used to extract information to be displayed by Xith3D
Method Detail

getAssetFolder

public final org.jagatoo.loaders.models.collada.datastructs.AssetFolder getAssetFolder()

interpolateAnimation

public void interpolateAnimation(float animStartTime,
                                 float absAnimTime)
Description copied from class: Model
Interpolates the animations towards the next frame.

Overrides:
interpolateAnimation in class Model
Parameters:
animStartTime - the game-time, at which the current loop of the animation started
absAnimTime - the amount of game-time, the current loop of the current animation runs

update

public boolean update(View view,
                      org.openmali.spatial.bodies.Frustum frustum,
                      long nanoTime,
                      long nanoStep)
Description copied from class: Model

Specified by:
update in interface UpdatableNode
Overrides:
update in class Model
Parameters:
view - the view that's currently used for rendering
frustum - view frustum
Returns:
True if this should be rendered, false if it should not.

getSharedInstance

public Model getSharedInstance()
Overrides:
getSharedInstance in class Model
Returns:
a new Instance of this Model. It will at least share it's Geometry and animation data with this one.