Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
Public Types | Public Member Functions | List of all members
SR::HandPoseStream Class Reference

Stream of SR_handPose objects. More...

#include <handposestream.h>

Public Types

using Frame = SR_handPose
 

Public Member Functions

 HandPoseStream (HandTracker *sense, HandPoseListener *listener)
 Construct a new HandPoseStream. More...
 
void stopListening ()
 Stop listening and notify sense to stop sending new frames. (Called by listener) More...
 
void close ()
 Close the stream. (Called by sense) More...
 
void update (Frame handPose)
 Send new frame to listener. More...
 

Detailed Description

Stream of SR_handPose objects.

Connects a HandTracker Sense to a HandPoseListener object.

Member Typedef Documentation

◆ Frame

Constructor & Destructor Documentation

◆ HandPoseStream()

SR::HandPoseStream::HandPoseStream ( HandTracker sense,
HandPoseListener listener 
)

Construct a new HandPoseStream.

Parameters
senserefers to the HandTracker providing updates
listenerrefers to the HandPoseListener receiving updates

Called by the HandTracker when requested for an HandPoseListener through an openHandPoseStream call.

Member Function Documentation

◆ close()

void SR::HandPoseStream::close ( )

Close the stream. (Called by sense)

◆ stopListening()

void SR::HandPoseStream::stopListening ( )

Stop listening and notify sense to stop sending new frames. (Called by listener)

◆ update()

void SR::HandPoseStream::update ( Frame  handPose)

Send new frame to listener.

Parameters
handPoserepresents a single update

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