hmi.graphics.collada
Class Node

java.lang.Object
  extended by hmi.xml.XMLStructureAdapter
      extended by hmi.graphics.collada.ColladaElement
          extended by hmi.graphics.collada.Node
All Implemented Interfaces:
XMLStructure

public class Node
extends ColladaElement

Node in a hierarchical tree of Collada scene graph elements.

Author:
Job Zwiers

Field Summary
private  Asset asset
           
private static List<InstanceCamera> emptyInstanceCameras
           
private static List<InstanceController> emptyInstanceControllers
           
private static List<InstanceGeometry> emptyInstanceGeometries
           
private static List<InstanceLight> emptyInstanceLights
           
private static List<InstanceNode> emptyInstanceNodes
           
private  List<Extra> extras
           
private  List<InstanceCamera> instanceCameras
           
private  List<InstanceController> instanceControllers
           
private  List<InstanceGeometry> instanceGeometries
           
private  List<InstanceLight> instanceLights
           
private  List<InstanceNode> instanceNodes
           
private  String layers
           
private static int LISTSIZE
           
private  List<Node> nodes
           
private  List<TransformNode> transforms
           
private  String type
           
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
Node()
           
Node(Collada collada, XMLTokenizer tokenizer)
           
 
Method Summary
 StringBuilder appendAttributes(StringBuilder buf)
          appends a String of attributes 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 XML attributes
 void decodeContent(XMLTokenizer tokenizer)
          decodes the XML contents, i.e. the XML between the STag and ETag of the encoding.
 Asset getAsset()
           
 List<Extra> getExtras()
           
 List<InstanceCamera> getInstanceCameras()
           
 List<InstanceController> getInstanceControllers()
           
 List<InstanceGeometry> getInstanceGeometries()
           
 List<InstanceLight> getInstanceLights()
           
 List<InstanceNode> getInstanceNodes()
           
 String getLayers()
           
 List<Node> getNodes()
           
 List<TransformNode> getTransforms()
           
 String getType()
           
 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.ColladaElement
addColladaNode, addColladaNodes, addToIdMap, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

private String type

layers

private String layers

asset

private Asset asset

transforms

private List<TransformNode> transforms

instanceGeometries

private List<InstanceGeometry> instanceGeometries

instanceCameras

private List<InstanceCamera> instanceCameras

instanceControllers

private List<InstanceController> instanceControllers

instanceLights

private List<InstanceLight> instanceLights

instanceNodes

private List<InstanceNode> instanceNodes

nodes

private List<Node> nodes

extras

private List<Extra> extras

emptyInstanceGeometries

private static List<InstanceGeometry> emptyInstanceGeometries

emptyInstanceCameras

private static List<InstanceCamera> emptyInstanceCameras

emptyInstanceControllers

private static List<InstanceController> emptyInstanceControllers

emptyInstanceLights

private static List<InstanceLight> emptyInstanceLights

emptyInstanceNodes

private static List<InstanceNode> emptyInstanceNodes

LISTSIZE

private static final int LISTSIZE
See Also:
Constant Field Values

XMLTAG

private static final String XMLTAG
See Also:
Constant Field Values
Constructor Detail

Node

public Node()

Node

public Node(Collada collada,
            XMLTokenizer tokenizer)
     throws IOException
Throws:
IOException
Method Detail

getType

public String getType()

getLayers

public String getLayers()

getAsset

public Asset getAsset()

getTransforms

public List<TransformNode> getTransforms()

getInstanceGeometries

public List<InstanceGeometry> getInstanceGeometries()

getInstanceCameras

public List<InstanceCamera> getInstanceCameras()

getInstanceControllers

public List<InstanceController> getInstanceControllers()

getInstanceLights

public List<InstanceLight> getInstanceLights()

getInstanceNodes

public List<InstanceNode> getInstanceNodes()

getNodes

public List<Node> getNodes()

getExtras

public List<Extra> getExtras()

appendAttributes

public StringBuilder appendAttributes(StringBuilder buf)
appends a String of attributes to buf.

Overrides:
appendAttributes in class ColladaElement

decodeAttributes

public void decodeAttributes(HashMap<String,String> attrMap,
                             XMLTokenizer tokenizer)
decodes the XML attributes

Overrides:
decodeAttributes in class ColladaElement

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