|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.scene.Controller
com.jmex.model.ogrexml.anim.MeshAnimationController
public class MeshAnimationController
Field Summary |
---|
Fields inherited from class com.jme.scene.Controller |
---|
RT_CLAMP, RT_CYCLE, RT_WRAP |
Constructor Summary | |
---|---|
MeshAnimationController()
Used only for Saving/Loading models (all parameters of the non-default constructor are restored from the saved model, but the object must be constructed beforehand) |
|
MeshAnimationController(OgreMesh[] meshes,
MeshAnimationController sourceControl)
Copy constructor. |
|
MeshAnimationController(OgreMesh[] meshes,
Skeleton skeleton,
java.util.Map<java.lang.String,Animation> anims)
|
Method Summary | |
---|---|
java.lang.String |
getActiveAnimation()
|
float |
getAnimationLength(java.lang.String name)
Returns the length of the animation in seconds. |
java.util.Collection<java.lang.String> |
getAnimationNames()
|
Bone |
getBone(java.lang.String name)
Returns a bone with the specified name. |
float |
getCurTime()
|
java.util.Collection<java.lang.String> |
getList()
Deprecated. The name of this method incorrectly implies that a List is returned. Use the method getAnimationNames instead. |
(package private) OgreMesh[] |
getMeshList()
|
(package private) Skeleton |
getSkeleton()
|
boolean |
isHardwareSkinning()
|
void |
read(JMEImporter e)
|
(package private) void |
reset()
|
(package private) void |
resetToBind()
|
boolean |
setAnimation(java.lang.String name)
Sets the currently active animation. |
void |
setCurTime(float time)
Sets the time of the animation. |
void |
setFrameSkip(int framesToSkip)
Enables frameskip LOD. |
void |
setTime(float time)
Deprecated. Use setCurTime |
void |
update(float tpf)
Defined by extending classes, update is a signal to
Controller that it should update whatever object(s) it is controlling. |
void |
write(JMEExporter e)
|
Methods inherited from class com.jme.scene.Controller |
---|
getClassTag, getControllerValues, getMaxTime, getMinTime, getRepeatType, getSpeed, isActive, setActive, setControllerValues, setMaxTime, setMinTime, setRepeatType, setSpeed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jme.util.export.Savable |
---|
getClassTag |
Constructor Detail |
---|
public MeshAnimationController(OgreMesh[] meshes, Skeleton skeleton, java.util.Map<java.lang.String,Animation> anims)
public MeshAnimationController(OgreMesh[] meshes, MeshAnimationController sourceControl)
public MeshAnimationController()
Method Detail |
---|
public Bone getBone(java.lang.String name)
public boolean setAnimation(java.lang.String name)
public float getAnimationLength(java.lang.String name)
public java.lang.String getActiveAnimation()
@Deprecated public java.util.Collection<java.lang.String> getList()
getAnimationNames();
public java.util.Collection<java.lang.String> getAnimationNames()
public void setFrameSkip(int framesToSkip)
framesToSkip
- One frame will be played out of the framesToSkip number.public void setTime(float time)
setCurTime(float)
public void setCurTime(float time)
Skeleton getSkeleton()
OgreMesh[] getMeshList()
void reset()
void resetToBind()
public boolean isHardwareSkinning()
public void update(float tpf)
Controller
update
is a signal to
Controller that it should update whatever object(s) it is controlling.
update
in class Controller
tpf
- The time in seconds between the last call to update and the
current onepublic float getCurTime()
public void write(JMEExporter e) throws java.io.IOException
write
in interface Savable
write
in class Controller
java.io.IOException
public void read(JMEImporter e) throws java.io.IOException
read
in interface Savable
read
in class Controller
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |