LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
headtracker.h
Go to the documentation of this file.
1
5#pragma once
6#include "headstream.h"
8
9#ifdef WIN32
10# ifdef COMPILING_DLL_SimulatedRealityFaceTrackers
11# define DIMENCOSR_API __declspec(dllexport)
12# else
13# define DIMENCOSR_API __declspec(dllimport)
14# endif
15#else
16# define DIMENCOSR_API
17#endif
18
19namespace SR {
20
32
33public:
43 static HeadTracker* create(SRContext &context);
44
51 virtual std::shared_ptr<HeadStream> openHeadStream(HeadListener* listener) = 0;
52
58 virtual void streamClosed(HeadStream* stream) = 0;
59};
60
61}
62
63#undef DIMENCOSR_API
Interface for listening to SR_head updates This interface is supported from Eye Tracker version 1....
Definition: headlistener.h:16
Stream of SR_head objects.
Definition: headstream.h:30
Sense class which provides face tracking functionality to the SR system.
Definition: headtracker.h:31
static HeadTracker * create(SRContext &context)
Creates a functional HeadTracker instance.
virtual void streamClosed(HeadStream *stream)=0
Closes a specific HeadStream.
virtual std::shared_ptr< HeadStream > openHeadStream(HeadListener *listener)=0
Creates a HeadStream for listener to be connected to.
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:75
Class of objects dealing with Streams of data.
Definition: sense.h:37
#define DIMENCOSR_API
Definition: headtracker.h:16
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:20