hmi.elckerlyc.animationengine.transitions
Class TransitionMU
java.lang.Object
hmi.elckerlyc.animationengine.motionunit.AbstractMotionUnit
hmi.elckerlyc.animationengine.transitions.TransitionMU
- All Implemented Interfaces:
- KeyPositionManager, MotionUnit
- Direct Known Subclasses:
- HermiteSplinePhysicalTransitionMU, HermiteSplineTransitionMU, SlerpPhysicalTransitionMU, SlerpTransitionMU, SlerpTransitionStaticMU
public abstract class TransitionMU
- extends AbstractMotionUnit
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
joints
protected List<VJoint> joints
prefDuration
private double prefDuration
TransitionMU
public TransitionMU()
copy
public abstract TransitionMU copy(AnimationPlayer player)
- Description copied from interface:
MotionUnit
- Create a copy of this motion unit and link it to the animationplayer
createTMU
public TimedMotionUnit createTMU(BMLBlockPeg bbPeg,
String i,
String bmlId)
- Description copied from interface:
MotionUnit
- Creates the TimedMotionUnit corresponding to this motion unit
i - behaviour idbmlId - BML block id
- Returns:
- the TMU
getPreferedDuration
public double getPreferedDuration()
- Returns:
- Prefered duration (in seconds) of this motion unit, 0 means not determined/infinite
play
public abstract void play(double t)
- Description copied from interface:
MotionUnit
- Executes the motion unit, typically by rotating some VJoints
- Parameters:
t - execution time, 0 < t < 1
setStartPose
public abstract void setStartPose()
setEndPose
public abstract void setEndPose(double endTime,
double duration)
getPredictor
public MotionUnit getPredictor(VJoint predict)
- Description copied from interface:
MotionUnit
- Returns a new motion unit that can be used as a predictor for this motion unit, null if prediction is not attainable
- Parameters:
predict - VJoint to execute the prediction on
- Returns:
- predictor motion unit
setParameterValue
public void setParameterValue(String name,
float value)
filterJoints
protected void filterJoints(String value)
setParameterValue
public void setParameterValue(String name,
String value)
getParameterValue
public String getParameterValue(String name)
getReplacementGroup
public String getReplacementGroup()
- Description copied from interface:
MotionUnit
- 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