Mesh Class Reference

Mesh primitive. More...

#include <primitive.h>

Inherits Primitive.

Inheritance diagram for Mesh:

Inheritance graph
[legend]
Collaboration diagram for Mesh:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Mesh (const std::string &filename, float scale, GlobalData &global)
virtual ~Mesh ()
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
virtual float getRadius ()

Protected Attributes

OSGMeshosgmesh
char drawBoundingMode
const std::string filename
float scale
BoundingShapeboundshape

Detailed Description

Mesh primitive.


Constructor & Destructor Documentation

Mesh const std::string &  filename,
float  scale,
GlobalData global
 

~Mesh  )  [virtual]
 


Member Function Documentation

OSGPrimitive * getOSGPrimitive  )  [virtual]
 

returns the assoziated osg primitive if there or 0

Implements Primitive.

float getRadius  )  [virtual]
 

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.

void update  )  [virtual]
 

Updates the OSG nodes with ODE coordinates.

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

Implements Primitive.


Member Data Documentation

BoundingShape* boundshape [protected]
 

char drawBoundingMode [protected]
 

const std::string filename [protected]
 

OSGMesh* osgmesh [protected]
 

float scale [protected]
 


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