org.odejava.xode
Class XODEGroup

java.lang.Object
  extended by org.odejava.xode.XODEObject
      extended by org.odejava.xode.XODEContainer
          extended by org.odejava.xode.XODEGroup
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
XODEBody, XODEGeom, XODEJointGroup, XODESpace

public class XODEGroup
extends XODEContainer
implements Serializable

XODE representation of a World. Note - doesn't create a world currently.

Author:
William Denniss
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.odejava.xode.XODEContainer
absoluteTransform, cachedBodyRelTransform, cachedRootTransform, cachedTransform, relTransform, xodeObjects
 
Fields inherited from class org.odejava.xode.XODEObject
node, odeObject
 
Constructor Summary
protected XODEGroup()
           
  XODEGroup(Node xodeData)
          Creates and parses the XODE group
  XODEGroup(Node xodeData, boolean parseData)
          Creates and optionally parses the XODE group.
  XODEGroup(String name, org.openmali.vecmath2.Matrix4f transform)
           
 
Method Summary
 Element buildElement(Document doc)
          Builds an XML DOM representation of this XODEObject
protected  void parseGroup(Node xodeData)
          Iterates though all the child nodes of this NODE and calls parseGroupChild on each.
protected  void parseGroupChild(Node currentChild)
          Checks to see if the given child node is an XODE object or container (i.e. body, group, geom, space etc...)
 
Methods inherited from class org.odejava.xode.XODEContainer
addChild, addChildElements, addChildren, addTransformElement, buildOde, getBodyRelTransform, getChildren, getPosition, getRootTransform, getRotation, getTransform, getTransform, getXODETransform, invalidateTransformCache, isAbsoluteTransformMode, parseTransform, removeChild, scrapDOMObjectCache, scrapODEObjectCache, setAbsolute, setParent, setPosition, setRotation, setTransform
 
Methods inherited from class org.odejava.xode.XODEObject
clone, getDOMNode, getFirstBodyAncestor, getFirstJointGroupAncestor, getFirstSpaceAncestor, getName, getODEObject, getParent, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XODEGroup

protected XODEGroup()

XODEGroup

public XODEGroup(String name,
                 org.openmali.vecmath2.Matrix4f transform)

XODEGroup

public XODEGroup(Node xodeData)
Creates and parses the XODE group

Parameters:
xodeData - XML data

XODEGroup

public XODEGroup(Node xodeData,
                 boolean parseData)
Creates and optionally parses the XODE group. The data is parsed when this is a
Parameters:
xodeData - XML data
parseData - boolean to indicate if the XML node data should be parsed
Method Detail

parseGroup

protected void parseGroup(Node xodeData)
Iterates though all the child nodes of this NODE and calls parseGroupChild on each.

Parameters:
xodeData - the XML data to parse

parseGroupChild

protected void parseGroupChild(Node currentChild)
Checks to see if the given child node is an XODE object or container (i.e. body, group, geom, space etc...)

Parameters:
currentChild - the XODE XML node

buildElement

public Element buildElement(Document doc)
Description copied from class: XODEObject
Builds an XML DOM representation of this XODEObject

Specified by:
buildElement in class XODEObject
Parameters:
doc - the Document this Element will be associated with
Returns:
and XML DOM representation of this XODEObject