org.odejava.xode
Class XODEGeomCylinder
java.lang.Object
org.odejava.xode.XODEObject
org.odejava.xode.XODEContainer
org.odejava.xode.XODEGroup
org.odejava.xode.XODEGeom
org.odejava.xode.XODEGeomCylinder
- All Implemented Interfaces:
- java.io.Serializable
public class XODEGeomCylinder
- extends XODEGeom
- implements java.io.Serializable
An immutable Cylinder
- Author:
- William Denniss
- See Also:
- Serialized Form
|
Method Summary |
org.w3c.dom.Element |
buildElement(org.w3c.dom.Document doc)
Builds an XML DOM representation of this XODEObject |
Geom |
getGeom()
Creates a new ODE Geom object represented by this XODEObject. |
float |
getLength()
|
float |
getRadius()
|
| 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 |
XODEGeomCylinder
public XODEGeomCylinder()
XODEGeomCylinder
public XODEGeomCylinder(float radius,
float length)
XODEGeomCylinder
public XODEGeomCylinder(org.w3c.dom.Node xodeData)
XODEGeomCylinder
public XODEGeomCylinder(Geom currentGeom,
org.openmali.vecmath2.Matrix4f transform)
- Parameters:
currentGeom - transform -
getGeom
public Geom getGeom()
- Description copied from class:
XODEGeom
- Creates a new ODE Geom object represented by this XODEObject.
- Specified by:
getGeom in class XODEGeom
- Returns:
- new ODE Geom object represented by this XODEObject.
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 XODEGeom
- Parameters:
doc - the Document this Element will be associated with
- Returns:
- and XML DOM representation of this XODEObject
getLength
public float getLength()
- Returns:
- Returns the length.
getRadius
public float getRadius()
- Returns:
- Returns the radius.