![]() |
OpenNI 2.0
|
#include <OpenNI.h>
Public Member Functions | |
Listener () | |
virtual void | onNewFrame (VideoStream &) |
Friends | |
class | VideoStream |
The VideoStream::Listener class is provided to allow the implementation of event driven frame reading. To use it, create a class that inherits from it and implement override the onNewFrame() method. Then, register your created class with an active VideoStream using the VideoStream::addListener() function. Once this is done, the event handler function you implemented will be called whenever a new frame becomes available. You may call VideoStream::readFrame() from within the event handler.
openni::VideoStream::Listener::Listener | ( | ) | [inline] |
Default constructor.
virtual void openni::VideoStream::Listener::onNewFrame | ( | VideoStream & | ) | [inline, virtual] |
Derived classes should implement this function to handle new frames.
friend class VideoStream [friend] |