Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
gesturestream.h
Go to the documentation of this file.
1
10#pragma once
11
12#include "sr/sense/core/buffer.h"
13#include "gesture.h"
14
15#include "gesturelistener.h"
16
17#ifdef WIN32
18# ifdef COMPILING_DLL_SimulatedRealityHandTrackers
19# define DIMENCOSR_API __declspec(dllexport)
20# else
21# define DIMENCOSR_API __declspec(dllimport)
22# endif
23#else
24# define DIMENCOSR_API
25#endif
26
27namespace SR {
28
34class GestureBuffer : public Buffer<SR_gesture> {
35 SR_gestureType type;
36
37public:
39
41};
42
43class GestureAnalyser; //forward declaration
44
53 class Impl;
54 Impl* pimpl;
55public:
59 void close();
60 void update(SR_gesture gesture);
61};
62
63}
64
65#undef DIMENCOSR_API
Sense class which provides gesture analysis functionality to the SR system.
Definition: gestureanalyser.h:40
Class of Buffer<SR_gesture> managing instances of SR_gesture in real-time.
Definition: gesturestream.h:34
GestureBuffer(SR_gestureType type)
SR_gestureType getGestureType()
Interface for listening to SR_gesture updates.
Definition: gesturelistener.h:22
Stream of SR_gesture objects.
Definition: gesturestream.h:52
GestureStream(GestureAnalyser *sense, GestureListener *listener)
void update(SR_gesture gesture)
SR_gestureType
Definition: gesture.h:15
#define DIMENCOSR_API
Definition: gesturestream.h:24
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
C-compatible struct notifying the listener that a gesture has been performed by the user.
Definition: gesture.h:30