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

Grabber implementation for OpenNI based camera access. More...

#include <OpenNIGrabber.h>

Inheritance diagram for icl::io::OpenNIGrabber:
icl::io::Grabber icl::utils::Uncopyable icl::utils::Configurable

List of all members.

Public Member Functions

 OpenNIGrabber (std::string args)
 The constructor.
 ~OpenNIGrabber ()
 Destructor.
virtual const core::ImgBaseacquireImage ()
 grab function grabs an image (destination image is adapted on demand)
virtual void * getHandle ()

Private Member Functions

void grabNextImage ()
 makes the MapGenerator grab a new image. called repeatedly in thread.
void setGeneratorTo (icl_openni::OpenNIMapGenerator::Generators desired)
void processPropertyChange (const utils::Configurable::Property &prop)
 callback for changed configurable properties
std::string getName ()
 Returns the string representation of the currently used device.

Private Attributes

utils::Mutex m_Mutex
 Mutex used for concurrency issues.
std::string m_Id
 a grabber id
icl_openni::OpenNIMapGeneratorm_Generator
 pointer to the currently used image generator
icl_openni::ReadWriteBuffer
< core::ImgBase > * 
m_Buffer
 internally used ReadWriteBuffer
bool m_OmitDoubleFrames
 whether double frames should be omited

Friends

class OpenNIGrabberThread

Detailed Description

Grabber implementation for OpenNI based camera access.


Constructor & Destructor Documentation

The constructor.

Parameters:
argsNodeInfo of the device to use.

Destructor.


Member Function Documentation

grab function grabs an image (destination image is adapted on demand)

grab function calls the Grabber-specific acquireImage-method and applies distortion if necessary

If dst is not NULL, it is exploited and filled with image data

Reimplemented from icl::io::Grabber.

virtual void* icl::io::OpenNIGrabber::getHandle ( ) [virtual]

returns the underlying handle of the grabber. In this case the corresponding MapGenerator.

std::string icl::io::OpenNIGrabber::getName ( ) [private]

Returns the string representation of the currently used device.

makes the MapGenerator grab a new image. called repeatedly in thread.

callback for changed configurable properties

Reimplemented from icl::io::Grabber.

switches the current generator to desired. this function works but after changing to another Generator the camcfg-properties will not be refreshed.


Friends And Related Function Documentation

friend class OpenNIGrabberThread [friend]

Member Data Documentation

internally used ReadWriteBuffer

pointer to the currently used image generator

std::string icl::io::OpenNIGrabber::m_Id [private]

a grabber id

Mutex used for concurrency issues.

whether double frames should be omited


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