MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / DisplayDescriptor

Class DisplayDescriptor

src/osvr/Client/DisplayDescriptorSchema1.h:48–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 message) {}
47 };
48 class DisplayDescriptor {
49 public:
50 enum DisplayMode {
51 HORIZONTAL_SIDE_BY_SIDE,
52 VERTICAL_SIDE_BY_SIDE,
53 FULL_SCREEN
54 };
55
56 DisplayDescriptor();
57 DisplayDescriptor(const std::string &display_description);
58
59 void parse(const std::string &display_description);
60
61 void print() const;
62
63 /// @brief Returns a human-readable description of the device being
64 /// used, assembled from properties.
65 std::string getHumanReadableDescription() const;
66
67 /// Read the property information.
68 std::string getVendor() const;
69 std::string getModel() const;
70 std::string getVersion() const;
71 std::string getNote() const;
72 int getNumDisplays() const;
73
74 int getDisplayTop() const;
75 int getDisplayLeft() const;
76 int getDisplayWidth() const;
77 int getDisplayHeight() const;
78 DisplayMode getDisplayMode() const;
79
80 util::Angle getVerticalFOV() const;
81 util::Angle getHorizontalFOV() const;
82#if 0
83 double getVerticalFOV() const;
84 double getVerticalFOVRadians() const;
85 double getHorizontalFOV() const;
86 double getHorizontalFOVRadians() const;
87#endif
88 double getFOVAspectRatio() const;
89 double getOverlapPercent() const;
90#if 0
91 double getPitchTilt() const;
92#endif
93 util::Angle getPitchTilt() const;
94
95 double getIPDMeters() const;
96
97 struct DistortionParams {
98 double k1_red = 0.;
99 double k1_green = 0.;
100 double k1_blue = 0.;
101 };
102
103 DistortionParams getDistortion() const { return m_distort; }
104
105 /// Structure holding the information for one eye.

Callers 1

createMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected