|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.elckerlyc.faceengine.MorphFU
public class MorphFU
A basic facial animation unit consisting of one morph target. The key positions are: start, ready, relax, end. This descripes an apex-like intensity development: The between start and ready, the morph target is blended in; between relax and end the morph target is blended out. The max intensity for the morph target can also be specified. More than one MorphFU can be active at the same time. Parameter constraints: none
| Field Summary | |
|---|---|
private FacePlayer |
facePlayer
|
private float |
intensity
|
private KeyPositionManager |
keyPositionManager
|
private String[] |
morphTargets
|
private boolean |
multiple
|
private float |
prevMorphedWeight
|
private String |
targetName
|
| Constructor Summary | |
|---|---|
MorphFU()
|
|
| Method Summary | |
|---|---|
void |
addKeyPosition(KeyPosition kp)
|
void |
cleanup()
Clean up the face - i.e. remove traces of this faceunit |
FaceUnit |
copy(FacePlayer fp)
Create a copy of this face unit and link it to the faceplayer |
TimedFaceUnit |
createTFU(BMLBlockPeg bbPeg,
String i,
String bmlId)
Creates the TimedFaceUnit corresponding to this face unit |
KeyPosition |
getKeyPosition(String name)
|
List<KeyPosition> |
getKeyPositions()
Gets a sorted view of the list of keypositions |
String |
getParameterValue(String name)
|
double |
getPreferedDuration()
|
String |
getReplacementGroup()
Get the faceunit replacement group (=typically the BML behavior) Used to determine the currently active persistent TFU for this group in the player Only one group is active at a time |
boolean |
hasValidParameters()
|
void |
play(double t)
Executes the face unit, by morphing the face. |
void |
removeKeyPosition(String id)
|
void |
setFacePlayer(FacePlayer fp)
|
void |
setKeyPositions(List<KeyPosition> p)
|
void |
setParameterValue(String name,
float value)
|
void |
setParameterValue(String name,
String value)
|
private void |
updateMorphTargets()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private float intensity
private String targetName
private boolean multiple
private final KeyPositionManager keyPositionManager
private String[] morphTargets
private FacePlayer facePlayer
private float prevMorphedWeight
| Constructor Detail |
|---|
public MorphFU()
| Method Detail |
|---|
public void setFacePlayer(FacePlayer fp)
public void setParameterValue(String name,
float value)
setParameterValue in interface FaceUnit
public void setParameterValue(String name,
String value)
setParameterValue in interface FaceUnitpublic String getParameterValue(String name)
getParameterValue in interface FaceUnitpublic boolean hasValidParameters()
hasValidParameters in interface FaceUnitprivate void updateMorphTargets()
public void play(double t)
throws FUPlayException
play in interface FaceUnitt - execution time, 0 < t < 1
FUPlayException - if the play fails for some reasonpublic void cleanup()
FaceUnit
cleanup in interface FaceUnit
public TimedFaceUnit createTFU(BMLBlockPeg bbPeg,
String i,
String bmlId)
createTFU in interface FaceUniti - behaviour idbmlId - BML block id
public String getReplacementGroup()
FaceUnit
getReplacementGroup in interface FaceUnitpublic double getPreferedDuration()
getPreferedDuration in interface FaceUnitpublic FaceUnit copy(FacePlayer fp)
copy in interface FaceUnitpublic KeyPosition getKeyPosition(String name)
getKeyPosition in interface KeyPositionManagerpublic 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 KeyPositionManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||