#include <abstractground.h>
Inherits AbstractObstacle.
Inherited by OctaPlayground, and Playground.
Inheritance diagram for AbstractGround:


Public Member Functions | |
| AbstractGround (const OdeHandle &odeHandle, const OsgHandle &osgHandle, bool createGround, double groundLength, double groundWidth) | |
| virtual | ~AbstractGround () |
| virtual void | update () |
| updates the position if the scenegraph nodes | |
| virtual void | setPose (const osg::Matrix &pose) |
| sets position of the obstacle and creates/recreates obstacle if necessary | |
| virtual void | createGround (bool create) |
| virtual void | setColor (const Color &color) |
| sets the obstacle color | |
| virtual void | setTexture (const std::string &filename) |
| virtual Primitive * | getMainPrimitive () const |
| virtual void | setGroundTexture (const std::string &filename) |
| virtual void | setGroundColor (const Color &color) |
| sets the ground color should be called before setPosition() | |
Protected Member Functions | |
| virtual void | recreate () |
| virtual void | create ()=0 |
| virtual void | createGround () |
| virtual void | destroy () |
Protected Attributes | |
| std::vector< Primitive * > | obst |
| Primitive * | groundPlane |
| bool | creategroundPlane |
| double | groundLength |
| double | groundWidth |
| std::string | wallTextureFileName |
| Color | groundColor |
| std::string | groundTextureFileName |
|
||||||||||||||||||||||||
|
|
|
|
|
|
|
Implements AbstractObstacle.
Implemented in ClosedPlayground, OctaPlayground, and Playground.
|
|
|
|
|
|
|
|
|
Implements AbstractObstacle.
Reimplemented in ClosedPlayground.
|
|
|
Implements AbstractObstacle.
|
|
|
|
|
|
sets the obstacle color
Reimplemented from AbstractObstacle.
|
|
|
sets the ground color should be called before setPosition()
|
|
|
|
|
|
sets position of the obstacle and creates/recreates obstacle if necessary
Implements AbstractObstacle.
|
|
|
|
|
|
updates the position if the scenegraph nodes
Implements AbstractObstacle.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8