holding a temporary graphical item More...
#include <tmpprimitive.h>
Inherits lpzrobots::TmpObject.
Public Member Functions | |
TmpDisplayItem (OSGPrimitive *p, const Pose &pose, const Color &color, OSGPrimitive::Quality quality=OSGPrimitive::Middle) | |
creates a new item from the given primitives and initializes it. | |
TmpDisplayItem (OSGPrimitive *p, const Pose &pose, const std::string &colorname, float alpha=1.0, OSGPrimitive::Quality quality=OSGPrimitive::Middle) | |
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 graphical item
TmpDisplayItem | ( | OSGPrimitive * | p, | |
const Pose & | pose, | |||
const Color & | color, | |||
OSGPrimitive::Quality | quality = OSGPrimitive::Middle | |||
) |
creates a new item from the given primitives and initializes it.
The lifetime is set when adding it to globalData
TmpDisplayItem | ( | OSGPrimitive * | p, | |
const Pose & | pose, | |||
const std::string & | colorname, | |||
float | alpha = 1.0 , |
|||
OSGPrimitive::Quality | quality = OSGPrimitive::Middle | |||
) |
provided for convenience to supply color as name and alpha independently
void deleteObject | ( | ) | [virtual] |
deletes the object
Implements TmpObject.
Implements TmpObject.
virtual void update | ( | ) | [inline, virtual] |
update graphics here
Implements TmpObject.