Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

RGBSource Class Reference

Inheritance diagram for RGBSource:

Detailed Description

Definition at line 44 of file KinectDriver.h.

List of all members.

Public Member Functions

 RGBSource (KinectDriver *_driver)
 RGBSource (const RGBSource &)
 ~RGBSource ()
RGBSourceoperator= (const RGBSource &)
virtual bool advance ()
 Called when the simulator is stepping while paused or advancing a frozen data source, return true if successful, or false if no more data is available.
virtual unsigned int nextTimestamp ()
 Returns the simulator time of the next data segment.
virtual const string & nextName ()
 Returns a descriptive name of the next data segment for user feedback (e.g. a filename for logged data).
virtual void doFreeze ()
 user hook for when frozen is set to true; advance() will be called by simulator at user discretion.
virtual void doUnfreeze ()
 user hook for when frozen is set to false; if enteringRealtime() has been called then you should resume sending data.

Static Private Member Functions

static void imageUpdateReceived (ImageGenerator &image, RGBSource *source)

Private Attributes

KinectDriverdriver
ImageMetaData metadata
XnCallbackHandle cbHandle
unsigned int frameNumber

Static Private Attributes

static const string instanceName

Constructor & Destructor Documentation

RGBSource ( KinectDriver _driver  ) 

Definition at line 46 of file KinectDriver.h.

RGBSource ( const RGBSource  ) 
~RGBSource (  ) 

Definition at line 48 of file KinectDriver.h.


Member Function Documentation

virtual bool advance (  )  [virtual]

Called when the simulator is stepping while paused or advancing a frozen data source, return true if successful, or false if no more data is available.

Implements DataSource.

virtual void doFreeze (  )  [virtual]

user hook for when frozen is set to true; advance() will be called by simulator at user discretion.

Reimplemented from DataSource.

virtual void doUnfreeze (  )  [virtual]

user hook for when frozen is set to false; if enteringRealtime() has been called then you should resume sending data.

Reimplemented from DataSource.

static void imageUpdateReceived ( ImageGenerator &  image,
RGBSource source 
) [static, private]
virtual const string& nextName (  )  [virtual]

Returns a descriptive name of the next data segment for user feedback (e.g. a filename for logged data).

Just use your class name if you don't have a useful name for individual samples.

Implements DataSource.

Definition at line 55 of file KinectDriver.h.

virtual unsigned int nextTimestamp (  )  [virtual]

Returns the simulator time of the next data segment.

Should be in the future if nothing new since last data segment, otherwise should be the timestamp of the most recent data segment (older segments are skipped), return -1U if there is no more data

Implements DataSource.

Definition at line 54 of file KinectDriver.h.

RGBSource& operator= ( const RGBSource  ) 

Member Data Documentation

XnCallbackHandle cbHandle [private]

Definition at line 63 of file KinectDriver.h.

KinectDriver* driver [private]

Definition at line 61 of file KinectDriver.h.

unsigned int frameNumber [private]

Definition at line 64 of file KinectDriver.h.

const string instanceName [static, private]

Definition at line 60 of file KinectDriver.h.

Referenced by RGBSource::nextName().

ImageMetaData metadata [private]

Definition at line 62 of file KinectDriver.h.


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

Tekkotsu Hardware Abstraction Layer 5.1CVS
Generated Mon May 9 05:01:41 2016 by Doxygen 1.6.3