hmi.elckerlyc.animationengine.transitions
Class TransitionMU

java.lang.Object
  extended by hmi.elckerlyc.animationengine.motionunit.AbstractMotionUnit
      extended by hmi.elckerlyc.animationengine.transitions.TransitionMU
All Implemented Interfaces:
KeyPositionManager, MotionUnit
Direct Known Subclasses:
HermiteSplinePhysicalTransitionMU, HermiteSplineTransitionMU, SlerpPhysicalTransitionMU, SlerpTransitionMU, SlerpTransitionStaticMU

public abstract class TransitionMU
extends AbstractMotionUnit


Field Summary
protected  List<VJoint> joints
           
private  double prefDuration
           
 
Constructor Summary
TransitionMU()
           
 
Method Summary
abstract  TransitionMU copy(AnimationPlayer player)
          Create a copy of this motion unit and link it to the animationplayer
 TimedMotionUnit createTMU(BMLBlockPeg bbPeg, String i, String bmlId)
          Creates the TimedMotionUnit corresponding to this motion unit
protected  void filterJoints(String value)
           
 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
abstract  void play(double t)
          Executes the motion unit, typically by rotating some VJoints
abstract  void setEndPose(double endTime, double duration)
           
 void setParameterValue(String name, float value)
           
 void setParameterValue(String name, String value)
           
abstract  void setStartPose()
           
 
Methods inherited from class hmi.elckerlyc.animationengine.motionunit.AbstractMotionUnit
addKeyPosition, getKeyPosition, getKeyPositions, removeKeyPosition, setKeyPositions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

joints

protected List<VJoint> joints

prefDuration

private double prefDuration
Constructor Detail

TransitionMU

public TransitionMU()
Method Detail

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 id
bmlId - 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