|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jme.scene.Controller
com.model.md5.controller.MD5Controller
public class MD5Controller
MD5Controller defines the concrete implementation
of a MD5 controller unit.
MD5Controller interpolates the previous and next
frame then updates the skeleton with interpolated translation
and orientation values.
| Field Summary |
|---|
| Fields inherited from class com.jme.scene.Controller |
|---|
RT_CLAMP, RT_CYCLE, RT_WRAP |
| Constructor Summary | |
|---|---|
MD5Controller()
Constructor of MD5Controller. |
|
MD5Controller(IMD5Node node)
Constructor of MD5Controller. |
|
| Method Summary | |
|---|---|
void |
addAnimation(IMD5Animation animation)
Add a new animation to this controller. |
void |
fadeTo(IMD5Animation animation,
float duration,
boolean scale)
Fade from the current active animation to the given animation. |
void |
fadeTo(java.lang.String name,
float duration,
boolean scale)
Fade from the current active animation to the given animation. |
IMD5Animation |
getActiveAnimation()
Retrieve the current active animation. |
java.util.Collection<IMD5Animation> |
getAnimations()
Retrieve all the maintained animations. |
java.lang.Class |
getClassTag()
|
void |
read(com.jme.util.export.JMEImporter e)
|
void |
removeAnimation(IMD5Animation animation)
Remove the given animation. |
void |
update(float time)
Update the controller. |
void |
write(com.jme.util.export.JMEExporter e)
|
| Methods inherited from class com.jme.scene.Controller |
|---|
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.model.md5.interfaces.IMD5Controller |
|---|
getRepeatType, setActive, setRepeatType, setSpeed |
| Constructor Detail |
|---|
public MD5Controller()
MD5Controller.
public MD5Controller(IMD5Node node)
MD5Controller.
node - The IMD5Node to be controlled.| Method Detail |
|---|
public void update(float time)
IMD5Controller
update in interface IMD5Controllerupdate in class com.jme.scene.Controllertime - The Float frame interpolation.public void addAnimation(IMD5Animation animation)
IMD5Controller
addAnimation in interface IMD5Controlleranimation - The IMD5Animation to be added.public void removeAnimation(IMD5Animation animation)
IMD5Controller
removeAnimation in interface IMD5Controlleranimation - The IMD5Animation to be removed.
public void fadeTo(java.lang.String name,
float duration,
boolean scale)
IMD5Controller
fadeTo in interface IMD5Controllername - The name of theIMD5Animation to be faded into.duration - The Float fading duration in seconds.scale - True if fading duration should scale with controller speed.
public void fadeTo(IMD5Animation animation,
float duration,
boolean scale)
IMD5Controller
fadeTo in interface IMD5Controlleranimation - The IMD5Animation to be faded into.duration - The Float fading duration in seconds.scale - True if fading duration should scale with controller speed.public IMD5Animation getActiveAnimation()
IMD5Controller
getActiveAnimation in interface IMD5ControllerIMD5Animation.public java.util.Collection<IMD5Animation> getAnimations()
IMD5Controller
getAnimations in interface IMD5ControllerCollection of IMD5Animation.public java.lang.Class getClassTag()
getClassTag in interface com.jme.util.export.SavablegetClassTag in class com.jme.scene.Controller
public void write(com.jme.util.export.JMEExporter e)
throws java.io.IOException
write in interface com.jme.util.export.Savablewrite in class com.jme.scene.Controllerjava.io.IOException
public void read(com.jme.util.export.JMEImporter e)
throws java.io.IOException
read in interface com.jme.util.export.Savableread in class com.jme.scene.Controllerjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||