BeobotCamera event listener. More...
#include <Beobot/BeobotCamera.H>
Public Member Functions | |
virtual | ~BeobotCameraListener () |
Destructor. | |
virtual void | newFrame (const Image< PixRGB< byte > > &image, const int frame)=0 |
A frame was received. |
BeobotCamera event listener.
The BeoCamListener is called each time a frame is grabbed from the BeobotCamera. This is a virtual base class and users should define their own derived classes that will do something when a frame is received.
Definition at line 53 of file BeobotCamera.H.
BeobotCameraListener::~BeobotCameraListener | ( | ) | [virtual] |
Destructor.
Definition at line 45 of file BeobotCamera.C.
virtual void BeobotCameraListener::newFrame | ( | const Image< PixRGB< byte > > & | image, | |
const int | frame | |||
) | [pure virtual] |
A frame was received.
This is called by our grabbing thread and hence will execute in that thread. When overloading this function, you should be careful to enforce that processing done here will be very quick, or you will slow down and possibly choke the grabbing thread.