TmpPrimitive Class Reference

holding a temporary primitive More...

#include <tmpprimitive.h>

Inherits lpzrobots::TmpObject.

Collaboration diagram for TmpPrimitive:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TmpPrimitive (Primitive *p, char mode, double mass, const Pose &pose, const Color &color)
 creates a new item from the given primitives and initializes it.
 TmpPrimitive (Primitive *p, char mode, double mass, const Pose &pose, const std::string &colorname, float alpha=1.0)
 provided for convenience to supply color as name and alpha independently
virtual void init (const OdeHandle &odeHandle, const OsgHandle &osgHandle)
virtual void deleteObject ()
 deletes the object
virtual void update ()
 update graphics here

Detailed Description

holding a temporary primitive


Constructor & Destructor Documentation

TmpPrimitive ( Primitive p,
char  mode,
double  mass,
const Pose pose,
const Color color 
)

creates a new item from the given primitives and initializes it.

The lifetime is set when adding it to globalData

TmpPrimitive ( Primitive p,
char  mode,
double  mass,
const Pose pose,
const std::string &  colorname,
float  alpha = 1.0 
)

provided for convenience to supply color as name and alpha independently


Member Function Documentation

void deleteObject (  )  [virtual]

deletes the object

Implements TmpObject.

void init ( const OdeHandle odeHandle,
const OsgHandle osgHandle 
) [virtual]

Implements TmpObject.

void update (  )  [virtual]

update graphics here

Implements TmpObject.


The documentation for this class was generated from the following files:
Generated on Thu Jun 28 14:49:08 2012 for Robot Simulator of the Robotics Group for Self-Organization of Control by  doxygen 1.6.3