|
||||||||||
| 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.Mesh
public class Mesh
A Collada Mesh defines and combines data Sources, vertices, and geometry for tesselation.
| Nested Class Summary | |
|---|---|
static class |
Mesh.MeshType
A Mesh has a type, like Triangles, Tristrips, Polygons etc. |
| Field Summary | |
|---|---|
private static int |
LISTSIZE
|
private ArrayList<PrimitiveMeshElement> |
primitiveMeshElements
|
private ArrayList<Source> |
sources
|
private Vertices |
vertices
|
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 | |
|---|---|
Mesh()
Default constructor. |
|
Mesh(Collada collada,
XMLTokenizer tokenizer)
Constructor used to create a Mesh Object from XML. |
|
| 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. |
List<PrimitiveMeshElement> |
getPrimitiveMeshElements()
Returns the Collada primitive mesh elements, like Triangles, Polygons, PolyList etcetera, for this Mesh. |
List<Source> |
getSources()
Returns the list of Collada Sources for this Mesh. |
Vertices |
getVertices()
Returns the Collada Vertices for this Mesh. |
String |
getXMLTag()
returns the XML Stag for XML encoding |
void |
reportNode(String reportType)
prints a report on the Console. |
static String |
xmlTag()
The XML Stag for XML encoding |
| 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, 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 ArrayList<Source> sources
private Vertices vertices
private static final int LISTSIZE
private ArrayList<PrimitiveMeshElement> primitiveMeshElements
private static final String XMLTAG
| Constructor Detail |
|---|
public Mesh()
public Mesh(Collada collada,
XMLTokenizer tokenizer)
throws IOException
IOException| Method Detail |
|---|
public void reportNode(String reportType)
reportNode in class ColladaElementpublic List<Source> getSources()
public Vertices getVertices()
public List<PrimitiveMeshElement> getPrimitiveMeshElements()
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 | |||||||||