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:
- Serializable
public class XODEGeomCylinder
- extends XODEGeom
- implements Serializable
An immutable Cylinder
- Author:
- William Denniss
- See Also:
- Serialized Form
| 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 |
XODEGeomCylinder
public XODEGeomCylinder()
XODEGeomCylinder
public XODEGeomCylinder(float radius,
float length)
XODEGeomCylinder
public XODEGeomCylinder(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 Element buildElement(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.