LeiaSR SDK
720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
simulatedreality-win64-Release
include
sr
sense
gestureanalyser
gestureanalyser.h
Go to the documentation of this file.
1
5
#pragma once
6
7
#include <map>
8
9
#include "
sr/management/srcontext.h
"
10
#include "
gesture.h
"
11
#include "
gesturestream.h
"
12
13
#ifdef WIN32
14
# ifdef COMPILING_DLL_SimulatedRealityHandTrackers
15
# define DIMENCOSR_API __declspec(dllexport)
16
# else
17
# define DIMENCOSR_API __declspec(dllimport)
18
# endif
19
#else
20
# define DIMENCOSR_API
21
#endif
22
23
namespace
SR
{
24
35
class
DIMENCOSR_API
GestureAnalyser
:
public
Sense
{
36
37
public
:
47
static
GestureAnalyser
*
create
(
SRContext
&context);
48
55
virtual
std::shared_ptr<GestureStream>
openGestureStream
(
GestureListener
* listener) = 0;
56
62
virtual
void
streamClosed
(
GestureStream
* stream) = 0;
63
};
64
65
}
66
67
#undef DIMENCOSR_API
SR::GestureAnalyser
Sense class which provides gesture analysis functionality to the SR system.
Definition:
gestureanalyser.h:35
SR::GestureAnalyser::openGestureStream
virtual std::shared_ptr< GestureStream > openGestureStream(GestureListener *listener)=0
Creates a GestureStream for listener to be connected to.
SR::GestureAnalyser::create
static GestureAnalyser * create(SRContext &context)
Creates a functional GestureAnalyser instance.
SR::GestureAnalyser::streamClosed
virtual void streamClosed(GestureStream *stream)=0
Closes a specific GestureStream.
SR::GestureListener
Interface for listening to SR_gesture updates.
Definition:
gesturelistener.h:17
SR::GestureStream
Stream of SR_gesture objects.
Definition:
gesturestream.h:47
SR::SRContext
Maintains WorldObject and Sense objects during the application lifetime.
Definition:
srcontext.h:75
SR::Sense
Class of objects dealing with Streams of data.
Definition:
sense.h:37
gesture.h
DIMENCOSR_API
#define DIMENCOSR_API
Definition:
gestureanalyser.h:20
gesturestream.h
SR
Namespace containing all C++ Simulated Reality classes.
Definition:
srconfiguration.h:20
srcontext.h
Generated by
1.9.2