![]() |
NiTE 2.0
|
#include <NiTE.h>
Public Member Functions | |
NewFrameListener () | |
virtual void | onNewFrame (UserTracker &)=0 |
Friends | |
class | UserTracker |
This is a listener class that is used to react to events generated by the UserTracker 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 UserTracker::addNewFrameListener() function to add the listener to the UserTracker. When that UserTracker 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::UserTracker::NewFrameListener::onNewFrame | ( | UserTracker & | ) | [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 UserTracker that triggered the event is provided. |
friend class UserTracker [friend] |