24 #ifndef __MESHGROUND_H
25 #define __MESHGROUND_H
Data structure for accessing the ODE.
Definition: odehandle.h:44
OsgHandle osgHandle
Definition: abstractobstacle.h:174
HeightField * heightfield
Definition: meshground.h:72
std::string filename
Definition: meshground.h:70
Abstract class (interface) for obstacles.
Definition: abstractobstacle.h:46
Matrixd Matrix
Definition: osgforwarddecl.h:47
virtual void update()
updates the position of the geoms ( not nessary for static objects)
Definition: meshground.h:60
OdeHandle odeHandle
Definition: abstractobstacle.h:173
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
virtual void setPose(const osg::Matrix &pose)
sets position of the obstacle and creates/recreates obstacle if necessary
Definition: meshground.cpp:58
Definition: osgheightfield.h:44
virtual void destroy()
is called to destroy the object. The default implementation is to delete all primitives in "obst"...
Definition: meshground.cpp:83
MeshGround(const OdeHandle &odeHandle, const OsgHandle &osgHandle, const std::string &filename, const std::string &texture, double x_size, double y_size, double height, OSGHeightField::CodingMode coding=OSGHeightField::Red)
Constructor.
Definition: meshground.cpp:46
double x_size
Definition: meshground.h:73
Height field primitive.
Definition: heightfieldprimitive.h:35
double y_size
Definition: meshground.h:74
double height
Definition: meshground.h:75
osg::Matrix pose
Definition: abstractobstacle.h:170
Definition: meshground.h:35
OSGHeightField::CodingMode coding
Definition: meshground.h:76
std::string texture
Definition: meshground.h:71
virtual void create()
overload this function to create the obstactle. All primitives should go into the list "obst" ...
Definition: meshground.cpp:66
CodingMode
height coding using in the read in bitmap.
Definition: osgheightfield.h:44