Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TmpDisplayItem Class Reference

holding a temporary graphical item More...

#include <tmpprimitive.h>

Inheritance diagram for TmpDisplayItem:
Collaboration diagram for TmpDisplayItem:

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. More...
 
 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 More...
 
virtual void init (const OdeHandle &odeHandle, const OsgHandle &osgHandle)
 
virtual void deleteObject ()
 deletes the object More...
 
virtual void update ()
 update graphics here More...
 
- Public Member Functions inherited from TmpObject
 TmpObject ()
 
virtual ~TmpObject ()
 
void setExpireTime (double time)
 
bool expired (double time)
 

Additional Inherited Members

- Protected Attributes inherited from TmpObject
double time
 

Detailed Description

holding a temporary graphical item

Constructor & Destructor Documentation

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

Member Function Documentation

void deleteObject ( )
virtual

deletes the object

Implements TmpObject.

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

Implements TmpObject.

virtual void update ( )
inlinevirtual

update graphics here

Implements TmpObject.


The documentation for this class was generated from the following files: