|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.elckerlyc.animationengine.keyframe.KeyframeMU
public class KeyframeMU
Motion unit for keyframe/mocap motion specified in a SkeletonInterpolator.
| Field Summary | |
|---|---|
private SkeletonInterpolator |
baseIp
|
private SkeletonInterpolator |
currentIp
|
private Set<String> |
filter
|
private KeyPositionManager |
keyPositionManager
|
private boolean |
mirror
|
private HashMap<String,String> |
parameters
|
| Constructor Summary | |
|---|---|
KeyframeMU(SkeletonInterpolator si)
|
|
| Method Summary | |
|---|---|
void |
addKeyPosition(KeyPosition kp)
|
private void |
applyParameters()
|
MotionUnit |
copy(AnimationPlayer p)
Create a copy of this motion unit and link it to the animationplayer |
MotionUnit |
copy(VJoint v)
|
TimedMotionUnit |
createTMU(BMLBlockPeg bbPeg,
String i,
String bmlId)
Creates the TimedMotionUnit corresponding to this motion unit |
void |
filterJoints(Set<String> jointFilter)
|
Set<String> |
getJoints()
|
KeyPosition |
getKeyPosition(String name)
|
List<KeyPosition> |
getKeyPositions()
Gets a sorted view of the list of keypositions |
String |
getParameterValue(String name)
|
MotionUnit |
getPredictor(VJoint predict)
Returns a new motion unit that can be used as a predictor for this motion unit, null if prediction is not attainable |
double |
getPreferedDuration()
|
String |
getReplacementGroup()
Get the motionunit replacement group (=typically the BML behavior) Used to determine the currently active persistent TMU for this group in the player Only one group is active at a time |
SkeletonInterpolator |
getSkeletonInterpolator()
|
void |
play(double t)
Executes the motion unit, typically by rotating some VJoints |
void |
removeKeyPosition(String id)
|
void |
setKeyPositions(List<KeyPosition> p)
|
void |
setParameterValue(String name,
float value)
|
void |
setParameterValue(String name,
String value)
|
void |
setTarget(VJoint v)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private SkeletonInterpolator baseIp
private SkeletonInterpolator currentIp
private HashMap<String,String> parameters
private KeyPositionManager keyPositionManager
private boolean mirror
private Set<String> filter
| Constructor Detail |
|---|
public KeyframeMU(SkeletonInterpolator si)
| Method Detail |
|---|
public void addKeyPosition(KeyPosition kp)
addKeyPosition in interface KeyPositionManagerpublic List<KeyPosition> getKeyPositions()
KeyPositionManager
getKeyPositions in interface KeyPositionManagerpublic void setKeyPositions(List<KeyPosition> p)
setKeyPositions in interface KeyPositionManagerpublic void removeKeyPosition(String id)
removeKeyPosition in interface KeyPositionManagerpublic void setTarget(VJoint v)
public Set<String> getJoints()
public KeyPosition getKeyPosition(String name)
getKeyPosition in interface KeyPositionManagerpublic double getPreferedDuration()
getPreferedDuration in interface MotionUnitpublic void play(double t)
MotionUnit
play in interface MotionUnitt - execution time, 0 < t < 1public MotionUnit getPredictor(VJoint predict)
MotionUnit
getPredictor in interface MotionUnitpredict - VJoint to execute the prediction on
private void applyParameters()
public void filterJoints(Set<String> jointFilter)
public SkeletonInterpolator getSkeletonInterpolator()
public MotionUnit copy(VJoint v)
public void setParameterValue(String name,
float value)
setParameterValue in interface MotionUnit
public void setParameterValue(String name,
String value)
setParameterValue in interface MotionUnitpublic String getParameterValue(String name)
getParameterValue in interface MotionUnit
public TimedMotionUnit createTMU(BMLBlockPeg bbPeg,
String i,
String bmlId)
MotionUnit
createTMU in interface MotionUniti - behaviour idbmlId - BML block id
public MotionUnit copy(AnimationPlayer p)
MotionUnit
copy in interface MotionUnitpublic String getReplacementGroup()
MotionUnit
getReplacementGroup in interface MotionUnit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||