|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.graphics.collada.ColladaElement
hmi.graphics.collada.TransformNode
hmi.graphics.collada.Skew
public class Skew
Skew defines a Collada skewing transform, specified in "Renderman" style. It is defined by a translation vector (vertices are shifted parallel to this vector), and a rotated vector plus rotation angle. The skewing operation should have the effect of rotating this latter vector, in the direction as denoted by the tranlation vector. The angle is specified in degrees. The Renderman/Collada specification is by means of a seven-tuple: angle, rotated vector, translation vector.
| Field Summary | |
|---|---|
private float |
angle
|
private float[] |
mat3f
|
private float[] |
rvec
|
private float[] |
tvec
|
private static String |
XMLTAG
|
| Fields inherited from class hmi.graphics.collada.ColladaElement |
|---|
COLLADANAMESPACE |
| Fields inherited from class hmi.xml.XMLStructureAdapter |
|---|
ATTRIBUTE_TOKEN_DELIMITERS, COMMA_SEPARATOR, DECODEDARRAYSIZE, DEFAULT_RECOVER_MODE, NEWLINE, SYSTEMNEWLINE, TAB, TAB_STRING |
| Constructor Summary | |
|---|---|
Skew()
|
|
Skew(Collada collada,
XMLTokenizer tokenizer)
|
|
| Method Summary | |
|---|---|
StringBuilder |
appendContent(StringBuilder buf,
XMLFormatting fmt)
Appends a String to buf that encodes the contents for the XML encoding. |
void |
decodeContent(XMLTokenizer tokenizer)
decodes the XML contents, i.e. the XML between the STag and ETag of the encoding. |
float[] |
getMat4f()
Returns the 4X4 skewing matrix, according to the Renderman specification, in row-major order. |
float[] |
getSkewMat3f()
Returns the 3X3 skewing matrix, according to the Renderman specification, in row-major order. |
String |
getXMLTag()
returns the XML Stag for XML encoding |
static String |
xmlTag()
The XML Stag for XML encoding |
| Methods inherited from class hmi.graphics.collada.TransformNode |
|---|
setMat4f |
| Methods inherited from class hmi.graphics.collada.ColladaElement |
|---|
addColladaNode, addColladaNodes, addToIdMap, appendAttributes, decodeAttributes, getCollada, getColladaNodes, getId, getIdMap, getIdOrName, getIds, getName, getNamespace, getRecursiveColladaNodes, getRecursiveColladaNodes, getResources, getSid, report, reportNode, setCollada, setId, setName, setSid, urlToId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private float angle
private float[] rvec
private float[] tvec
private float[] mat3f
private static final String XMLTAG
| Constructor Detail |
|---|
public Skew()
public Skew(Collada collada,
XMLTokenizer tokenizer)
throws IOException
IOException| Method Detail |
|---|
public float[] getMat4f()
getMat4f in class TransformNodepublic float[] getSkewMat3f()
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 | |||||||||