org.odejava.xode
Class XODEGeom
java.lang.Object
org.odejava.xode.XODEObject
org.odejava.xode.XODEContainer
org.odejava.xode.XODEGroup
org.odejava.xode.XODEGeom
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- XODEGeomBox, XODEGeomCappedCylinder, XODEGeomCone, XODEGeomCylinder, XODEGeomPlane, XODEGeomRay, XODEGeomSphere
public abstract class XODEGeom
- extends XODEGroup
- implements java.io.Serializable
XODE representation of a Geom
- Author:
- William Denniss
- See Also:
- Serialized Form
|
Constructor Summary |
protected |
XODEGeom()
Used when deserializing |
|
XODEGeom(org.w3c.dom.Node xodeData)
|
protected |
XODEGeom(java.lang.String name,
org.openmali.vecmath2.Matrix4f transform)
Creates the XODE representation of a Geom |
|
Method Summary |
org.w3c.dom.Element |
buildElement(org.w3c.dom.Document doc)
Builds an XML DOM representation of this XODEObject |
void |
buildOde(World world,
Space space,
java.lang.String namePrefix,
java.util.List<java.lang.Object> odeList)
Constructs the ODE scene based on this XODE structure |
abstract Geom |
getGeom()
Creates a new ODE Geom object represented by this XODEObject. |
| Methods inherited from class org.odejava.xode.XODEContainer |
addChild, addChildElements, addChildren, addTransformElement, getBodyRelTransform, getChildren, getPosition, getRootTransform, getRotation, getTransform, getTransform, getXODETransform, invalidateTransformCache, isAbsoluteTransformMode, parseTransform, removeChild, scrapDOMObjectCache, scrapODEObjectCache, setAbsolute, setParent, setPosition, setRotation, setTransform |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XODEGeom
protected XODEGeom()
- Used when deserializing
XODEGeom
protected XODEGeom(java.lang.String name,
org.openmali.vecmath2.Matrix4f transform)
- Creates the XODE representation of a Geom
- Parameters:
name - name of Geomtransform - transform
XODEGeom
public XODEGeom(org.w3c.dom.Node xodeData)
getGeom
public abstract Geom getGeom()
- Creates a new ODE Geom object represented by this XODEObject.
- Returns:
- new ODE Geom object represented by this XODEObject.
buildOde
public void buildOde(World world,
Space space,
java.lang.String namePrefix,
java.util.List<java.lang.Object> odeList)
- Description copied from class:
XODEObject
- Constructs the ODE scene based on this XODE structure
- Overrides:
buildOde in class XODEContainer
- Parameters:
world - the World to add created bodiesspace - the Space to add created geometrynamePrefix - string to prefix all namesodeList - list of all created ODE files (will be added to)
buildElement
public org.w3c.dom.Element buildElement(org.w3c.dom.Document doc)
- Description copied from class:
XODEObject
- Builds an XML DOM representation of this XODEObject
- Overrides:
buildElement in class XODEGroup
- Parameters:
doc - the Document this Element will be associated with
- Returns:
- and XML DOM representation of this XODEObject