LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
srconfiguration.h
Go to the documentation of this file.
1
5#include <map>
6
9
10#ifdef WIN32
11# ifdef COMPILING_DLL_SimulatedRealityCore
12# define DIMENCOSR_API __declspec(dllexport)
13# else
14# define DIMENCOSR_API __declspec(dllimport)
15# endif
16#else
17# define DIMENCOSR_API
18#endif
19
20namespace SR {
28 Transformation transformation;
29
30public:
31 SenseConfiguration(cv::Mat scaling, cv::Mat rotation, cv::Mat translation);
32 SenseConfiguration(cv::Vec3d rotation, cv::Vec3d translation);
34
37
39};
40
43 // Mapping from Sense names to calibrations, any names that match the constructable senses will actually be usable and calibrated
49#pragma warning(suppress: 4251)
50 std::map<std::string, SenseConfiguration> senseConfigurations;
51
52 // The default height and width associated with instances of Screen
53 float displayHeight;
54 float displayWidth;
55
56 void load(const char* path);
57
58public:
59 Configuration(std::string path);
60
62
63 void calibrate(Sense* sense);
64
66
68};
69
70}
71
72#undef DIMENCOSR_API
Class representing the configuration of the SRContext.
Definition: srconfiguration.h:42
void calibrate(Sense *sense)
float getDisplayHeight()
Configuration(std::string path)
float getDisplayWidth()
Class representing the configuration of a single Sense in the SRContext.
Definition: srconfiguration.h:27
SenseConfiguration(const SenseConfiguration &other)
SenseConfiguration(cv::Vec3d rotation, cv::Vec3d translation)
SenseConfiguration & operator=(const SenseConfiguration &other)
SenseConfiguration(cv::Mat scaling, cv::Mat rotation, cv::Mat translation)
Transformation getCalibration()
Class of objects dealing with Streams of data.
Definition: sense.h:37
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: srconfiguration.h:17