|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.odejava.xode.XODEObject
org.odejava.xode.XODEContainer
org.odejava.xode.XODERoot
public class XODERoot
Root XODE node
| 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 |
XODERoot()
|
|
XODERoot(org.w3c.dom.Node xode,
org.openmali.vecmath2.Matrix4f parentTransform)
|
|
XODERoot(java.lang.String name,
org.openmali.vecmath2.Matrix4f transform)
|
|
XODERoot(java.lang.String name,
org.openmali.vecmath2.Matrix4f transform,
World world,
Space space)
Creates an XODE tree based on an ODE scene |
| Method Summary | |
|---|---|
org.w3c.dom.Document |
buildDocument()
|
org.w3c.dom.Element |
buildElement(org.w3c.dom.Document doc)
Builds an XML DOM representation of this XODEObject |
java.util.List<java.lang.Object> |
buildODEScene(World world,
Space space,
java.lang.String namePrefix)
Creates all the ODE bodies, geoms and joints represented in this XODE tree. |
java.util.List<java.lang.Object> |
buildODEScene(World world,
Space space,
java.lang.String namePrefix,
org.openmali.vecmath2.Matrix4f transform)
Creates all the ODE bodies, geoms and joints represented in this XODE tree. |
static void |
removeAllODEObjects(java.util.List<java.lang.Object> odeObjects)
Attempts to remove and delete all given ODE objects from their respective WorldS and SpaceS. |
void |
setRootTransform(org.openmali.vecmath2.Matrix4f transform)
Changes the root transform and forces child nodes to recalculate their relitive transforms next time a transform getter is called. |
| 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 |
|---|
protected XODERoot()
public XODERoot(java.lang.String name,
org.openmali.vecmath2.Matrix4f transform)
public XODERoot(org.w3c.dom.Node xode,
org.openmali.vecmath2.Matrix4f parentTransform)
public XODERoot(java.lang.String name,
org.openmali.vecmath2.Matrix4f transform,
World world,
Space space)
name - name of the root nodetransform - root transformworld - ODE World to parsespace - ODE Space to parse| Method Detail |
|---|
public java.util.List<java.lang.Object> buildODEScene(World world,
Space space,
java.lang.String namePrefix)
world - the World the ODE objects are added tospace - the Space the ODE objects are added tonamePrefix - String the names of the objects are prefixed by
public java.util.List<java.lang.Object> buildODEScene(World world,
Space space,
java.lang.String namePrefix,
org.openmali.vecmath2.Matrix4f transform)
world - the World the ODE objects are added tospace - the Space the ODE objects are added tonamePrefix - String the names of the objects are prefixed bytransform - The transform offset that will be applied to all XODE nodessetRootTransform(org.openmali.vecmath2.Matrix4f)public void setRootTransform(org.openmali.vecmath2.Matrix4f transform)
transform - the replacement root transform
public org.w3c.dom.Document buildDocument()
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationExceptionpublic org.w3c.dom.Element buildElement(org.w3c.dom.Document doc)
XODEObject
buildElement in class XODEObjectdoc - the Document this Element will be associated with
public static void removeAllODEObjects(java.util.List<java.lang.Object> odeObjects)
odeObjects - the list of ODE objects to be removed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||