hmi.graphics.collada
Class Shape
java.lang.Object
hmi.xml.XMLStructureAdapter
hmi.graphics.collada.ColladaElement
hmi.graphics.collada.Shape
- All Implemented Interfaces:
- XMLStructure
public class Shape
- extends ColladaElement
Declares a physical shape
Ignored tags: hollow, mass, density, instance_physics_material, physics_material, instance_geometry,
plane, cylinder, tapered_cylinder, tapered_capsule
Assumes that the shape contains only one rotation and one translation, does not check or enforce only
one of box, plane, sphere, cylinder, tapered_cylinder, capsule, tapered_capsule
- Author:
- Herwin van Welbergen
| 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 hmi.xml.XMLStructureAdapter |
appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttributes, appendAttributeString, appendAttributeString, appendBooleans, appendCloseEmptyTag, appendCloseSTag, appendComment, appendContent, appendDoubleElement, appendEmptyTag, appendEmptyTag, appendEmptyTag, appendEmptyTag, appendEmptyTag, appendEmptyTag, appendETag, appendETag, appendFloatArrayElement, appendFloatElement, appendFloats, appendIntArrayElement, appendIntElement, appendInts, appendLongElement, appendNewLine, appendNewLine, appendNewLine, appendOpenSTag, appendOptionalDoubleElement, appendOptionalFloatElement, appendOptionalIntElement, appendOptionalLongElement, appendSpaces, appendSpaces, appendSTag, appendSTag, appendSTag, appendStringArrayElement, appendStrings, appendSystemNewLine, appendTab, appendTextElement, appendXML, appendXML, appendXML, appendXML, appendXML, appendXMLStructure, appendXMLStructureList, appendXMLTextElementList, countTokens, countTokens, decodeAttribute, decodeAttribute, decodeBoolean, decodeBooleanArray, decodeBooleanArray, decodeBooleanArray, decodeBooleanArray, decodeDouble, decodeDoubleArray, decodeDoubleArray, decodeDoubleArray, decodeDoubleArray, decodeFloat, decodeFloatArray, decodeFloatArray, decodeFloatArray, decodeFloatArray, decodeInt, decodeIntArray, decodeIntArray, decodeIntArray, decodeIntArray, decodeLong, decodeStringArray, decodeStringArray, decodeStringArray, decodeStringArray, decodeXMLStructureList, decodeXMLValueElement, getOptionalAttribute, getOptionalAttribute, getOptionalBooleanAttribute, getOptionalDoubleAttribute, getOptionalFloatAttribute, getOptionalIntAttribute, getOptionalLongAttribute, getRequiredAttribute, getRequiredBooleanAttribute, getRequiredDoubleAttribute, getRequiredFloatAttribute, getRequiredIntAttribute, getRequiredLongAttribute, getTagLine, hasContent, parseXMLElement, postProcess, preProcess, readXML, readXML, readXML, setConsoleAttributeEnabled, setDefaultRecoverMode, setRecoverMode, spaces, toString, toXMLString, toXMLString, toXMLString, toXMLString, toXMLString, toXMLString, writeXML, writeXML, writeXML, writeXML |
translate
private Translate translate
rotate
private Rotate rotate
box
private Box box
sphere
private Sphere sphere
capsule
private Capsule capsule
extras
private ArrayList<Extra> extras
XMLTAG
private static final String XMLTAG
- See Also:
- Constant Field Values
Shape
public Shape()
Shape
public Shape(Collada collada,
XMLTokenizer tokenizer)
throws IOException
- Throws:
IOException
appendContent
public StringBuilder appendContent(StringBuilder buf,
XMLFormatting fmt)
- Description copied from class:
XMLStructureAdapter
- Appends a String to buf that encodes the contents for the XML encoding.
MUST BE OVERWRITTEN BY IMPLEMENTATIONS. (The default implementation appends nothing).
The encoding should start on a new line, using indentation equal to tab.
There should be no newline after the encoding.
- Overrides:
appendContent in class XMLStructureAdapter
decodeContent
public void decodeContent(XMLTokenizer tokenizer)
throws IOException
- Description copied from class:
XMLStructureAdapter
- decodes the XML contents, i.e. the XML between the STag and ETag
of the encoding.
MUST BE OVERWRITTEN BY IMPLEMENTATIONS.
- Overrides:
decodeContent in class XMLStructureAdapter
- Throws:
IOException
xmlTag
public static String xmlTag()
- The XML Stag for XML encoding
getXMLTag
public String getXMLTag()
- returns the XML Stag for XML encoding
- Specified by:
getXMLTag in interface XMLStructure- Overrides:
getXMLTag in class XMLStructureAdapter
setCapsule
public void setCapsule(Capsule capsule)
getCapsule
public Capsule getCapsule()
setSphere
public void setSphere(Sphere sphere)
getSphere
public Sphere getSphere()
setBox
public void setBox(Box box)
getBox
public Box getBox()
setTranslate
public void setTranslate(Translate translate)
getTranslate
public Translate getTranslate()
setRotate
public void setRotate(Rotate rotate)
getRotate
public Rotate getRotate()