|
|||||||||
| 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(Node xode,
org.openmali.vecmath2.Matrix4f parentTransform)
|
|
XODERoot(String name,
org.openmali.vecmath2.Matrix4f transform)
|
|
XODERoot(String name,
org.openmali.vecmath2.Matrix4f transform,
World world,
Space space)
Creates an XODE tree based on an ODE scene |
| Method Summary | |
|---|---|
Document |
buildDocument()
|
Element |
buildElement(Document doc)
Builds an XML DOM representation of this XODEObject |
List<Object> |
buildODEScene(World world,
Space space,
String namePrefix)
Creates all the ODE bodies, geoms and joints represented in this XODE tree. |
List<Object> |
buildODEScene(World world,
Space space,
String namePrefix,
org.openmali.vecmath2.Matrix4f transform)
Creates all the ODE bodies, geoms and joints represented in this XODE tree. |
static void |
removeAllODEObjects(List<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(String name,
org.openmali.vecmath2.Matrix4f transform)
public XODERoot(Node xode,
org.openmali.vecmath2.Matrix4f parentTransform)
public XODERoot(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 List<Object> buildODEScene(World world,
Space space,
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 List<Object> buildODEScene(World world,
Space space,
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 Document buildDocument()
throws ParserConfigurationException
ParserConfigurationExceptionpublic Element buildElement(Document doc)
XODEObject
buildElement in class XODEObjectdoc - the Document this Element will be associated with
public static void removeAllODEObjects(List<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 | ||||||||