Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
Public Member Functions | Static Public Member Functions | List of all members
SR::EyeTracker Class Referenceabstract

Sense class which provides face tracking functionality to the SR system. More...

#include <eyetracker.h>

Inheritance diagram for SR::EyeTracker:
[legend]
Collaboration diagram for SR::EyeTracker:
[legend]

Public Member Functions

virtual std::shared_ptr< EyePairStreamopenEyePairStream (EyePairListener *listener)=0
 Creates a EyePairStream for listener to be connected to. More...
 
virtual void streamClosed (EyePairStream *stream)=0
 Closes a specific EyePairStream. More...
 
- Public Member Functions inherited from SR::Sense
void setCalibration (Transformation calibration)
 Sets a Transformation object to represent the sense's calibration with respect to the display. More...
 
Transformation getCalibration ()
 Gets callibration. More...
 
virtual ~Sense ()
 Ensures the proper destruction of the sense implementation. More...
 
virtual std::string getName ()=0
 Return the name of the sense. More...
 
virtual std::string getDescription ()=0
 Return a description of the sense. More...
 
virtual void start ()=0
 Start continuous updates, default behaviour is defined in the updater() function. More...
 
virtual void stop ()=0
 Stop continuous updates. More...
 

Static Public Member Functions

static EyeTrackercreate (SRContext &context)
 Creates a functional EyeTracker instance. More...
 
static EyeTrackercreateRaw (SRContext &context)
 Creates a functional EyeTracker instance providing unfiltered data. More...
 

Additional Inherited Members

- Protected Attributes inherited from SR::Sense
Transformation calibration
 

Detailed Description

Sense class which provides face tracking functionality to the SR system.

Member Function Documentation

◆ create()

static EyeTracker * SR::EyeTracker::create ( SRContext context)
static

Creates a functional EyeTracker instance.

Parameters
contextis the environment in which created senses are kept track of
Returns
EyeTracker* which can provide streams of eye position data

The EyeTracker class is abstract and requires a device specific implementation to be used in applications. This function constructs an EyeTracker suitable for use in your application on the current device.

◆ createRaw()

static EyeTracker * SR::EyeTracker::createRaw ( SRContext context)
static

Creates a functional EyeTracker instance providing unfiltered data.

Parameters
contextis the environment in which created senses are kept track of
Returns
EyeTracker* which can provide streams of eye position data

The EyeTracker class is abstract and requires a device specific implementation to be used in applications. This function constructs an EyeTracker suitable for use in your application on the current device.

◆ openEyePairStream()

virtual std::shared_ptr< EyePairStream > SR::EyeTracker::openEyePairStream ( EyePairListener listener)
pure virtual

Creates a EyePairStream for listener to be connected to.

Parameters
listenerwill receive eyepair updates from now on
Returns
std::shared_ptr<EyePairStream> to be used to close the stream correctly when it is no longer required

Implemented in SR::PredictingEyeTracker.

◆ streamClosed()

virtual void SR::EyeTracker::streamClosed ( EyePairStream stream)
pure virtual

Closes a specific EyePairStream.

Parameters
streamwill no longer supply eyepair updates

Implemented in SR::PredictingEyeTracker.


The documentation for this class was generated from the following file: