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

#include <NiTE.h>

List of all members.

Public Member Functions

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

Friends

class HandTracker

Detailed Description

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.

See also:
HandTracker 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::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.

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

Friends And Related Function Documentation

friend class HandTracker [friend]

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