org.odejava.xode
Class XODEGeomSphere
java.lang.Object
org.odejava.xode.XODEObject
org.odejava.xode.XODEContainer
org.odejava.xode.XODEGroup
org.odejava.xode.XODEGeom
org.odejava.xode.XODEGeomSphere
- All Implemented Interfaces:
- java.io.Serializable
public class XODEGeomSphere
- extends XODEGeom
- implements java.io.Serializable
An imutable Sphere
- 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 |
getRadius()
|
void |
setRadius(float radius)
Sets the radius |
| 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 |
XODEGeomSphere
protected XODEGeomSphere()
XODEGeomSphere
public XODEGeomSphere(float radius)
XODEGeomSphere
public XODEGeomSphere(org.w3c.dom.Node xodeData)
XODEGeomSphere
public XODEGeomSphere(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
getRadius
public float getRadius()
- Returns:
- Returns the radius.
setRadius
public void setRadius(float radius)
- Sets the radius
- Parameters:
radius - new radius to set