|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.models.collada.datastructs.geometries.GeometryProvider
org.jagatoo.loaders.models.collada.datastructs.controllers.Controller
org.jagatoo.loaders.models.collada.datastructs.controllers.SkeletalController
public class SkeletalController
A COLLADA Skeletal Controller. It computes mesh deformation from the keyframe information.
GeometryProvider| Field Summary | |
|---|---|
LibraryAnimations |
libAnims
Library Of Animations |
| Fields inherited from class org.jagatoo.loaders.models.collada.datastructs.geometries.GeometryProvider |
|---|
destinationGeometry |
| Constructor Summary | |
|---|---|
SkeletalController(LibraryGeometries libGeoms,
java.lang.String sourceMeshId,
XMLController controller,
LibraryAnimations libAnims,
Skeleton skel)
Creates a new COLLADASkeletalController |
|
| Method Summary | |
|---|---|
void |
calcActions(java.lang.String actionId)
|
COLLADAAction |
getAction(java.lang.String id)
Get a specific action |
java.util.HashMap<java.lang.String,COLLADAAction> |
getActions()
|
ColladaProtoypeModel |
getPrototypeModel()
Get the prototype model (Jagatoo side) used by this model (Game engine side). |
java.lang.String |
getSourceMeshId()
|
boolean |
hasActions()
|
boolean |
isLooping()
|
boolean |
isPlaying()
|
int |
numActions()
|
void |
pause()
Pause the model (stop to play an animation). |
void |
play(COLLADAAction action,
boolean loop)
Starts playing the selected animation |
void |
play(java.lang.String actionId,
boolean loop)
Begin to play a particular action, whatever the model was doing (we don't mind if it was paused or what..) |
void |
resume()
Pause the model (stop to play an animation). |
void |
setSkeleton(Skeleton skeleton)
Set the skeleton of this controller |
Geometry |
updateDestinationGeometry(long currTime)
|
| Methods inherited from class org.jagatoo.loaders.models.collada.datastructs.controllers.Controller |
|---|
getController |
| Methods inherited from class org.jagatoo.loaders.models.collada.datastructs.geometries.GeometryProvider |
|---|
getDestinationGeometry, getLibraryGeometries, setDestinationMesh |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public LibraryAnimations libAnims
| Constructor Detail |
|---|
public SkeletalController(LibraryGeometries libGeoms,
java.lang.String sourceMeshId,
XMLController controller,
LibraryAnimations libAnims,
Skeleton skel)
libGeoms - The LibraryGeometries we need to get our sourceMesh fromsourceMeshId - The source mesh IDcontroller - The XML Controller instancelibAnims - The library of animations to load actions from| Method Detail |
|---|
public java.lang.String getSourceMeshId()
public void play(COLLADAAction action,
boolean loop)
play in interface AnimatableModelaction - The action to playloop - true if we should loop the animationpublic Geometry updateDestinationGeometry(long currTime)
updateDestinationGeometry in class GeometryProvidercurrTime - the frame time in miliseconds
public void setSkeleton(Skeleton skeleton)
skeleton - The skeleton to usepublic final COLLADAAction getAction(java.lang.String id)
AnimatableModel
getAction in interface AnimatableModelid - The ID string of this action
public final java.util.HashMap<java.lang.String,COLLADAAction> getActions()
getActions in interface AnimatableModelpublic ColladaProtoypeModel getPrototypeModel()
AnimatableModel
getPrototypeModel in interface AnimatableModelpublic final int numActions()
numActions in interface AnimatableModelpublic final boolean hasActions()
hasActions in interface AnimatableModelpublic final boolean isLooping()
isLooping in interface AnimatableModelpublic final boolean isPlaying()
isPlaying in interface AnimatableModelpublic void calcActions(java.lang.String actionId)
public void play(java.lang.String actionId,
boolean loop)
AnimatableModel
play in interface AnimatableModelactionId - The ID String of the action to playloop - true if we should loop the animationpublic void pause()
AnimatableModel
pause in interface AnimatableModelpublic void resume()
AnimatableModel
resume in interface AnimatableModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||