NITE 1.5.1 - API Reference

XnVSessionListener.h

Go to the documentation of this file.
00001 /*******************************************************************************
00002 *                                                                              *
00003 *   PrimeSense NITE 1.3                                                        *
00004 *   Copyright (C) 2010 PrimeSense Ltd.                                         *
00005 *                                                                              *
00006 *******************************************************************************/
00007 
00008 
00009 #ifndef _XNV_SESSION_LISTENER_H_
00010 #define _XNV_SESSION_LISTENER_H_
00011 
00012 #include "XnVNiteDefs.h"
00013 
00017 class XNV_NITE_API XnVSessionListener
00018 {
00019 public:
00023     typedef void (XN_CALLBACK_TYPE *OnFocusStartDetectedCB)(const XnChar* strFocus, const XnPoint3D& ptPosition, XnFloat fProgress, void* UserCxt);
00027     typedef void (XN_CALLBACK_TYPE *OnSessionStartCB)(const XnPoint3D& ptPosition, void* UserCxt);
00031     typedef void (XN_CALLBACK_TYPE *OnSessionEndCB)(void* UserCxt);
00032 
00033     virtual void OnSessionStart(const XnPoint3D& ptPosition) = 0;
00034     virtual void OnSessionEnd() = 0;
00035     virtual void OnFocusStartDetected(const XnChar* strFocus, const XnPoint3D& ptPosition, XnFloat fProgress) = 0;
00036 };
00037 
00038 
00039 #endif // _XNV_SESSION_LISTENER_H_