Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
srconfiguration.h
Go to the documentation of this file.
1
10#include <map>
11
12#include "sr/sense/core/sense.h"
14
15#ifdef WIN32
16# ifdef COMPILING_DLL_SimulatedRealityCore
17# define DIMENCOSR_API __declspec(dllexport)
18# else
19# define DIMENCOSR_API __declspec(dllimport)
20# endif
21#else
22# define DIMENCOSR_API
23#endif
24
25namespace SR {
33 Transformation transformation;
34
35public:
36 SenseConfiguration(cv::Mat scaling, cv::Mat rotation, cv::Mat translation);
37 SenseConfiguration(cv::Vec3d rotation, cv::Vec3d translation);
39
42
44};
45
48 // Mapping from Sense names to calibrations, any names that match the constructable senses will actually be usable and calibrated
54#pragma warning(suppress: 4251)
55 std::map<std::string, SenseConfiguration> senseConfigurations;
56
57 // The default height and width associated with instances of Screen
58 float displayHeight;
59 float displayWidth;
60
61 void load(const char* path);
62
63public:
64 Configuration(std::string path);
65
67
68 void calibrate(Sense* sense);
69
71
73};
74
75}
76
77#undef DIMENCOSR_API
Class representing the configuration of the SRContext.
Definition: srconfiguration.h:47
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:32
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:42
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: srconfiguration.h:22