Represents the interface to the capabilities of the Nuitrack Hand Tracker module.
More...
#include <HandTracker.h>
Inherits HeaderOnlyAPI_Module.
Represents the interface to the capabilities of the Nuitrack Hand Tracker module.
To enable the module, you must create an instance of this class. To create the instance, use a special named constructor HandTracker::create. This instance is called HandTracker module object. To receive the hand tracking data, add an HandTracker::OnUpdate callback to the module object with HandTracker::connectOnUpdate method.
tdv::nuitrack::HandTracker::HandTracker |
( |
NuitrackModule * |
pimpl | ) |
|
|
inline |
- Warning
- For internal use only.
uint64_t tdv::nuitrack::HandTracker::connectOnUpdate |
( |
const OnUpdate & |
callback | ) |
|
|
inline |
Add a callback for the hand data update request.
- Parameters
-
[in] | callback | Callback to be invoked after the hand data update request. |
- Returns
- Callback ID. You can use it to remove the callback.
- See Also
- disconnectOnUpdate
void tdv::nuitrack::HandTracker::destroyHandTracker |
( |
| ) |
|
|
inlineprotected |
- Warning
- For internal use only.
void tdv::nuitrack::HandTracker::disconnectOnUpdate |
( |
uint64_t |
handler | ) |
|
|
inline |
Remove a callback of the hand data update request.
- Parameters
-
[in] | handler | ID of the previously added callback. |
- See Also
- connectOnUpdate
virtual uint64_t tdv::nuitrack::HandTracker::getTimestamp |
( |
| ) |
|
|
inlinevirtual |
Returns the last processed data timestamp in microseconds.
Returns timestamp corresponding to the last hand tracking data estimation.
- Note
- The exact meaning of this value depends on the depth provider.
static void tdv::nuitrack::HandTracker::onUpdateCallback |
( |
HandTrackerDataInner * |
data, |
|
|
HandTracker * |
tracker |
|
) |
| |
|
inlinestaticprotected |
- Warning
- For internal use only.
CallbackStruct<HandTrackerData::Ptr>* tdv::nuitrack::HandTracker::_callbackStruct |
|
protected |
- Warning
- For internal use only.
HandTrackerCallbackWrapper tdv::nuitrack::HandTracker::_callbackWrapper |
|
protected |
- Warning
- For internal use only.
NuitrackModule* tdv::nuitrack::HandTracker::_pimpl |
|
protected |
- Warning
- For internal use only.