Represents the interface to the capabilities of the Nuitrack Color Sensor module.
More...
#include <ColorSensor.h>
Inherits HeaderOnlyAPI_Module.
Represents the interface to the capabilities of the Nuitrack Color Sensor module.
To enable the module, you must create an instance of this class. To create the instance, use a special named constructor ColorSensor::create. This instance is called ColorSensor module object. To receive the new color frames, add an ColorSensor::OnNewFrame callback to the module object with ColorSensor::connectOnNewFrame method.
tdv::nuitrack::ColorSensor::ColorSensor |
( |
NuitrackModule * |
pimpl | ) |
|
|
inline |
- Warning
- For internal use only.
uint64_t tdv::nuitrack::ColorSensor::connectOnNewFrame |
( |
const OnNewFrame & |
callback | ) |
|
|
inline |
Add a callback for the new color frame request.
- Parameters
-
[in] | callback | Callback to be invoked at the new color frame request. |
- Returns
- Callback ID. You can use it to remove the callback.
- See Also
- disconnectOnNewFrame
void tdv::nuitrack::ColorSensor::disconnectOnNewFrame |
( |
uint64_t |
handler | ) |
|
|
inline |
Remove a callback of the new color frame request.
- Parameters
-
[in] | handler | ID of the previously added callback. |
- See Also
- connectOnNewFrame
virtual uint64_t tdv::nuitrack::ColorSensor::getTimestamp |
( |
| ) |
|
|
inlinevirtual |
Returns the last processed data timestamp in microseconds.
Returns timestamp corresponding to the last available color frame.
- Note
- The exact meaning of this value depends on the depth provider.