Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
|
Sense class which provides hand tracking functionality to the SR system. More...
#include <handtracker.h>
Public Member Functions | |
virtual std::shared_ptr< HandPoseStream > | openHandPoseStream (HandPoseListener *listener)=0 |
Creates a HandPoseStream for listener to be connected to. More... | |
virtual std::shared_ptr< HandPoseStream > | openHandPoseStream (HandPoseListener *listener, uint64_t handIdentifier)=0 |
Creates a HandPoseStream specific for handIdentifier for listener to be connected to. More... | |
virtual std::shared_ptr< HandEventStream > | openHandEventStream (HandEventListener *listener)=0 |
Creates a HandEventStream for listener to be connected to. More... | |
virtual void | streamClosed (HandPoseStream *stream)=0 |
Closes a specific HandPoseStream. More... | |
virtual void | streamClosed (HandEventStream *stream)=0 |
Closes a specific HandEventStream. More... | |
Public Member Functions inherited from SR::Sense | |
void | setCalibration (Transformation calibration) |
Sets a Transformation object to represent the sense's calibration with respect to the display. More... | |
Transformation | getCalibration () |
Gets callibration. More... | |
virtual | ~Sense () |
Ensures the proper destruction of the sense implementation. More... | |
virtual std::string | getName ()=0 |
Return the name of the sense. More... | |
virtual std::string | getDescription ()=0 |
Return a description of the sense. More... | |
virtual void | start ()=0 |
Start continuous updates, default behaviour is defined in the updater() function. More... | |
virtual void | stop ()=0 |
Stop continuous updates. More... | |
Static Public Member Functions | |
static HandTracker * | create (SRContext &context) |
Creates a functional HandTracker instance. More... | |
static std::shared_ptr< HandPoseStream > | openDynamicHandPoseStream (SR_handEvent createEvent, HandPoseListener *listener) |
Creates a HandPoseStream specific for createEvent for listener to be connected to. More... | |
static void | closeDynamicHandPoseStream (SR_handEvent destroyEvent, HandPoseListener *listener) |
Closes a specific HandPoseStream referenced by destroyEvent . More... | |
Additional Inherited Members | |
Protected Attributes inherited from SR::Sense | |
Transformation | calibration |
|
inlinestatic |
Closes a specific HandPoseStream referenced by destroyEvent
.
destroyEvent | received by an instance of HandEventListener signaling that no more data about a specific hand will be available |
listener | instance of HandPoseListener that was receiving data after a call to openDynamicHandPoseStream |
|
static |
Creates a functional HandTracker instance.
The HandTracker class is abstract and requires a device specific implementation to be used in applications. This function constructs a HandTracker suitable for use in your application on the current device.
|
inlinestatic |
Creates a HandPoseStream specific for createEvent
for listener
to be connected to.
createEvent | received by an instance of HandEventListener used to open a new stream |
listener | instance of HandPoseListener that should be receiving the data from the new stream |
|
pure virtual |
Creates a HandEventStream for listener
to be connected to.
listener | will receive hand events from now on |
When a new handPoseStream is registered, existing hands will raise an CreateHand
event.
|
pure virtual |
Creates a HandPoseStream for listener to be connected to.
listener | will receive handpose updates from now on |
|
pure virtual |
Creates a HandPoseStream specific for handIdentifier
for listener
to be connected to.
listener | will receive handpose updates about hand handIdentifier from now on |
handIdentifier | refers to the a specific instance of a hand that was detected by the system |
|
pure virtual |
Closes a specific HandEventStream.
stream | will no longer supply hand events |
|
pure virtual |
Closes a specific HandPoseStream.
stream | will no longer supply handpose updates |