|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||
See:
Description
| Interface Summary | |
|---|---|
| DisplayTransformable | Defines a common interface used by objects whose transforms are linked to ODE objects and can be updated by the BoundDisplayObject class. |
| Class Summary | |
|---|---|
| BoundDisplayObject | Represents an abstract Display Object that is bound to an Ode Body or Geom (the OdeTransformable). |
| DisplayBin | Stores a List of BoundDisplayObjectS. |
Used to bind ODE to the display library of your choice. As ODE is purely a mathematical physics library, it has no inherent way of displaying the various objects in the scene.
Using this package, ODE objects such as Geom and Body can be ``bound'' to
display objects from any given display API. This means that when those
objects move in the ODE scene, the corrosponding representation in the display
library will also be moved. The DisplayBin object is used to
maintain a list of such bound objects in the scene and keep them in sync.
To use a graphics package with Odejava - all that is needed is to implement
the DisplayTransformable interface with regards to the chosen
display library. All that interface specifies is a way for setting the
translation and rotational components of the display object so it can be
synched to the ODE one.
In addition to implementing DisplayTransformable, display libraries
can have a utility class which is given Odejava GeomS and BodyS
and can automatially generate appropriate representations of them in the display
library using the Geometry properties.
Examples of both a DisplayTransformable implementation and utility class can be seen in the
org.odejava.xith3d
package.
|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||