LeiaSR SDK
720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
simulatedreality-win64-Release
include
sr
sense
eyetracker
eyetracker.h
Go to the documentation of this file.
1
5
#pragma once
6
#include <map>
7
#include <thread>
8
#include <mutex>
9
#include "
eyepair.h
"
10
#include "
eyepairstream.h
"
11
#include "
sr/management/srcontext.h
"
12
13
#ifdef WIN32
14
# ifdef COMPILING_DLL_SimulatedRealityFaceTrackers
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
EyeTracker
:
public
Sense
{
36
37
public
:
47
static
EyeTracker
*
create
(
SRContext
&context);
48
58
static
EyeTracker
*
createRaw
(
SRContext
&context);
59
66
virtual
std::shared_ptr<EyePairStream>
openEyePairStream
(
EyePairListener
* listener) = 0;
67
73
virtual
void
streamClosed
(
EyePairStream
* stream) = 0;
74
};
75
76
}
77
78
#undef DIMENCOSR_API
SR::EyePairListener
Interface for listening to SR_eyePair updates.
Definition:
eyepairlistener.h:15
SR::EyePairStream
Stream of SR_eyePair objects.
Definition:
eyepairstream.h:31
SR::EyeTracker
Sense class which provides face tracking functionality to the SR system.
Definition:
eyetracker.h:35
SR::EyeTracker::create
static EyeTracker * create(SRContext &context)
Creates a functional EyeTracker instance.
SR::EyeTracker::streamClosed
virtual void streamClosed(EyePairStream *stream)=0
Closes a specific EyePairStream.
SR::EyeTracker::createRaw
static EyeTracker * createRaw(SRContext &context)
Creates a functional EyeTracker instance providing unfiltered data.
SR::EyeTracker::openEyePairStream
virtual std::shared_ptr< EyePairStream > openEyePairStream(EyePairListener *listener)=0
Creates a EyePairStream for listener to be connected to.
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
eyepair.h
eyepairstream.h
DIMENCOSR_API
#define DIMENCOSR_API
Definition:
eyetracker.h:20
SR
Namespace containing all C++ Simulated Reality classes.
Definition:
srconfiguration.h:20
srcontext.h
Generated by
1.9.2