LeiaSR SDK
720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
simulatedreality-win64-Release
include
sr
sense
headtracker
headtracker.h
Go to the documentation of this file.
1
5
#pragma once
6
#include "
headstream.h
"
7
#include "
sr/management/srcontext.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
19
namespace
SR
{
20
31
class
DIMENCOSR_API
HeadTracker
:
public
Sense
{
32
33
public
:
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
SR::HeadListener
Interface for listening to SR_head updates This interface is supported from Eye Tracker version 1....
Definition:
headlistener.h:16
SR::HeadStream
Stream of SR_head objects.
Definition:
headstream.h:30
SR::HeadTracker
Sense class which provides face tracking functionality to the SR system.
Definition:
headtracker.h:31
SR::HeadTracker::create
static HeadTracker * create(SRContext &context)
Creates a functional HeadTracker instance.
SR::HeadTracker::streamClosed
virtual void streamClosed(HeadStream *stream)=0
Closes a specific HeadStream.
SR::HeadTracker::openHeadStream
virtual std::shared_ptr< HeadStream > openHeadStream(HeadListener *listener)=0
Creates a HeadStream 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
headstream.h
DIMENCOSR_API
#define DIMENCOSR_API
Definition:
headtracker.h:16
SR
Namespace containing all C++ Simulated Reality classes.
Definition:
srconfiguration.h:20
srcontext.h
Generated by
1.9.2