holding a temporary primitive More...
#include <tmpprimitive.h>
Inherits lpzrobots::TmpObject.
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 |
holding a temporary primitive
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
void deleteObject | ( | ) | [virtual] |
deletes the object
Implements TmpObject.
Implements TmpObject.
void update | ( | ) | [virtual] |
update graphics here
Implements TmpObject.