direcs  2012-09-30
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
QKinectProcessEvents Class Reference

this is the process event thread class it needs to be a class so we can use the Qt thread system More...

#include <QKinect.h>

List of all members.

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

Detailed Description

this is the process event thread class it needs to be a class so we can use the Qt thread system

@author Jonathan Macey, Markus Knapp
Version:
1.0
Date:
20/12/10 Inital commit

Definition at line 50 of file QKinect.h.


Constructor & Destructor Documentation

QKinectProcessEvents::QKinectProcessEvents ( freenect_context *  _ctx)
inline

ctor where we pass in the context of the kinect

Parameters:
[in]_ctxthe context of the current kinect device

Definition at line 57 of file QKinect.h.


Member Function Documentation

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 42 of file QKinect.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 63 of file QKinect.h.

Here is the caller graph for this function:

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 69 of file QKinect.h.

Here is the caller graph for this function:


Member Data Documentation

bool QKinectProcessEvents::m_active
private

a flag to indicate if the loop is to be active set true in the ctor

Definition at line 85 of file QKinect.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 90 of file QKinect.h.


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