|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.odejava.display.BoundDisplayObject
public class BoundDisplayObject
Represents an abstract Display Object that is bound to an Ode Body or Geom (the OdeTransformable).
| Field Summary | |
|---|---|
protected DisplayTransformable |
displayObject
The abstract display object. |
protected Placeable |
odeObject
The abstract ODE object. |
| Constructor Summary | |
|---|---|
BoundDisplayObject(DisplayTransformable displayObject,
Placeable odeObject)
Creates a new binding of a transform-capable Display object and a transform-capable Ode object. |
|
| Method Summary | |
|---|---|
void |
forceUpdate()
Forces an update of the display object's position next time update() is called |
DisplayTransformable |
getDisplayTransformable()
Returns the bound DisplayTransformable |
Placeable |
getOdeTransformable()
Returns the bound OdeTransformable |
void |
setDisplayTransformable(DisplayTransformable displayObject)
Changes the display object that is kept in sync with the ODE Placeable. |
void |
setOdeTransformable(Placeable odeObject)
Changes the Placeable which the display object keeps in sync with. |
void |
update()
Updates the transform of the Display Object, synching it to that of the ODE object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DisplayTransformable displayObject
protected Placeable odeObject
| Constructor Detail |
|---|
public BoundDisplayObject(DisplayTransformable displayObject,
Placeable odeObject)
| Method Detail |
|---|
public void update()
public DisplayTransformable getDisplayTransformable()
public void setDisplayTransformable(DisplayTransformable displayObject)
displayObject - The displayObject to set.public Placeable getOdeTransformable()
public void setOdeTransformable(Placeable odeObject)
odeObject - The new Placeable object to use.public void forceUpdate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||