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

Stream of SR_handEvent objects. More...

#include <handeventstream.h>

Public Types

using Frame = SR_handEvent
 

Public Member Functions

 HandEventStream (HandTracker *sense, HandEventListener *listener)
 Construct a new HandEventStream. 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 handEvent)
 Send new frame to listener. More...
 

Detailed Description

Stream of SR_handEvent objects.

Connects a HandTracker Sense to a HandEventListener object.

Member Typedef Documentation

◆ Frame

Constructor & Destructor Documentation

◆ HandEventStream()

SR::HandEventStream::HandEventStream ( HandTracker sense,
HandEventListener listener 
)

Construct a new HandEventStream.

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

Called by the HandTracker when requested for an HandEventListener through an openHandEventStream call.

Member Function Documentation

◆ close()

void SR::HandEventStream::close ( )

Close the stream. (Called by sense)

◆ stopListening()

void SR::HandEventStream::stopListening ( )

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

◆ update()

void SR::HandEventStream::update ( Frame  handEvent)

Send new frame to listener.

Parameters
handEventrepresents a single update

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