|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.facegraphics.HMIFaceController
public class HMIFaceController
The FaceController is the access point for deforming the face of an avatar, just like VJoints are the accesspoint for deforming its body. This implementation controls the face of an avatar displayed in the HMI rendering environment.
| Field Summary | |
|---|---|
private MPEG4Configuration |
currentConfig
store the current config, for add- and remove-mpeg4configuration |
private HashMap<String,Float> |
desiredMorphTargets
|
private GLHead |
glHead
|
private HashMap<String,Float> |
oldDesiredMorphTargets
The set of morph targets to be set by doMorph, maintained through addMorphTargets and removeMorphTargets |
private ArrayList<String> |
possibleFaceMorphTargetNames
|
private GLScene |
theGLScene
Used to control morph targets... |
| Constructor Summary | |
|---|---|
HMIFaceController(GLScene gls,
GLHead h)
This constructor needs to get a link to the face and its morph targets! |
|
| Method Summary | |
|---|---|
void |
addMorphTargets(String[] targetNames,
float[] weights)
Add given weights for given morph targets to the list of desired targets |
void |
addMPEG4Configuration(MPEG4Configuration config)
|
void |
copy()
NOTE: this function should be called in some synchronisation; to ensure that the values are not changed during the copy method! |
ArrayList<String> |
getPossibleFaceMorphTargetNames()
|
void |
removeMorphTargets(String[] targetNames,
float[] weights)
Remove given weights for given morph targets from the list of desired targets |
void |
removeMPEG4Configuration(MPEG4Configuration config)
|
void |
setMPEG4Configuration(MPEG4Configuration config)
Directly set a FAP configuration on the face. |
void |
setPossibleFaceMorphTargetNames(ArrayList<String> names)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private GLScene theGLScene
private ArrayList<String> possibleFaceMorphTargetNames
private MPEG4Configuration currentConfig
private GLHead glHead
private HashMap<String,Float> oldDesiredMorphTargets
private HashMap<String,Float> desiredMorphTargets
| Constructor Detail |
|---|
public HMIFaceController(GLScene gls,
GLHead h)
| Method Detail |
|---|
public void setMPEG4Configuration(MPEG4Configuration config)
FaceController
setMPEG4Configuration in interface FaceControllerpublic void addMPEG4Configuration(MPEG4Configuration config)
addMPEG4Configuration in interface FaceControllerpublic void removeMPEG4Configuration(MPEG4Configuration config)
removeMPEG4Configuration in interface FaceControllerpublic ArrayList<String> getPossibleFaceMorphTargetNames()
getPossibleFaceMorphTargetNames in interface FaceControllerpublic void setPossibleFaceMorphTargetNames(ArrayList<String> names)
public void copy()
copy in interface FaceController
public void addMorphTargets(String[] targetNames,
float[] weights)
addMorphTargets in interface FaceController
public void removeMorphTargets(String[] targetNames,
float[] weights)
removeMorphTargets in interface FaceController
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||