Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

DepthSource Class Reference

Inheritance diagram for DepthSource:

Detailed Description

Definition at line 69 of file KinectDriver.h.

List of all members.

Public Member Functions

 DepthSource (KinectDriver *_driver)
 DepthSource (const DepthSource &)
 ~DepthSource ()
DepthSourceoperator= (const DepthSource &)
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 depthUpdateReceived (DepthGenerator &depth, DepthSource *source)

Private Attributes

KinectDriverdriver
DepthMetaData metadata
XnCallbackHandle cbHandle
unsigned int frameNumber

Static Private Attributes

static const string instanceName

Constructor & Destructor Documentation

DepthSource ( KinectDriver _driver  ) 

Definition at line 71 of file KinectDriver.h.

DepthSource ( const DepthSource  ) 
~DepthSource (  ) 

Definition at line 73 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.

static void depthUpdateReceived ( DepthGenerator &  depth,
DepthSource source 
) [static, private]
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.

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 80 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 79 of file KinectDriver.h.

DepthSource& operator= ( const DepthSource  ) 

Member Data Documentation

XnCallbackHandle cbHandle [private]

Definition at line 88 of file KinectDriver.h.

KinectDriver* driver [private]

Definition at line 86 of file KinectDriver.h.

unsigned int frameNumber [private]

Definition at line 89 of file KinectDriver.h.

const string instanceName [static, private]

Definition at line 85 of file KinectDriver.h.

Referenced by DepthSource::nextName().

DepthMetaData metadata [private]

Definition at line 87 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