Transform Class Reference

Primitive for transforming a geom (primitive without body) in respect to a body (primitive with body). More...

#include <primitive.h>

Inherits Primitive.

Inheritance diagram for Transform:

Inheritance graph
[legend]
Collaboration diagram for Transform:

Collaboration graph
[legend]
List of all members.

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 OSGPrimitivegetOSGPrimitive ()
 returns the assoziated osg primitive if there or 0

Protected Attributes

Primitiveparent
Primitivechild
osg::Matrix pose

Detailed Description

Primitive for transforming a geom (primitive without body) in respect to a body (primitive with body).

Hides complexity of ODE TransformGeoms.


Constructor & Destructor Documentation

Transform ( Primitive parent,
Primitive child,
const osg::Matrix pose 
)

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


Member Function Documentation

OSGPrimitive * getOSGPrimitive (  )  [virtual]

returns the assoziated osg primitive if there or 0

Implements Primitive.

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

mode is not ignored

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

Primitive* child [protected]

Primitive* parent [protected]

osg::Matrix pose [protected]


The documentation for this class was generated from the following files:
Generated on Mon Aug 7 16:55:10 2006 for Robotsystem of the Robot Group Leipzig by  doxygen 1.4.7