LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
handeventstream.h
Go to the documentation of this file.
1
5#pragma once
6
7#include "handevent.h"
8#include "handposelistener.h"
9
10#ifdef WIN32
11# ifdef COMPILING_DLL_SimulatedRealityHandTrackers
12# define DIMENCOSR_API __declspec(dllexport)
13# else
14# define DIMENCOSR_API __declspec(dllimport)
15# endif
16#else
17# define DIMENCOSR_API
18#endif
19
20namespace SR {
21
22class HandTracker; //forward declaration
23
32 class Impl;
33 Impl* pimpl;
34public:
36
46
51
55 void close();
56
62 void update(Frame handEvent);
63};
64
65}
66
67#undef DIMENCOSR_API
Interface for listening to SR_handEvent updates.
Definition: handposelistener.h:16
Stream of SR_handEvent objects.
Definition: handeventstream.h:31
void close()
Close the stream. (Called by sense)
void update(Frame handEvent)
Send new frame to listener.
void stopListening()
Stop listening and notify sense to stop sending new frames. (Called by listener)
HandEventStream(HandTracker *sense, HandEventListener *listener)
Construct a new HandEventStream.
Sense class which provides hand tracking functionality to the SR system.
Definition: handtracker.h:41
#define DIMENCOSR_API
Definition: handeventstream.h:17
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:20
C-compatible struct notifying the listener that the state of a hand has changed.
Definition: handevent.h:23