KINECT STATS GENERATOR FOR SPORTS VISUALISATION
1.0
|
this is the process event thread class it needs to be a class so we can use the Qt thread system More...
#include <KinectInterface.h>
Public Member Functions | |
QKinectProcessEvents (freenect_context *_ctx) | |
ctor where we pass in the context of the kinect | |
void | setActive () |
sets the thread active this will loop the run thread with a while(m_active) setting this will end the thread loop | |
void | setInActive () |
sets the thread active must call QThread::start again to make this work if the thread has been de-activated | |
Protected Member Functions | |
void | run () |
the actual thread main loop, this is not callable and the QThread::start method of QThread must be called to activate the loop | |
Private Attributes | |
bool | m_active |
a flag to indicate if the loop is to be active set true in the ctor | |
freenect_context * | m_ctx |
the context of the kinect device, this must be set before the thread is run with QThread::start |
this is the process event thread class it needs to be a class so we can use the Qt thread system
Definition at line 53 of file KinectInterface.h.
QKinectProcessEvents::QKinectProcessEvents | ( | freenect_context * | _ctx | ) | [inline] |
ctor where we pass in the context of the kinect
[in] | _ctx | the context of the current kinect device |
Definition at line 60 of file KinectInterface.h.
References m_ctx.
{m_ctx=_ctx;}
void QKinectProcessEvents::run | ( | ) | [protected] |
the actual thread main loop, this is not callable and the QThread::start method of QThread must be called to activate the loop
Definition at line 48 of file KinectInterface.cpp.
void QKinectProcessEvents::setActive | ( | ) | [inline] |
sets the thread active this will loop the run thread with a while(m_active) setting this will end the thread loop
Definition at line 68 of file KinectInterface.h.
References m_active.
{m_active=true;}
void QKinectProcessEvents::setInActive | ( | ) | [inline] |
sets the thread active must call QThread::start again to make this work if the thread has been de-activated
Definition at line 73 of file KinectInterface.h.
References m_active.
{m_active=false;}
bool QKinectProcessEvents::m_active [private] |
a flag to indicate if the loop is to be active set true in the ctor
Definition at line 86 of file KinectInterface.h.
freenect_context* QKinectProcessEvents::m_ctx [private] |
the context of the kinect device, this must be set before the thread is run with QThread::start
Definition at line 91 of file KinectInterface.h.