LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
gesturestream.h
Go to the documentation of this file.
1
5#pragma once
6
7#include "sr/sense/core/buffer.h"
8#include "gesture.h"
9
10#include "gesturelistener.h"
11
12#ifdef WIN32
13# ifdef COMPILING_DLL_SimulatedRealityHandTrackers
14# define DIMENCOSR_API __declspec(dllexport)
15# else
16# define DIMENCOSR_API __declspec(dllimport)
17# endif
18#else
19# define DIMENCOSR_API
20#endif
21
22namespace SR {
23
29class GestureBuffer : public Buffer<SR_gesture> {
30 SR_gestureType type;
31
32public:
34
36};
37
38class GestureAnalyser; //forward declaration
39
48 class Impl;
49 Impl* pimpl;
50public:
54 void close();
55 void update(SR_gesture gesture);
56};
57
58}
59
60#undef DIMENCOSR_API
Sense class which provides gesture analysis functionality to the SR system.
Definition: gestureanalyser.h:35
Class of Buffer<SR_gesture> managing instances of SR_gesture in real-time.
Definition: gesturestream.h:29
GestureBuffer(SR_gestureType type)
SR_gestureType getGestureType()
Interface for listening to SR_gesture updates.
Definition: gesturelistener.h:17
Stream of SR_gesture objects.
Definition: gesturestream.h:47
GestureStream(GestureAnalyser *sense, GestureListener *listener)
void update(SR_gesture gesture)
SR_gestureType
Definition: gesture.h:10
#define DIMENCOSR_API
Definition: gesturestream.h:19
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:20
C-compatible struct notifying the listener that a gesture has been performed by the user.
Definition: gesture.h:25