|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.graphics.scenegraph.GShape
public class GShape
A GShape combines a GMesh and a GMaterial.
| Field Summary | |
|---|---|
private GMaterial |
gmaterial
|
private GMesh |
gmesh
|
private String |
name
|
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 | |
|---|---|
GShape()
Creates a new GShape. |
|
GShape(GMesh gmesh,
GMaterial gmaterial,
String name)
Creates a new GShape with specified GMesh and GMaterial. |
|
GShape(XMLTokenizer tokenizer)
Recreate a GShape from XML |
|
| Method Summary | |
|---|---|
void |
affineTransform(float[] mat4x4)
|
StringBuilder |
appendAttributes(StringBuilder buf)
appends the (optional) name attribute to buf. |
StringBuilder |
appendContent(StringBuilder buf,
XMLFormatting fmt)
Appends a String to buf that encodes the contents for the XML encoding. |
void |
decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
decodes the name XML attribute. |
void |
decodeContent(XMLTokenizer tokenizer)
decodes the XML contents, i.e. the XML between the STag and ETag of the encoding. |
GMaterial |
getGMaterial()
Returns the GMaterial component. |
GMesh |
getGMesh()
Returns the GMesh component. |
String |
getName()
Returns the name. |
String |
getXMLTag()
returns the XML Stag for XML encoding |
void |
setGMaterial(GMaterial gmaterial)
Sets the GMaterial component. |
void |
setGMesh(GMesh gmesh)
Sets the GMesh component. |
void |
setName(String name)
Sets the name. |
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 GMesh gmesh
private GMaterial gmaterial
private String name
private static final String XMLTAG
| Constructor Detail |
|---|
public GShape()
public GShape(GMesh gmesh,
GMaterial gmaterial,
String name)
public GShape(XMLTokenizer tokenizer)
throws IOException
IOException| Method Detail |
|---|
public void setGMesh(GMesh gmesh)
public GMesh getGMesh()
public void setGMaterial(GMaterial gmaterial)
public GMaterial getGMaterial()
public void setName(String name)
public String getName()
public void affineTransform(float[] mat4x4)
public StringBuilder appendAttributes(StringBuilder buf)
appendAttributes in class XMLStructureAdapter
public void decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
decodeAttributes in class XMLStructureAdapter
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 | |||||||||