|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.facegraphics.GLHead
public class GLHead
| Nested Class Summary | |
|---|---|
private static class |
GLHead.Operation
|
| Field Summary | |
|---|---|
private HashMap<FAP,Deformer> |
deformers
|
private boolean |
deformScheduled
|
private HashMap<FAP,HashMap<Integer,float[]>> |
displacements
This map contains maps, each of which contains pairs of vertex-index - displacement. |
private boolean |
displacementsDirty
|
private GLSkinnedMesh |
faceMesh
|
private HashMap<String,Float> |
fapus
|
private boolean |
fapusDirty
|
private HashMap<FeaturePoint,float[]> |
fpPositions
|
private ArrayList<FAP> |
keepSync
|
private Eye |
leftEye
|
private LowerJaw |
lowerJaw
|
private GLHead.Operation |
mergeOp
|
private Neck |
neck
|
private float[] |
neutralVertexData
|
private Eye |
rightEye
|
private static long |
serialVersionUID
|
private float[] |
vertexData
|
private HashMap<FAP,ArrayList<Integer>> |
vertexMasks
|
private float |
xcenter
|
private static String |
XMLTAG
|
private float |
xsize
|
| Fields inherited from class hmi.xml.XMLStructureAdapter |
|---|
ATTRIBUTE_TOKEN_DELIMITERS, COMMA_SEPARATOR, DECODEDARRAYSIZE, DEFAULT_RECOVER_MODE, NEWLINE, SYSTEMNEWLINE, TAB, TAB_STRING |
| Constructor Summary | |
|---|---|
GLHead()
|
|
| Method Summary | |
|---|---|
StringBuilder |
appendContent(StringBuilder buf,
XMLFormatting fmt)
Appends a String to buf that encodes the contents for the XML encoding. |
void |
applyDisplacements()
Deprecated. |
private float[] |
calculateCenter(float[] first,
float[] second)
|
private float |
calculateDistance(float[] first,
float[] second)
|
private void |
calculateFAPUs()
|
private void |
calculateHeadWidth()
|
void |
calculateVertexWeights()
|
void |
clearDisplacements()
|
void |
decodeContent(XMLTokenizer tokenizer)
decodes the XML contents, i.e. the XML between the STag and ETag of the encoding. |
void |
deformWhenScheduled()
|
Deformer |
getDeformer(FAP fap)
|
float |
getFAPU(String fapu)
|
float[] |
getFPPosition(FeaturePoint fp)
|
private float[] |
getFPPosition(String fpString)
|
boolean |
getKeepSync(FAP fap)
|
Eye |
getLeftEye()
|
LowerJaw |
getLowerJaw()
|
Neck |
getNeck()
|
float[] |
getNeutralVertexPos(int index)
|
int |
getNumVertices()
|
Eye |
getRightEye()
|
float[] |
getVertexData()
|
ArrayList<Integer> |
getVertexMask(FAP fap)
|
float |
getWidth()
|
float |
getXCenter()
|
String |
getXMLTag()
The XML Stag for XML encoding -- use this method to find out the run-time xml tag of an object |
void |
scheduleDeform()
|
void |
setDeformer(FAP fap,
Deformer deformer)
|
void |
setDisplacements(FAP fap,
HashMap<Integer,float[]> disp)
Deprecated. |
void |
setEyes(Eye leftEye,
Eye rightEye)
|
void |
setFaceMesh(GLSkinnedMesh faceMesh)
|
void |
setFPPosition(FeaturePoint fp,
float[] pos)
|
void |
setKeepSync(FAP fap,
boolean sync)
|
void |
setLowerJaw(LowerJaw lowerJaw)
|
void |
setNeck(Neck neck)
|
private void |
setNeutralVertexData(float[] neutralVertexData)
|
static String |
xmlTag()
The XML Stag for XML encoding -- use this static method when you want to see if a given String equals the xml tag for this class |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface hmi.xml.XMLStructure |
|---|
appendXML, appendXML, appendXML, readXML, readXML, readXML, toXMLString, toXMLString, toXMLString, writeXML, writeXML, writeXML |
| Field Detail |
|---|
private static final long serialVersionUID
private HashMap<FeaturePoint,float[]> fpPositions
private ArrayList<FAP> keepSync
private HashMap<FAP,Deformer> deformers
private HashMap<FAP,ArrayList<Integer>> vertexMasks
private HashMap<String,Float> fapus
private boolean fapusDirty
private float xcenter
private float xsize
private Eye leftEye
private Eye rightEye
private LowerJaw lowerJaw
private Neck neck
private HashMap<FAP,HashMap<Integer,float[]>> displacements
private boolean displacementsDirty
private boolean deformScheduled
private float[] vertexData
private float[] neutralVertexData
private GLSkinnedMesh faceMesh
private final GLHead.Operation mergeOp
private static final String XMLTAG
| Constructor Detail |
|---|
public GLHead()
| Method Detail |
|---|
public float[] getFPPosition(FeaturePoint fp)
private float[] getFPPosition(String fpString)
public void setFPPosition(FeaturePoint fp,
float[] pos)
public void setKeepSync(FAP fap,
boolean sync)
public boolean getKeepSync(FAP fap)
public void setDeformer(FAP fap,
Deformer deformer)
public Deformer getDeformer(FAP fap)
public ArrayList<Integer> getVertexMask(FAP fap)
public float getFAPU(String fapu)
getFAPU in interface Headprivate void calculateFAPUs()
private float calculateDistance(float[] first,
float[] second)
private float[] calculateCenter(float[] first,
float[] second)
public int getNumVertices()
public float[] getVertexData()
private void calculateHeadWidth()
public float getWidth()
public float getXCenter()
private void setNeutralVertexData(float[] neutralVertexData)
public float[] getNeutralVertexPos(int index)
public void setFaceMesh(GLSkinnedMesh faceMesh)
public void calculateVertexWeights()
public void scheduleDeform()
public void deformWhenScheduled()
@Deprecated
public void setDisplacements(FAP fap,
HashMap<Integer,float[]> disp)
public void clearDisplacements()
@Deprecated public void applyDisplacements()
public void setEyes(Eye leftEye,
Eye rightEye)
public Eye getLeftEye()
public Eye getRightEye()
public void setLowerJaw(LowerJaw lowerJaw)
public LowerJaw getLowerJaw()
public void setNeck(Neck neck)
public Neck getNeck()
public StringBuilder appendContent(StringBuilder buf,
XMLFormatting fmt)
XMLStructureAdapter
appendContent in class XMLStructureAdapter
public void decodeContent(XMLTokenizer tokenizer)
throws IOException
XMLStructureAdapter
decodeContent in class XMLStructureAdapterIOExceptionpublic static String xmlTag()
public String getXMLTag()
getXMLTag in interface XMLStructuregetXMLTag in class XMLStructureAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||