25 #ifndef INCLUDED_DisplayDescriptorSchema1_h_GUID_E976C3C5_C76D_4781_6930_A133E598D5B1 26 #define INCLUDED_DisplayDescriptorSchema1_h_GUID_E976C3C5_C76D_4781_6930_A133E598D5B1 32 #include <json/value.h> 42 namespace display_schema_1 {
45 : std::runtime_error(
"Display descriptor parse error: " +
51 HORIZONTAL_SIDE_BY_SIDE,
52 VERTICAL_SIDE_BY_SIDE,
59 void parse(
const std::string &display_description);
65 std::string getHumanReadableDescription()
const;
68 std::string getVendor()
const;
69 std::string getModel()
const;
70 std::string getVersion()
const;
71 std::string getNote()
const;
77 int getNumDisplays()
const;
79 int getDisplayTop()
const;
80 int getDisplayLeft()
const;
81 int getDisplayWidth()
const;
82 int getDisplayHeight()
const;
83 DisplayMode getDisplayMode()
const;
88 double getVerticalFOV()
const;
89 double getVerticalFOVRadians()
const;
90 double getHorizontalFOV()
const;
91 double getHorizontalFOVRadians()
const;
93 double getOverlapPercent()
const;
95 double getPitchTilt()
const;
99 double getIPDMeters()
const;
103 double k1_green = 0.;
112 double m_CenterProjX = 0.5;
113 double m_CenterProjY = 0.5;
114 bool m_rotate180 =
false;
119 std::vector<EyeInfo>
const &getEyes()
const;
124 int video_inputs = 1;
125 DisplayMode display_mode;
129 return m_resolutions.at(m_activeResolution);
134 return m_resolutions.at(m_activeResolution);
137 void m_processResolution(Json::Value
const &resolution);
139 std::string m_vendor;
141 std::string m_version;
146 double m_overlapPercent;
149 std::vector<Resolution> m_resolutions;
155 double m_rightRoll = 0.;
156 double m_leftRoll = 0.;
159 std::vector<EyeInfo> m_eyes;
162 size_t m_activeResolution = 0;
168 #endif // INCLUDED_DisplayConfiguration_h_GUID_E976C3C5_C76D_4781_6930_A133E598D5B1 AngleRadiansd Angle
Default angle type.
Definition: Angles.h:63
Definition: DisplayDescriptorSchema1.h:101
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
Structure holding the information for one eye.
Definition: DisplayDescriptorSchema1.h:110
Definition: DisplayDescriptorSchema1.h:43
Definition: DisplayDescriptorSchema1.h:48
Definition: DisplayDescriptorSchema1.h:121