#include <primitive.h>
Inherits Primitive.
Inheritance diagram for Mesh:


Public Member Functions | |
| Mesh (const std::string &filename, float scale) | |
| 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 OSGPrimitive * | getOSGPrimitive () | 
| returns the assoziated osg primitive if there or 0   | |
| virtual float | getRadius () | 
| virtual void | setMass (double mass) | 
| sets the mass of the body (uniform)   | |
Protected Attributes | |
| OSGMesh * | osgmesh | 
| const std::string | filename | 
| float | scale | 
| BoundingShape * | boundshape | 
| Mesh | ( | const std::string & | filename, | |
| float | scale | |||
| ) | 
| ~Mesh | ( | ) |  [virtual] | 
        
| OSGPrimitive * getOSGPrimitive | ( | ) |  [virtual] | 
        
| 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.
| 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 setMass | ( | double | mass | ) |  [virtual] | 
        
| void update | ( | ) |  [virtual] | 
        
Updates the OSG nodes with ODE coordinates.
This function must be overloaded (usually calls setMatrix of OsgPrimitives)
Implements Primitive.
BoundingShape* boundshape [protected]           | 
        
const std::string filename [protected]           | 
        
float scale [protected]           | 
        
 1.4.7