Capsule Class Reference

#include <primitive.h>

Inheritance diagram for Capsule:

Inheritance graph
[legend]
Collaboration diagram for Capsule:

Collaboration graph
[legend]
List of all members.

Detailed Description

Capsule primitive.

Definition at line 190 of file primitive.h.

Public Member Functions

 Capsule (float radius, float height)
virtual ~Capsule ()
virtual void init (const OdeHandle &odeHandle, double mass, const OsgHandle &osgHandle, char mode=Body|Geom|Draw)
 registers primitive in ODE and OSG.
virtual void update ()
 Updates the OSG nodes with ODE coordinates.
virtual OSGPrimitivegetOSGPrimitive ()
 returns the assoziated osg primitive if there or 0

Protected Attributes

OSGCapsuleosgcapsule


Constructor & Destructor Documentation

Capsule float  radius,
float  height
 

Definition at line 293 of file primitive.cpp.

~Capsule  )  [virtual]
 

Definition at line 297 of file primitive.cpp.


Member Function Documentation

virtual OSGPrimitive* getOSGPrimitive  )  [inline, virtual]
 

returns the assoziated osg primitive if there or 0

Implements Primitive.

Definition at line 199 of file primitive.h.

void init const OdeHandle odeHandle,
double  mass,
const OsgHandle osgHandle,
char  mode = Body|Geom|Draw
[virtual]
 

registers primitive in ODE and OSG.

Parameters:
osgHandle scruct with ODE variables inside (to specify space, world...)
mass Mass of the object in ODE (if withBody = true)
osgHandle scruct with OSG variables inside (scene node, color ...)
mode is a conjuction of Modes.

Implements Primitive.

Definition at line 301 of file primitive.cpp.

void update  )  [virtual]
 

Updates the OSG nodes with ODE coordinates.

This function must be overloaded (usually calls setMatrix of OsgPrimitives)

Implements Primitive.

Definition at line 322 of file primitive.cpp.


Member Data Documentation

OSGCapsule* osgcapsule [protected]
 

Definition at line 202 of file primitive.h.


Generated on Tue Apr 4 19:05:27 2006 for Robotsystem from Robot Group Leipzig by  doxygen 1.4.5