LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
sense.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <string>
8#include <chrono>
9#include <thread>
10#include <mutex>
11
12#include "transformation.h"
13
14#ifdef WIN32
15# ifdef COMPILING_DLL_SimulatedRealityCore
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
24namespace SR {
25
26//Forward declaration
27class SRContext;
28
38 friend class SRContext;
39
40protected:
41 //Defines the position and orientation of the Sense with respect to a fixed space, often related to the display
43
44public:
46 void setCalibration(Transformation calibration);
47
50
52 virtual ~Sense() {};
53
55 virtual std::string getName() = 0;
56
58 virtual std::string getDescription() = 0;
59
61 virtual void start() = 0;
62
64 virtual void stop() = 0;
65};
66
67}
68
69#undef DIMENCOSR_API
void * SRContext
Definition: admin_c.h:10
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
virtual void start()=0
Start continuous updates, default behaviour is defined in the updater() function.
void setCalibration(Transformation calibration)
Sets a Transformation object to represent the sense's calibration with respect to the display.
virtual std::string getName()=0
Return the name of the sense.
virtual ~Sense()
Ensures the proper destruction of the sense implementation.
Definition: sense.h:52
Transformation getCalibration()
Gets callibration.
virtual std::string getDescription()=0
Return a description of the sense.
virtual void stop()=0
Stop continuous updates.
Transformation calibration
Definition: sense.h:42
Class of objects defining the relation between different coordinate systems.
Definition: transformation.h:27
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:20
#define DIMENCOSR_API
Definition: sense.h:21