|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.graphics.scenegraph.VertexWeights
public class VertexWeights
A VertexWeight object couples GMesh vertices to one or more joints, with a certain weight. The number of joints associated which a single vertex is variable, and specified with the jcount parameter of the constructor. Joints are referred to by means of joint indices, resolved within the GMesh to actual joint names.
| Field Summary | |
|---|---|
private static float |
DEFAULT_EPSMIN
|
private static float |
DEFAULT_EPSPLUS
|
private static int |
INDICESPERLINE
|
private int[] |
jcount
|
private static int |
JCOUNTSPERLINE
|
private int[] |
jointIndices
|
private float[] |
jointWeights
|
private int[] |
offsets
|
private static int |
WEIGHTSPERLINE
|
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 | |
|---|---|
VertexWeights()
Default constructor |
|
VertexWeights(int[] jcount,
int[] jointIndices,
float[] jointWeights)
Creates a new VertexWeight object: jcounts specifies, for every GMesh vertex, the number of associated joints. |
|
| Method Summary | |
|---|---|
StringBuilder |
appendAttributeString(StringBuilder buf,
XMLFormatting fmt)
appends the id and sid XML attributes to buf. |
private int |
calculateOffsets()
|
boolean |
checkAccumulatedWeights(float epsmin,
float epsplus,
boolean showdeviations)
|
void |
decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
decodes the id and sid XML attributes. |
int[] |
getJCounts()
|
int[] |
getJointIndices()
Returns the jointIndices array. |
float[] |
getJointWeights()
Returns the jointWeights array. |
float[] |
getVertexWeightColors(boolean useWeights,
float[][] colorCoding)
Returns a float array filled with vertex colors, encoding the vertex weight information. |
String |
getXMLTag()
returns the XML Stag for XML encoding |
protected void |
remapData(int nrOfDistinctVertices,
int[] map)
|
String |
toString()
the default toString() method returns the result of toXMLSTring() |
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 int[] jcount
private int[] jointIndices
private float[] jointWeights
private int[] offsets
private static final float DEFAULT_EPSMIN
private static final float DEFAULT_EPSPLUS
private static final int JCOUNTSPERLINE
private static final int INDICESPERLINE
private static final int WEIGHTSPERLINE
private static final String XMLTAG
| Constructor Detail |
|---|
public VertexWeights()
public VertexWeights(int[] jcount,
int[] jointIndices,
float[] jointWeights)
| Method Detail |
|---|
private int calculateOffsets()
public int[] getJointIndices()
public float[] getJointWeights()
public int[] getJCounts()
protected void remapData(int nrOfDistinctVertices,
int[] map)
public boolean checkAccumulatedWeights(float epsmin,
float epsplus,
boolean showdeviations)
public float[] getVertexWeightColors(boolean useWeights,
float[][] colorCoding)
public String toString()
XMLStructureAdapter
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 | |||||||||