NiTE 2.0
Public Member Functions | Friends
nite::UserTracker::NewFrameListener Class Reference

#include <NiTE.h>

List of all members.

Public Member Functions

 NewFrameListener ()
virtual void onNewFrame (UserTracker &)=0

Friends

class UserTracker

Detailed Description

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.

See also:
UserTracker for the source of this listener's events.

Constructor & Destructor Documentation

Default Constructor. Creates a new object of this type and configures it to correctly receive events.


Member Function Documentation

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.

Parameters:
[in]Areference to the UserTracker that triggered the event is provided.

Friends And Related Function Documentation

friend class UserTracker [friend]

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