#include <meshobstacle.h>
Inherits AbstractObstacle.
Inheritance diagram for MeshObstacle:
Public Member Functions | |
MeshObstacle (const OdeHandle &odeHandle, const OsgHandle &osgHandle, std::string filename, double scale=1) | |
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 | |
Protected Member Functions | |
virtual void | create () |
overload this function to create the obstactle. All primitives should go into the list "obst" | |
virtual void | destroy () |
is called to destroy the object. The default implementation is to delete all primitives in "obst". | |
Protected Attributes | |
std::string | filename |
float | scale |
OSGMesh * | mesh |
Sphere * | bound |
BoundingShape * | boundshape |
MeshObstacle | ( | const OdeHandle & | odeHandle, | |
const OsgHandle & | osgHandle, | |||
std::string | filename, | |||
double | scale = 1 | |||
) | [inline] |
virtual void create | ( | ) | [inline, protected, virtual] |
overload this function to create the obstactle. All primitives should go into the list "obst"
Implements AbstractObstacle.
virtual void destroy | ( | ) | [inline, protected, virtual] |
is called to destroy the object. The default implementation is to delete all primitives in "obst".
Reimplemented from AbstractObstacle.
virtual void setPose | ( | const osg::Matrix & | pose | ) | [inline, virtual] |
sets position of the obstacle and creates/recreates obstacle if necessary
Implements AbstractObstacle.
virtual void update | ( | ) | [inline, virtual] |
updates the position of the geoms ( not nessary for static objects)
Reimplemented from AbstractObstacle.
BoundingShape* boundshape [protected] |
std::string filename [protected] |
float scale [protected] |