Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
gestureanalyser.h
Go to the documentation of this file.
1
10#pragma once
11
12#include <map>
13
15#include "gesture.h"
16#include "gesturestream.h"
17
18#ifdef WIN32
19# ifdef COMPILING_DLL_SimulatedRealityHandTrackers
20# define DIMENCOSR_API __declspec(dllexport)
21# else
22# define DIMENCOSR_API __declspec(dllimport)
23# endif
24#else
25# define DIMENCOSR_API
26#endif
27
28namespace SR {
29
41
42public:
52 static GestureAnalyser* create(SRContext &context);
53
60 virtual std::shared_ptr<GestureStream> openGestureStream(GestureListener* listener) = 0;
61
67 virtual void streamClosed(GestureStream* stream) = 0;
68};
69
70}
71
72#undef DIMENCOSR_API
Sense class which provides gesture analysis functionality to the SR system.
Definition: gestureanalyser.h:40
virtual std::shared_ptr< GestureStream > openGestureStream(GestureListener *listener)=0
Creates a GestureStream for listener to be connected to.
static GestureAnalyser * create(SRContext &context)
Creates a functional GestureAnalyser instance.
virtual void streamClosed(GestureStream *stream)=0
Closes a specific GestureStream.
Interface for listening to SR_gesture updates.
Definition: gesturelistener.h:22
Stream of SR_gesture objects.
Definition: gesturestream.h:52
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:80
Class of objects dealing with Streams of data.
Definition: sense.h:42
#define DIMENCOSR_API
Definition: gestureanalyser.h:25
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25