org.odejava.xode
Class XODEGroup
java.lang.Object
org.odejava.xode.XODEObject
org.odejava.xode.XODEContainer
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
|
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 |
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 dataparseData - boolean to indicate if the XML node data should be parsed
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