Simulated Reality SDK
7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
simulatedreality-win64-Release
include
sr
sense
eyetracker
eyetracker.h
Go to the documentation of this file.
1
10
#pragma once
11
#include <map>
12
#include <thread>
13
#include <mutex>
14
#include "
eyepair.h
"
15
#include "
eyepairstream.h
"
16
#include "
sr/management/srcontext.h
"
17
18
#ifdef WIN32
19
# ifdef COMPILING_DLL_SimulatedRealityFaceTrackers
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
28
namespace
SR
{
29
40
class
DIMENCOSR_API
EyeTracker
:
public
Sense
{
41
42
public
:
52
static
EyeTracker
*
create
(
SRContext
&context);
53
63
static
EyeTracker
*
createRaw
(
SRContext
&context);
64
71
virtual
std::shared_ptr<EyePairStream>
openEyePairStream
(
EyePairListener
* listener) = 0;
72
78
virtual
void
streamClosed
(
EyePairStream
* stream) = 0;
79
};
80
81
}
82
83
#undef DIMENCOSR_API
SR::EyePairListener
Interface for listening to SR_eyePair updates.
Definition:
eyepairlistener.h:20
SR::EyePairStream
Stream of SR_eyePair objects.
Definition:
eyepairstream.h:36
SR::EyeTracker
Sense class which provides face tracking functionality to the SR system.
Definition:
eyetracker.h:40
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:80
SR::Sense
Class of objects dealing with Streams of data.
Definition:
sense.h:42
eyepair.h
eyepairstream.h
DIMENCOSR_API
#define DIMENCOSR_API
Definition:
eyetracker.h:25
SR
Namespace containing all C++ Simulated Reality classes.
Definition:
srconfiguration.h:25
srcontext.h
Generated by
1.9.2