PassiveSphere Class Reference

(Passive) sphere as obstacle More...

#include <passivesphere.h>

Inherits AbstractObstacle.

Inheritance diagram for PassiveSphere:

Inheritance graph
[legend]
Collaboration diagram for PassiveSphere:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PassiveSphere (const OdeHandle &odeHandle, const OsgHandle &osgHandle, double radius=0.3, double mass=1.0)
 Constructor.
 ~PassiveSphere ()
virtual void update ()
 update position of sphere
virtual void setTexture (const std::string &filename)
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 ()

Private Attributes

double radius
double mass
int texture
Sphere * sphere

Detailed Description

(Passive) sphere as obstacle


Constructor & Destructor Documentation

PassiveSphere (  const OdeHandle &  odeHandle,
const OsgHandle &  osgHandle,
double  radius = 0.3,
double  mass = 1.0
)  [inline]
 

Constructor.

~PassiveSphere (   )  [inline]
 


Member Function Documentation

virtual void create (   )  [inline, protected, virtual]
 

Implements AbstractObstacle.

virtual void destroy (   )  [inline, protected, virtual]
 

Implements AbstractObstacle.

virtual Primitive* getMainPrimitive (   )  const [inline, virtual]
 

Implements 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 setTexture (  const std::string &  filename  )  [inline, virtual]
 

virtual void update (   )  [inline, virtual]
 

update position of sphere

Implements AbstractObstacle.


Member Data Documentation

double mass [private]
 

double radius [private]
 

Sphere* sphere [private]
 

int texture [private]
 


The documentation for this class was generated from the following file:
Generated on Tue Jan 16 02:14:50 2007 for Robotsystem of the Robot Group Leipzig by doxygen 1.3.8