Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
|
Sense class which provides face tracking functionality to the SR system. More...
#include <headtracker.h>
Public Member Functions | |
virtual std::shared_ptr< HeadStream > | openHeadStream (HeadListener *listener)=0 |
Creates a HeadStream for listener to be connected to. More... | |
virtual void | streamClosed (HeadStream *stream)=0 |
Closes a specific HeadStream. 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 HeadTracker * | create (SRContext &context) |
Creates a functional HeadTracker instance. More... | |
Additional Inherited Members | |
Protected Attributes inherited from SR::Sense | |
Transformation | calibration |
|
static |
Creates a functional HeadTracker instance.
context | is the environment in which created senses are kept track of |
The HeadTracker class is abstract and requires a device specific implementation to be used in applications. This function constructs an HeadTracker suitable for use in your application on the current device.
|
pure virtual |
Creates a HeadStream for listener
to be connected to.
listener | will receive head updates from now on |
|
pure virtual |
Closes a specific HeadStream.
stream | will no longer supply head updates |