DummyPrimitive Class Reference

#include <primitive.h>

Inheritance diagram for DummyPrimitive:

Inheritance graph
[legend]
Collaboration diagram for DummyPrimitive:

Collaboration graph
[legend]
List of all members.

Detailed Description

Dummy Primitive which returns 0 for geom and body.

Only useful for representing the static world in terms of primitives.

Definition at line 237 of file primitive.h.

Public Member Functions

 DummyPrimitive ()
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


Constructor & Destructor Documentation

DummyPrimitive  )  [inline]
 

Parameters:
parent primitive should have a body and should be initialised
child is transformed by pose in respect to parent. This Primitive must NOT have a body

Definition at line 244 of file primitive.h.


Member Function Documentation

virtual OSGPrimitive* getOSGPrimitive  )  [inline, virtual]
 

returns the assoziated osg primitive if there or 0

Implements Primitive.

Definition at line 252 of file primitive.h.

virtual void init const OdeHandle odeHandle,
double  mass,
const OsgHandle osgHandle,
char  mode = Body|Geom|Draw
[inline, 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 248 of file primitive.h.

virtual void update  )  [inline, virtual]
 

Updates the OSG nodes with ODE coordinates.

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

Implements Primitive.

Definition at line 251 of file primitive.h.


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