|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.elckerlyc.animationengine.gaze.GazeMU
public class GazeMU
Timing: ready: gaze target reached relax: start to move back to previous pose (should be rest pose?)
| Field Summary | |
|---|---|
private KeyPositionManager |
keyPositionManager
|
protected VJoint |
lEye
|
private float[] |
localGaze
|
protected VJoint |
neck
|
protected double |
offsetAngle
|
protected OffsetDirection |
offsetDirection
|
protected AnimationPlayer |
player
|
protected double |
preparationDuration
|
protected float[] |
qGaze
|
protected float[] |
qStart
|
protected float[] |
qStartLeftEye
|
protected float[] |
qStartRightEye
|
protected float[] |
qTemp
|
protected KeyPosition |
ready
|
protected KeyPosition |
relax
|
protected double |
relaxDuration
|
protected VJoint |
rEye
|
protected String |
target
|
protected TimeManipulator |
tmp
|
protected float[] |
vecTemp
|
protected WorldObjectManager |
woManager
|
protected WorldObject |
woTarget
|
| Constructor Summary | |
|---|---|
GazeMU()
|
|
| Method Summary | |
|---|---|
void |
addKeyPosition(KeyPosition kp)
|
GazeMU |
copy(AnimationPlayer p)
Create a copy of this motion unit and link it to the animationplayer |
TimedMotionUnit |
createTMU(BMLBlockPeg bmlBlockPeg,
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 |
protected float[] |
getOffsetRotation()
|
String |
getParameterValue(String name)
|
MotionUnit |
getPredictor(VJoint predict)
Creates a gaze predictor. |
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 |
private void |
playEye(double t,
float[] qDesNeck,
float[] qStartEye,
VJoint eye)
|
void |
removeKeyPosition(String id)
|
(package private) void |
setEndRotation(float[] gazeDir)
|
(package private) void |
setEndRotation(float[] gazeDir,
float[] q)
|
void |
setKeyPositions(List<KeyPosition> p)
|
void |
setParameterValue(String name,
float value)
|
void |
setParameterValue(String name,
String value)
|
void |
setStartPose(double prepDur,
double relaxDur)
|
void |
setTarget(String target)
|
void |
setTimeManipulator(TimeManipulator tmp)
Set the time manimpulator that describes the velocity profile for attack and decay. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected float[] qGaze
protected float[] qTemp
protected float[] qStart
protected float[] qStartLeftEye
protected float[] qStartRightEye
protected float[] vecTemp
protected KeyPosition ready
protected KeyPosition relax
protected VJoint neck
protected VJoint rEye
protected VJoint lEye
protected AnimationPlayer player
protected WorldObjectManager woManager
protected String target
protected TimeManipulator tmp
protected WorldObject woTarget
protected double preparationDuration
protected double relaxDuration
private KeyPositionManager keyPositionManager
private float[] localGaze
protected double offsetAngle
protected OffsetDirection offsetDirection
| Constructor Detail |
|---|
public GazeMU()
| Method Detail |
|---|
protected float[] getOffsetRotation()
public GazeMU copy(AnimationPlayer p)
MotionUnit
copy in interface MotionUnit
public void setTarget(String target)
throws MUPlayException
MUPlayException
public void setStartPose(double prepDur,
double relaxDur)
throws MUPlayException
MUPlayException
void setEndRotation(float[] gazeDir)
throws MUPlayException
gazeDir - gaze direction
MUPlayException
void setEndRotation(float[] gazeDir,
float[] q)
throws MUPlayException
gazeDir - gaze direction
MUPlayExceptionpublic MotionUnit getPredictor(VJoint predict)
getPredictor in interface MotionUnitpredict - VJoint to execute the prediction on
public double getPreferedDuration()
getPreferedDuration in interface MotionUnit
private void playEye(double t,
float[] qDesNeck,
float[] qStartEye,
VJoint eye)
throws MUPlayException
MUPlayException
public void play(double t)
throws MUPlayException
MotionUnit
play in interface MotionUnitt - execution time, 0 < t < 1
MUPlayException - if the play fails for some reason
public TimedMotionUnit createTMU(BMLBlockPeg bmlBlockPeg,
String i,
String bmlId)
MotionUnit
createTMU in interface MotionUniti - behaviour idbmlId - BML block id
public void setParameterValue(String name,
String value)
setParameterValue in interface MotionUnitpublic String getParameterValue(String name)
getParameterValue in interface MotionUnit
public void setParameterValue(String name,
float value)
setParameterValue in interface MotionUnitpublic void setTimeManipulator(TimeManipulator tmp)
public String getReplacementGroup()
MotionUnit
getReplacementGroup in interface MotionUnitpublic 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 | |||||||||