Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
handposestream.h
Go to the documentation of this file.
1
10#pragma once
11
12#include "handpose.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 handPose);
68};
69
70}
71
72#undef DIMENCOSR_API
Interface for listening to SR_handPose updates.
Definition: handposelistener.h:39
Stream of SR_handPose objects.
Definition: handposestream.h:36
void update(Frame handPose)
Send new frame to listener.
void stopListening()
Stop listening and notify sense to stop sending new frames. (Called by listener)
HandPoseStream(HandTracker *sense, HandPoseListener *listener)
Construct a new HandPoseStream.
void close()
Close the stream. (Called by sense)
Sense class which provides hand tracking functionality to the SR system.
Definition: handtracker.h:46
#define DIMENCOSR_API
Definition: handposestream.h:22
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
C-compatible struct containing the pose of a hand.
Definition: handpose.h:124