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


Public Member Functions | |
| Transform (Primitive *parent, Primitive *child, const osg::Matrix &pose) | |
| virtual void | init (const OdeHandle &odeHandle, double mass, const OsgHandle &osgHandle, char mode=Body|Geom|Draw) |
| mode is not ignored | |
| virtual void | update () |
| Updates the OSG nodes with ODE coordinates. | |
| virtual OSGPrimitive * | getOSGPrimitive () |
| returns the assoziated osg primitive if there or 0 | |
Protected Attributes | |
| Primitive * | parent |
| Primitive * | child |
| osg::Matrix | pose |
Hides complexity of ODE TransformGeoms.
| Transform | ( | Primitive * | parent, | |
| Primitive * | child, | |||
| const osg::Matrix & | pose | |||
| ) |
| 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 |
| OSGPrimitive * getOSGPrimitive | ( | ) | [virtual] |
| void update | ( | ) | [virtual] |
Updates the OSG nodes with ODE coordinates.
This function must be overloaded (usually calls setMatrix of OsgPrimitives)
Implements Primitive.
osg::Matrix pose [protected] |
1.4.7