|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.graphics.collada.scenegraph.GSkin
public final class GSkin
GSkin represents mesh skinning information: joint names and, per mesh vertex, a number of jointIndex/jointWeight pairs. The number of such pairs is kept, per vertex, in vcount.
| Field Summary | |
|---|---|
private float[] |
bindShapeMatrix
|
private float[] |
invBindMatrices
|
private int[] |
jointIndices
|
private String[] |
jointNames
|
private static int |
JOINTNAMESPERLINE
|
private float[] |
jointWeights
|
private int[] |
vcount
|
private static String |
XMLTAG
|
| Fields inherited from class hmi.xml.XMLStructureAdapter |
|---|
ATTRIBUTE_TOKEN_DELIMITERS, COMMA_SEPARATOR, DECODEDARRAYSIZE, DEFAULT_RECOVER_MODE, NEWLINE, SYSTEMNEWLINE, TAB, TAB_STRING |
| Constructor Summary | |
|---|---|
private |
GSkin()
|
|
GSkin(XMLTokenizer tokenizer)
|
| Method Summary | |
|---|---|
StringBuilder |
appendAttributeString(StringBuilder buf,
XMLFormatting fmt)
appends the id and sid XML attributes to buf. |
VertexWeights |
createVertexWeights()
Creates a new VertexWeight by copying jointIndices, jointWeights, and count data |
void |
decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
decodes the id and sid XML attributes. |
float[] |
getBindShapeMatrix()
Returns the bind shape matrix, which could be null |
float[] |
getInvBindMatrices()
|
int[] |
getJointIndices()
Returns the jointIndices array. |
String[] |
getJointNames()
Returns the jointNames array |
float[] |
getJointWeights()
Returns the jointWeights array. |
int[] |
getVCount()
|
String |
getXMLTag()
returns the XML Stag for XML encoding |
void |
setBindShapeMatrix(float[] m4x4)
Sets a 4x4 matrix in row major order(a Mat4f element) |
void |
setInvBindMatrices(float[] invBindMatrices)
Sets the inverse bind matrices |
void |
setJointIndices(int[] jointIndices)
Sets the jointIndices array. |
void |
setJointNames(String[] jointNames)
Sets the jointNames array |
void |
setJointWeights(float[] jointWeights)
Sets the jointWeights array. |
void |
setVCount(int[] vcount)
|
String |
toString()
appends the id and sid XML attributes to buf. |
static String |
xmlTag()
The XML Stag for XML encoding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private String[] jointNames
private float[] bindShapeMatrix
private float[] invBindMatrices
private int[] jointIndices
private float[] jointWeights
private int[] vcount
private static final int JOINTNAMESPERLINE
private static final String XMLTAG
| Constructor Detail |
|---|
private GSkin()
public GSkin(XMLTokenizer tokenizer)
throws IOException
IOException| Method Detail |
|---|
public void setJointIndices(int[] jointIndices)
public int[] getJointIndices()
public void setJointWeights(float[] jointWeights)
public float[] getJointWeights()
public void setVCount(int[] vcount)
public int[] getVCount()
public VertexWeights createVertexWeights()
public void setBindShapeMatrix(float[] m4x4)
public float[] getBindShapeMatrix()
public void setJointNames(String[] jointNames)
public String[] getJointNames()
public void setInvBindMatrices(float[] invBindMatrices)
public float[] getInvBindMatrices()
public String toString()
toString in class XMLStructureAdapter
public StringBuilder appendAttributeString(StringBuilder buf,
XMLFormatting fmt)
appendAttributeString in class XMLStructureAdapter
public void decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
decodeAttributes in class XMLStructureAdapterpublic 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 | |||||||||