org.odejava.xode
Class XODEJointAxis

java.lang.Object
  extended by org.odejava.xode.XODEJointAxis
All Implemented Interfaces:
Serializable

public class XODEJointAxis
extends Object
implements Serializable

Parses, stores and creates ODE axes.

Author:
Matteo Migliavacca, William Denniss
See Also:
Serialized Form

Constructor Summary
protected XODEJointAxis()
           
  XODEJointAxis(float x, float y, float z)
           
  XODEJointAxis(float x, float y, float z, Float LowStop, Float HiStop, Float Vel, Float FMax, Float FudgeFactor, Float Bounce, Float CFM, Float StopERP, Float StopCFM, Float SuspensionERP, Float SuspensionCFM)
           
  XODEJointAxis(Node axisNode)
          Parse DOM xml data
 
Method Summary
 void addAxis(Joint joint, int numAxis)
          Adds this axes data to a joint at the given position
 Element buildElement(Document doc)
           
 Float getBounce()
           
 Float getCFM()
           
 Float getFMax()
           
 Float getFudgeFactor()
           
 Float getHiStop()
           
 Float getLowStop()
           
 Float getStopCFM()
           
 Float getStopERP()
           
 Float getSuspensionCFM()
           
 Float getSuspensionERP()
           
 Float getVel()
           
 float getX()
           
 float getY()
           
 float getZ()
           
 void setBounce(Float bounce)
           
 void setCFM(Float cfm)
           
 void setFMax(Float max)
           
 void setFudgeFactor(Float fudgeFactor)
           
 void setHiStop(Float hiStop)
           
 void setLowStop(Float lowStop)
           
 void setStopCFM(Float stopCFM)
           
 void setStopERP(Float stopERP)
           
 void setSuspensionCFM(Float suspensionCFM)
           
 void setSuspensionERP(Float suspensionERP)
           
 void setVel(Float vel)
           
 void setX(float x)
           
 void setY(float y)
           
 void setZ(float z)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XODEJointAxis

protected XODEJointAxis()

XODEJointAxis

public XODEJointAxis(float x,
                     float y,
                     float z)

XODEJointAxis

public XODEJointAxis(float x,
                     float y,
                     float z,
                     Float LowStop,
                     Float HiStop,
                     Float Vel,
                     Float FMax,
                     Float FudgeFactor,
                     Float Bounce,
                     Float CFM,
                     Float StopERP,
                     Float StopCFM,
                     Float SuspensionERP,
                     Float SuspensionCFM)

XODEJointAxis

public XODEJointAxis(Node axisNode)
Parse DOM xml data

Parameters:
axisNode -
Method Detail

buildElement

public Element buildElement(Document doc)

addAxis

public void addAxis(Joint joint,
                    int numAxis)
Adds this axes data to a joint at the given position

Parameters:
joint - Joint to which axis will be added
numAxis - Axis position for this axes

getBounce

public Float getBounce()
Returns:
Returns the bounce.

setBounce

public void setBounce(Float bounce)
Parameters:
bounce - The bounce to set.

getCFM

public Float getCFM()
Returns:
Returns the cFM.

setCFM

public void setCFM(Float cfm)
Parameters:
cfm - The cFM to set.

getFMax

public Float getFMax()
Returns:
Returns the fMax.

setFMax

public void setFMax(Float max)
Parameters:
max - The fMax to set.

getFudgeFactor

public Float getFudgeFactor()
Returns:
Returns the fudgeFactor.

setFudgeFactor

public void setFudgeFactor(Float fudgeFactor)
Parameters:
fudgeFactor - The fudgeFactor to set.

getHiStop

public Float getHiStop()
Returns:
Returns the hiStop.

setHiStop

public void setHiStop(Float hiStop)
Parameters:
hiStop - The hiStop to set.

getLowStop

public Float getLowStop()
Returns:
Returns the lowStop.

setLowStop

public void setLowStop(Float lowStop)
Parameters:
lowStop - The lowStop to set.

getStopCFM

public Float getStopCFM()
Returns:
Returns the stopCFM.

setStopCFM

public void setStopCFM(Float stopCFM)
Parameters:
stopCFM - The stopCFM to set.

getStopERP

public Float getStopERP()
Returns:
Returns the stopERP.

setStopERP

public void setStopERP(Float stopERP)
Parameters:
stopERP - The stopERP to set.

getSuspensionCFM

public Float getSuspensionCFM()
Returns:
Returns the suspensionCFM.

setSuspensionCFM

public void setSuspensionCFM(Float suspensionCFM)
Parameters:
suspensionCFM - The suspensionCFM to set.

getSuspensionERP

public Float getSuspensionERP()
Returns:
Returns the suspensionERP.

setSuspensionERP

public void setSuspensionERP(Float suspensionERP)
Parameters:
suspensionERP - The suspensionERP to set.

getVel

public Float getVel()
Returns:
Returns the vel.

setVel

public void setVel(Float vel)
Parameters:
vel - The vel to set.

getX

public float getX()
Returns:
Returns the x.

setX

public void setX(float x)
Parameters:
x - The x to set.

getY

public float getY()
Returns:
Returns the y.

setY

public void setY(float y)
Parameters:
y - The y to set.

getZ

public float getZ()
Returns:
Returns the z.

setZ

public void setZ(float z)
Parameters:
z - The z to set.