NITE 1.5.1 - API Reference
|
#include <XnVWaveDetector.h>
Public Types | |
typedef void(XN_CALLBACK_TYPE * | WaveCB )(void *pUserCxt) |
Public Member Functions | |
XnVWaveDetector (const XnChar *strName="XnVWaveDetector") | |
~XnVWaveDetector () | |
void | OnPrimaryPointCreate (const XnVHandPointContext *pContext, const XnPoint3D &ptFocus) |
void | OnPrimaryPointUpdate (const XnVHandPointContext *pContext) |
void | OnPrimaryPointReplace (XnUInt32 nOldId, const XnVHandPointContext *pContext) |
void | OnPrimaryPointDestroy (XnUInt32 nID) |
XnCallbackHandle | RegisterWave (void *cxt, WaveCB pCB) |
void | UnregisterWave (XnCallbackHandle handle) |
void | Reset () |
void | SetFlipCount (XnInt32 nFlipCount) |
void | SetMinLength (XnInt32 nMinLength) |
void | SetMaxDeviation (XnInt32 nMaxDeviation) |
XnInt32 | GetFlipCount () const |
XnInt32 | GetMinLength () const |
XnInt32 | GetMaxDeviation () const |
Protected Attributes | |
XnVWaveContext * | m_pContext |
XnVEvent * | m_pWaveCBs |
Definition at line 18 of file XnVWaveDetector.h.
typedef void(XN_CALLBACK_TYPE * XnVWaveDetector::WaveCB)(void *pUserCxt) |
Type for the wave event callbacks
Definition at line 25 of file XnVWaveDetector.h.
XnVWaveDetector::XnVWaveDetector | ( | const XnChar * | strName = "XnVWaveDetector" | ) |
Create the wave control
[in] | strName | Name of the control, for log purposes. |
XnInt32 XnVWaveDetector::GetFlipCount | ( | ) | const |
XnInt32 XnVWaveDetector::GetMaxDeviation | ( | ) | const |
XnInt32 XnVWaveDetector::GetMinLength | ( | ) | const |
void XnVWaveDetector::OnPrimaryPointCreate | ( | const XnVHandPointContext * | pContext, |
const XnPoint3D & | ptFocus | ||
) | [virtual] |
Called when the primary point is created.
[in] | pContext | The hand context of the newly created primary point |
[in] | ptFocus | The point in which the session has started. |
Reimplemented from XnVPointControl.
void XnVWaveDetector::OnPrimaryPointDestroy | ( | XnUInt32 | nID | ) | [virtual] |
Called when the primary point is destroyed
[in] | nID | The ID of the hand that was the primary point |
Reimplemented from XnVPointControl.
void XnVWaveDetector::OnPrimaryPointReplace | ( | XnUInt32 | nOldId, |
const XnVHandPointContext * | pContext | ||
) | [virtual] |
Called when the primary point is replaced by another. This will reinitialize the algorithm for the new hand
[in] | nOldId | The ID of the old primary point |
[in] | pContext | The hand context of the new primary point |
Reimplemented from XnVPointControl.
void XnVWaveDetector::OnPrimaryPointUpdate | ( | const XnVHandPointContext * | pContext | ) | [virtual] |
Called when the primary point is updated. This will cause the algorithm to look for waves.
[in] | pContext | The hand context of the updated primary point |
Reimplemented from XnVPointControl.
XnCallbackHandle XnVWaveDetector::RegisterWave | ( | void * | cxt, |
WaveCB | pCB | ||
) |
Register for the wave event
[in] | cxt | User's context |
[in] | pCB | The Callback to call when the event is invoked. |
void XnVWaveDetector::Reset | ( | ) |
Reset the algorithm.
void XnVWaveDetector::SetFlipCount | ( | XnInt32 | nFlipCount | ) |
void XnVWaveDetector::SetMaxDeviation | ( | XnInt32 | nMaxDeviation | ) |
void XnVWaveDetector::SetMinLength | ( | XnInt32 | nMinLength | ) |
void XnVWaveDetector::UnregisterWave | ( | XnCallbackHandle | handle | ) |
Unregister from the wave event
[in] | handle | The handle provided on registration. |
XnVWaveContext* XnVWaveDetector::m_pContext [protected] |
Definition at line 93 of file XnVWaveDetector.h.
XnVEvent* XnVWaveDetector::m_pWaveCBs [protected] |
Definition at line 94 of file XnVWaveDetector.h.