org.odejava.xode
Class XODEJoint
java.lang.Object
org.odejava.xode.XODEObject
org.odejava.xode.XODEJoint
- All Implemented Interfaces:
- java.io.Serializable
public class XODEJoint
- extends XODEObject
- implements java.io.Serializable
XODE representation of a Joint
- Author:
- Matteo Migliavacca, William Denniss
- See Also:
- Serialized Form
|
Field Summary |
protected org.openmali.vecmath2.Vector3f |
anchor
|
protected java.util.List<XODEJointAxis> |
axes
|
protected java.lang.String |
jointType
|
protected java.lang.String |
link1
|
protected java.lang.String |
link2
|
static org.apache.log4j.Logger |
log
|
|
Constructor Summary |
protected |
XODEJoint()
|
|
XODEJoint(org.w3c.dom.Node xodeData)
|
|
XODEJoint(java.lang.String name,
org.openmali.vecmath2.Vector3f anchor,
java.lang.String link1,
java.lang.String link2,
java.lang.String jointType,
java.util.List<XODEJointAxis> axes)
|
|
Method Summary |
void |
addAxes(Joint joint)
|
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 |
org.openmali.vecmath2.Vector3f |
getAnchor()
|
static org.openmali.vecmath2.Vector3f |
parseAnchor(org.w3c.dom.Node jointNode)
|
void |
parseXODEAxis(org.w3c.dom.Node xodeData)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
link1
protected java.lang.String link1
link2
protected java.lang.String link2
anchor
protected org.openmali.vecmath2.Vector3f anchor
axes
protected java.util.List<XODEJointAxis> axes
jointType
protected java.lang.String jointType
log
public static org.apache.log4j.Logger log
XODEJoint
protected XODEJoint()
XODEJoint
public XODEJoint(java.lang.String name,
org.openmali.vecmath2.Vector3f anchor,
java.lang.String link1,
java.lang.String link2,
java.lang.String jointType,
java.util.List<XODEJointAxis> axes)
XODEJoint
public XODEJoint(org.w3c.dom.Node xodeData)
parseXODEAxis
public void parseXODEAxis(org.w3c.dom.Node xodeData)
parseAnchor
public static org.openmali.vecmath2.Vector3f parseAnchor(org.w3c.dom.Node jointNode)
getAnchor
public org.openmali.vecmath2.Vector3f getAnchor()
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
- Specified by:
buildOde in class XODEObject
- 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)
addAxes
public void addAxes(Joint joint)
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
- Specified by:
buildElement in class XODEObject
- Parameters:
doc - the Document this Element will be associated with
- Returns:
- and XML DOM representation of this XODEObject