![]() |
NiTE 2.0
|
#include <NiTE.h>
Public Member Functions | |
NewFrameListener () | |
virtual void | onNewFrame (HandTracker &)=0 |
Friends | |
class | HandTracker |
This is a listener class that is used to react to events generated by the HandTracker class.
To use this class, you must derive a class from it that implements the onNewFrame() function. This is the function that will be called when an event is generated.
Create a new instance of your derived class. Then, use the HandTracker::addNewFrameListener() function to add the listener to the HandTracker. When that HandTracker generates an onNewFrame event, \ the specified callback function will be called.
The onNewFrame event is currently the only event type that this listener is designed to work with.
Default Constructor. Creates a new object of this type and configures it to correctly receive events.
virtual void nite::HandTracker::NewFrameListener::onNewFrame | ( | HandTracker & | ) | [pure virtual] |
This is the callback function for the event. It should be implemented in a class derived from NewFrameListener. This function will automatically be called when the OnNewFrame event is triggered.
[in] | A | reference to the HandTracker that triggered the event is provided. |
friend class HandTracker [friend] |