24 #ifndef __TERRAINGROUND_H
25 #define __TERRAINGROUND_H
TerrainGround(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: terrainground.cpp:41
Data structure for accessing the ODE.
Definition: odehandle.h:44
OsgHandle osgHandle
Definition: abstractobstacle.h:174
OSGHeightField::CodingMode coding
Definition: terrainground.h:83
double height
Definition: terrainground.h:82
Abstract class (interface) for obstacles.
Definition: abstractobstacle.h:46
std::string texture
Definition: terrainground.h:78
Matrixd Matrix
Definition: osgforwarddecl.h:47
virtual void update()
updates the position of the geoms ( not nessary for static objects)
Definition: terrainground.h:65
virtual Primitive * getMainPrimitive() const
return the "main" primitive of the obtactle. The meaning of "main" is arbitrary
Definition: terrainground.h:70
OdeHandle odeHandle
Definition: abstractobstacle.h:173
double y_size
Definition: terrainground.h:81
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
Definition: osgheightfield.h:44
virtual void create()
overload this function to create the obstactle. All primitives should go into the list "obst" ...
Definition: terrainground.cpp:60
Height field primitive.
Definition: heightfieldprimitive.h:35
Class provides an terrain based on HeightFields.
Definition: terrainground.h:38
Interface class for primitives represented in the physical and graphical world.
Definition: primitive.h:80
double x_size
Definition: terrainground.h:80
osg::Matrix pose
Definition: abstractobstacle.h:170
HeightField * heightfield
Definition: terrainground.h:79
virtual void setPose(const osg::Matrix &pose)
sets position of the obstacle and creates/recreates obstacle if necessary
Definition: terrainground.cpp:52
std::string filename
Definition: terrainground.h:77
virtual void destroy()
is called to destroy the object. The default implementation is to delete all primitives in "obst"...
Definition: terrainground.cpp:76
CodingMode
height coding using in the read in bitmap.
Definition: osgheightfield.h:44
virtual ~TerrainGround()
Definition: terrainground.h:60