#include <heightfieldprimitive.h>
Inherits Primitive.
Inheritance diagram for HeightField:


Public Member Functions | |
| HeightField (const std::string &filename, float x_size, float y_size, float height) | |
| HeightField (osg::HeightField *heightfield, float x_size, float y_size) | |
| virtual | ~HeightField () |
| virtual void | init (const OdeHandle &odeHandle, double mass, const OsgHandle &osgHandle, char mode=Body|Geom|Draw) |
| registers primitive in ODE and OSG. | |
| virtual void | setPose (const osg::Matrix &pose) |
| set the pose of the primitive | |
| virtual void | update () |
| Updates the OSG nodes with ODE coordinates. | |
| virtual OSGPrimitive * | getOSGPrimitive () |
| returns the assoziated osg primitive if there or 0 | |
Protected Attributes | |
| OSGHeightField * | osgheightfield |
| dTriMeshDataID | data |
| OSGPrimitive * | test [20] |
|
||||||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
returns the assoziated osg primitive if there or 0
Implements Primitive.
|
|
||||||||||||||||||||
|
registers primitive in ODE and OSG.
Implements Primitive.
|
|
|
set the pose of the primitive
Reimplemented from Primitive.
|
|
|
Updates the OSG nodes with ODE coordinates. This function must be overloaded (usually calls setMatrix of OsgPrimitives) Implements Primitive.
|
|
|
|
|
|
|
|
|
|
1.3.8