Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
sense.h
Go to the documentation of this file.
1
10#pragma once
11
12#include <string>
13#include <chrono>
14#include <thread>
15#include <mutex>
16
17#include "transformation.h"
18
19#ifdef WIN32
20# ifdef COMPILING_DLL_SimulatedRealityCore
21# define DIMENCOSR_API __declspec(dllexport)
22# else
23# define DIMENCOSR_API __declspec(dllimport)
24# endif
25#else
26# define DIMENCOSR_API
27#endif
28
29namespace SR {
30
31//Forward declaration
32class SRContext;
33
43 friend class SRContext;
44
45protected:
46 //Defines the position and orientation of the Sense with respect to a fixed space, often related to the display
48
49public:
51 void setCalibration(Transformation calibration);
52
55
57 virtual ~Sense() {};
58
60 virtual std::string getName() = 0;
61
63 virtual std::string getDescription() = 0;
64
66 virtual void start() = 0;
67
69 virtual void stop() = 0;
70};
71
72}
73
74#undef DIMENCOSR_API
void * SRContext
Definition: admin_c.h:15
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:80
Class of objects dealing with Streams of data.
Definition: sense.h:42
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:57
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:47
Class of objects defining the relation between different coordinate systems.
Definition: transformation.h:32
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
#define DIMENCOSR_API
Definition: sense.h:26