Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
handeventstream.h
Go to the documentation of this file.
1
10#pragma once
11
12#include "handevent.h"
13#include "handposelistener.h"
14
15#ifdef WIN32
16# ifdef COMPILING_DLL_SimulatedRealityHandTrackers
17# define DIMENCOSR_API __declspec(dllexport)
18# else
19# define DIMENCOSR_API __declspec(dllimport)
20# endif
21#else
22# define DIMENCOSR_API
23#endif
24
25namespace SR {
26
27class HandTracker; //forward declaration
28
37 class Impl;
38 Impl* pimpl;
39public:
41
51
56
60 void close();
61
67 void update(Frame handEvent);
68};
69
70}
71
72#undef DIMENCOSR_API
Interface for listening to SR_handEvent updates.
Definition: handposelistener.h:21
Stream of SR_handEvent objects.
Definition: handeventstream.h:36
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:46
#define DIMENCOSR_API
Definition: handeventstream.h:22
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
C-compatible struct notifying the listener that the state of a hand has changed.
Definition: handevent.h:28