24 #ifndef __HEIGHTFIELDPRIMITIVES_H
25 #define __HEIGHTFIELDPRIMITIVES_H
29 #include <ode-dbl/ode.h>
37 HeightField(
const std::string& filename,
float x_size,
float y_size,
float height);
38 HeightField(osg::HeightField* heightfield,
float x_size,
float y_size);
51 virtual void setMass(
double mass,
bool density =
false) {}
virtual OSGPrimitive * getOSGPrimitive()
returns the assoziated osg primitive if there or 0
Definition: heightfieldprimitive.h:49
Data structure for accessing the ODE.
Definition: odehandle.h:44
Matrixd Matrix
Definition: osgforwarddecl.h:47
virtual void init(const OdeHandle &odeHandle, double mass, const OsgHandle &osgHandle, char mode=Body|Geom|Draw)
registers primitive in ODE and OSG.
Definition: heightfieldprimitive.cpp:72
Interface class for graphic primitives like spheres, boxes, and meshes, which can be drawn by OSG...
Definition: osgprimitive.h:62
virtual void update()
Updates the OSG nodes with ODE coordinates.
Definition: heightfieldprimitive.cpp:172
HeightField(const std::string &filename, float x_size, float y_size, float height)
Definition: heightfieldprimitive.cpp:57
virtual void setPose(const osg::Matrix &pose)
set the pose of the primitive
Definition: heightfieldprimitive.cpp:178
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
char mode
Definition: primitive.h:236
Definition: primitive.h:89
virtual ~HeightField()
Definition: heightfieldprimitive.cpp:67
Height field primitive.
Definition: heightfieldprimitive.h:35
dTriMeshDataID data
Definition: heightfieldprimitive.h:55
Definition: primitive.h:89
Definition: primitive.h:89
Interface class for primitives represented in the physical and graphical world.
Definition: primitive.h:80
Graphical HeightField.
Definition: osgheightfield.h:36
virtual void setMass(double mass, bool density=false)
sets the mass of the body (uniform) if density==true then mass is interpreted as a density ...
Definition: heightfieldprimitive.h:51
OSGHeightField * osgheightfield
Definition: heightfieldprimitive.h:54