|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.elckerlyc.animationengine.controller.ControllerMU
public class ControllerMU
MotionUnit for a physical controller
| Field Summary | |
|---|---|
private PhysicalController |
controller
|
private List<PhysicalController> |
controllerList
|
private KeyPositionManager |
keyPositionManager
|
private String |
replacementgroup
|
| Constructor Summary | |
|---|---|
ControllerMU(PhysicalController pc,
List<PhysicalController> pcl)
Constructor |
|
| Method Summary | |
|---|---|
void |
addKeyPosition(KeyPosition kp)
|
MotionUnit |
copy(AnimationPlayer p)
Create a copy for use in animation player p (that is, link up to its VNext, PhysicalHumanoid, physically steered joint list |
ControllerMU |
copy(PhysicalHumanoid ph)
|
TimedMotionUnit |
createTMU(BMLBlockPeg bbPeg,
String i,
String bmlId)
Creates the TimedMotionUnit corresponding to this motion unit |
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 |
void |
play(double t)
Executes the motion unit, typically by rotating some VJoints |
void |
removeKeyPosition(String id)
|
void |
reset()
|
void |
setKeyPositions(List<KeyPosition> p)
|
void |
setParameterValue(String name,
float value)
|
void |
setParameterValue(String name,
String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private PhysicalController controller
private List<PhysicalController> controllerList
private String replacementgroup
private KeyPositionManager keyPositionManager
| Constructor Detail |
|---|
public ControllerMU(PhysicalController pc,
List<PhysicalController> pcl)
pc - physical controller linked to the motion unitpcl - physical controller list. This ControllerMU adds the controller to this list whenever it's playing.| Method Detail |
|---|
public 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
public ControllerMU copy(PhysicalHumanoid ph)
public MotionUnit copy(AnimationPlayer p)
copy in interface MotionUnitp - animation player to use the MotionUnit in
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 String getReplacementGroup()
MotionUnit
getReplacementGroup in interface MotionUnitpublic void reset()
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 KeyPosition getKeyPosition(String name)
getKeyPosition in interface KeyPositionManagerpublic void removeKeyPosition(String id)
removeKeyPosition in interface KeyPositionManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||