#include <terrainground.h>
Inherits AbstractObstacle.
Inheritance diagram for TerrainGround:


Public Member Functions | |
| 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. | |
| virtual | ~TerrainGround () |
| virtual void | update () |
| updates the position of the geoms ( not nessary for static objects) | |
| virtual void | setPose (const osg::Matrix &pose) |
| sets position of the obstacle and creates/recreates obstacle if necessary | |
| virtual Primitive * | getMainPrimitive () const |
Protected Member Functions | |
| virtual void | create () |
| virtual void | destroy () |
Protected Attributes | |
| std::string | filename |
| std::string | texture |
| HeightField * | heightfield |
| double | x_size |
| double | y_size |
| double | height |
| OSGHeightField::CodingMode | coding |
Can be loaded from image or from HeightFieldFiles
|
||||||||||||||||||||||||||||||||||||
|
Constructor.
|
|
|
|
|
|
Implements AbstractObstacle.
|
|
|
Implements AbstractObstacle.
|
|
|
Implements AbstractObstacle.
|
|
|
sets position of the obstacle and creates/recreates obstacle if necessary
Implements AbstractObstacle.
|
|
|
updates the position of the geoms ( not nessary for static objects)
Implements AbstractObstacle.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8