Simulated Reality SDK
7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
simulatedreality-win64-Release
include
sr
sense
headtracker
headtracker.h
Go to the documentation of this file.
1
10
#pragma once
11
#include "
headstream.h
"
12
#include "
sr/management/srcontext.h
"
13
14
#ifdef WIN32
15
# ifdef COMPILING_DLL_SimulatedRealityFaceTrackers
16
# define DIMENCOSR_API __declspec(dllexport)
17
# else
18
# define DIMENCOSR_API __declspec(dllimport)
19
# endif
20
#else
21
# define DIMENCOSR_API
22
#endif
23
24
namespace
SR
{
25
36
class
DIMENCOSR_API
HeadTracker
:
public
Sense
{
37
38
public
:
48
static
HeadTracker
*
create
(
SRContext
&context);
49
56
virtual
std::shared_ptr<HeadStream>
openHeadStream
(
HeadListener
* listener) = 0;
57
63
virtual
void
streamClosed
(
HeadStream
* stream) = 0;
64
};
65
66
}
67
68
#undef DIMENCOSR_API
SR::HeadListener
Interface for listening to SR_head updates This interface is supported from Eye Tracker version 1....
Definition:
headlistener.h:21
SR::HeadStream
Stream of SR_head objects.
Definition:
headstream.h:35
SR::HeadTracker
Sense class which provides face tracking functionality to the SR system.
Definition:
headtracker.h:36
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:80
SR::Sense
Class of objects dealing with Streams of data.
Definition:
sense.h:42
headstream.h
DIMENCOSR_API
#define DIMENCOSR_API
Definition:
headtracker.h:21
SR
Namespace containing all C++ Simulated Reality classes.
Definition:
srconfiguration.h:25
srcontext.h
Generated by
1.9.2