|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jme.scene.Spatial
com.jme.scene.Node
com.model.md5.MD5Node
public class MD5Node
MD5Node is the final product of MD5 loading process.
ModelNode maintains the loaded IJoint
and IMesh instances and update them accordingly.
MD5Node provides the cloning functionality so that
users can fast clone model nodes that may be used by multiple
entities. The newly cloned MD5Node is already
initialized and ready to be used.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jme.scene.Spatial |
|---|
com.jme.scene.Spatial.CullHint, com.jme.scene.Spatial.LightCombineMode, com.jme.scene.Spatial.NormalsMode, com.jme.scene.Spatial.TextureCombineMode |
| Field Summary |
|---|
| Fields inherited from class com.jme.scene.Node |
|---|
children |
| Fields inherited from class com.jme.scene.Spatial |
|---|
cullHint, frustrumIntersects, geometricalControllers, isCollidable, lightCombineMode, localRotation, localScale, localTranslation, LOCKED_BOUNDS, LOCKED_BRANCH, LOCKED_MESH_DATA, LOCKED_NONE, LOCKED_SHADOWS, LOCKED_TRANSFORMS, lockedMode, name, normalsMode, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder |
| Constructor Summary | |
|---|---|
MD5Node()
Constructor of MD5Node. |
|
MD5Node(java.lang.String name,
IJoint[] joints,
IMesh[] meshes)
Constructor of MD5Node. |
|
| Method Summary | |
|---|---|
void |
addController(IMD5Controller controller)
Add a controller to control this node. |
void |
attachChild(IMD5Node node,
int jointIndex)
Attach the given MD5 node to the joint with given index. |
void |
attachChild(IMD5Node node,
java.lang.String jointID)
Attach the given MD5 node to the joint with given ID. |
void |
attachDependent(IMD5Node node)
Attach the given MD5 node as a dependent child which shares the skeleton with this node. |
IMD5Node |
clone()
Clone this MD5 node. |
boolean |
equals(java.lang.Object object)
|
void |
flagUpdate()
Notify the IMD5Node that its skeleton has been modified. |
java.lang.Class |
getClassTag()
|
IJoint |
getJoint(int index)
Retrieve the joint with given index. |
IJoint[] |
getJoints()
Retrieve the skeleton of this MD5 node. |
IMesh |
getMesh(int index)
Retrieve the mesh with given index. |
IMesh[] |
getMeshes()
Retrieve all the meshes maintained by this node. |
IJoint |
getRootJoint()
Retrieve the root joint. |
int |
hashCode()
|
void |
initialize()
Initialize the IMD5Node. |
boolean |
isDependent()
Check if this MD5 node is a dependent child of some other node. |
void |
read(com.jme.util.export.JMEImporter im)
|
void |
removeChild(IMD5Node node)
Remove the given child from this node. |
void |
removeController(IMD5Controller controller)
Remove the given controller from this node. |
void |
removeDependent(IMD5Node node)
Remove the given dependent child. |
protected void |
setDependent(boolean dependent,
IMD5Node parent)
Set this MD5 node as a dependent child of another MD5 node. |
java.lang.String |
toString()
|
void |
updateGeometricState(float time,
boolean initiator)
|
void |
write(com.jme.util.export.JMEExporter ex)
|
| Methods inherited from class com.jme.scene.Node |
|---|
applyRenderState, attachChild, attachChildAt, childChange, detachAllChildren, detachChild, detachChildAt, detachChildNamed, draw, findCollisions, findPick, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, hasCollision, lockBounds, lockMeshes, lockShadows, lockTransforms, setModelBound, sortLights, swapChildren, unlockBounds, unlockMeshes, unlockShadows, unlockTransforms, updateModelBound, updateWorldBound, updateWorldData, updateWorldVectors |
| Methods inherited from class com.jme.scene.Spatial |
|---|
addController, calculateCollisions, calculatePick, clearControllers, clearRenderState, clearRenderState, getController, getControllerCount, getControllers, getCullHint, getLastFrustumIntersection, getLightCombineMode, getLocalCullHint, getLocalLightCombineMode, getLocalNormalsMode, getLocalRenderQueueMode, getLocalRotation, getLocalScale, getLocalTextureCombineMode, getLocalToWorldMatrix, getLocalTranslation, getLocks, getName, getNormalsMode, getParent, getRenderQueueMode, getRenderState, getRenderState, getTextureCombineMode, getUserData, getWorldBound, getWorldRotation, getWorldScale, getWorldTranslation, getZOrder, hasAncestor, isCollidable, localToWorld, lock, lock, lockBranch, lockMeshes, lookAt, onDraw, propagateBoundToRoot, propagateStatesFromRoot, removeController, removeController, removeFromParent, removeUserData, rotateUpTo, setCullHint, setIsCollidable, setLastFrustumIntersection, setLightCombineMode, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation, setLocalTranslation, setLocks, setLocks, setName, setNormalsMode, setParent, setRenderQueueMode, setRenderState, setTextureCombineMode, setUserData, setZOrder, setZOrder, unlock, unlock, unlockBranch, unlockMeshes, updateRenderState, updateRenderState, updateWorldRotation, updateWorldScale, updateWorldTranslation, updateWorldVectors, worldToLocal |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.model.md5.interfaces.IMD5Node |
|---|
getName |
| Constructor Detail |
|---|
public MD5Node()
MD5Node.
public MD5Node(java.lang.String name,
IJoint[] joints,
IMesh[] meshes)
MD5Node.
name - The String name.| Method Detail |
|---|
public void initialize()
IMD5NodeIMD5Node.
initialize in interface IMD5Node
public void updateGeometricState(float time,
boolean initiator)
updateGeometricState in class com.jme.scene.Spatialpublic void addController(IMD5Controller controller)
IMD5Node
addController in interface IMD5Nodecontroller - The IMD5Controller instance.
public void attachChild(IMD5Node node,
java.lang.String jointID)
IMD5Node
attachChild in interface IMD5Nodenode - The IMD5Node needs to be attached.jointID - The String ID of the joint.
public void attachChild(IMD5Node node,
int jointIndex)
IMD5Node
attachChild in interface IMD5Nodenode - The IMD5Node needs to be attached.jointIndex - The Integer index of the joint.public void attachDependent(IMD5Node node)
IMD5Node
attachDependent in interface IMD5Nodenode - The dependent IMD5Node needs to be attached.public void removeController(IMD5Controller controller)
IMD5Node
removeController in interface IMD5Nodecontroller - The IMD5Controller instance.public void removeChild(IMD5Node node)
IMD5Node
removeChild in interface IMD5Nodenode - The IMD5Node instance.public void removeDependent(IMD5Node node)
IMD5Node
removeDependent in interface IMD5Nodenode - The IMD5Node instance.public void flagUpdate()
IMD5NodeIMD5Node that its skeleton has been modified.
flagUpdate in interface IMD5Node
protected void setDependent(boolean dependent,
IMD5Node parent)
dependent - True if this mesh should be set as dependent.parent - The IMD5Node parent.public IJoint[] getJoints()
IMD5Node
getJoints in interface IMD5NodeIJoint.public IJoint getJoint(int index)
IMD5Node
getJoint in interface IMD5Nodeindex - The Integer index number.
IJoint instance.public IJoint getRootJoint()
IMD5Node
getRootJoint in interface IMD5NodeIJoint instance.public IMesh getMesh(int index)
IMD5Node
getMesh in interface IMD5Nodeindex - The Integer index number.
IMesh instance.public IMesh[] getMeshes()
IMD5Node
getMeshes in interface IMD5NodeIMesh instances.public java.lang.Class getClassTag()
getClassTag in interface com.jme.util.export.SavablegetClassTag in class com.jme.scene.Spatialpublic boolean isDependent()
IMD5Node
isDependent in interface IMD5Node
public void write(com.jme.util.export.JMEExporter ex)
throws java.io.IOException
write in interface com.jme.util.export.Savablewrite in class com.jme.scene.Nodejava.io.IOException
public void read(com.jme.util.export.JMEImporter im)
throws java.io.IOException
read in interface com.jme.util.export.Savableread in class com.jme.scene.Nodejava.io.IOExceptionpublic java.lang.String toString()
toString in class com.jme.scene.Spatialpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic IMD5Node clone()
IMD5Node
clone in interface IMD5Nodeclone in class java.lang.ObjectIMD5Node instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||