Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
icl::io::OpenNIGrabberThread Class Reference

Internally spawned thread class for continuous grabbing. Only one instance needed. More...

#include <OpenNIGrabber.h>

Inheritance diagram for icl::io::OpenNIGrabberThread:
icl::utils::Thread icl::utils::ShallowCopyable< ThreadImpl, ThreadImplDelOp >

List of all members.

Public Member Functions

 OpenNIGrabberThread ()
 Constructor set up GrabberThread.
 ~OpenNIGrabberThread ()
 Destructor stops thread and releases all resources.
void addGrabber (OpenNIGrabber *grabber)
 adds a grabber to be updated every frame.
void removeGrabber (OpenNIGrabber *grabber)
 removes a grabber so it no longer will be updated.

Private Member Functions

void run ()
 constantly calls update on OpenNI context and updates image buffers. While grabbers are registered.

Private Attributes

std::set< OpenNIGrabber * > m_Grabber
 internally used set of grabber pointers

Detailed Description

Internally spawned thread class for continuous grabbing. Only one instance needed.


Constructor & Destructor Documentation

Constructor set up GrabberThread.

Destructor stops thread and releases all resources.


Member Function Documentation

adds a grabber to be updated every frame.

The thread should be stopped beforehand and restarted afterwards.

removes a grabber so it no longer will be updated.

The thread should be stopped beforehand and restarted afterwards.

void icl::io::OpenNIGrabberThread::run ( ) [private, virtual]

constantly calls update on OpenNI context and updates image buffers. While grabbers are registered.

Implements icl::utils::Thread.


Member Data Documentation

internally used set of grabber pointers


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines