#include <abstractobstacle.h>
Inherited by AbstractGround, MeshGround, MeshObstacle, PassiveBox, PassiveCapsule, PassiveMesh, PassiveSphere, and TerrainGround.
Inheritance diagram for AbstractObstacle:


Public Member Functions | |
| AbstractObstacle (const OdeHandle &odeHandle, const OsgHandle &osgHandle) | |
| Constructor. | |
| virtual | ~AbstractObstacle () |
| virtual void | update ()=0 |
| updates the position if the scenegraph nodes | |
| virtual void | setPosition (const osg::Vec3 &pos) |
| sets position of the obstacle and creates/recreates obstacle if necessary | |
| virtual osg::Vec3 | getPosition () |
| gives actual position of the obstacle | |
| virtual osg::Matrix | getPose () |
| gives actual pose of the obstacle | |
| virtual void | setPose (const osg::Matrix &pose)=0 |
| sets position of the obstacle and creates/recreates obstacle if necessary | |
| virtual void | setColor (const Color &color) |
| sets the obstacle color | |
| virtual Primitive * | getMainPrimitive () const =0 |
Protected Member Functions | |
| virtual void | destroy ()=0 |
| virtual void | create ()=0 |
Protected Attributes | |
| osg::Matrix | pose |
| bool | obstacle_exists |
| OdeHandle | odeHandle |
| OsgHandle | osgHandle |
|
||||||||||||
|
Constructor.
|
|
|
|
|
|
Implemented in AbstractGround, ClosedPlayground, MeshGround, MeshObstacle, OctaPlayground, PassiveBox, PassiveCapsule, PassiveMesh, PassiveSphere, Playground, and TerrainGround.
|
|
|
Implemented in AbstractGround, ClosedPlayground, MeshGround, MeshObstacle, PassiveBox, PassiveCapsule, PassiveMesh, PassiveSphere, and TerrainGround.
|
|
|
Implemented in AbstractGround, PassiveBox, PassiveCapsule, PassiveMesh, PassiveSphere, and TerrainGround.
|
|
|
gives actual pose of the obstacle
|
|
|
gives actual position of the obstacle
|
|
|
sets the obstacle color
Reimplemented in AbstractGround.
|
|
|
sets position of the obstacle and creates/recreates obstacle if necessary
Implemented in AbstractGround, MeshGround, MeshObstacle, PassiveBox, PassiveCapsule, PassiveMesh, PassiveSphere, and TerrainGround.
|
|
|
sets position of the obstacle and creates/recreates obstacle if necessary
|
|
|
updates the position if the scenegraph nodes
Implemented in AbstractGround, MeshGround, MeshObstacle, PassiveBox, PassiveCapsule, PassiveMesh, PassiveSphere, and TerrainGround.
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8