LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
display.h
Go to the documentation of this file.
1
5#pragma once
6
9
10#include <fstream>
11
12#ifdef WIN32
13# ifdef COMPILING_DLL_SimulatedRealityDisplays
14# define DIMENCOSR_API __declspec(dllexport)
15# else
16# define DIMENCOSR_API __declspec(dllimport)
17# endif
18#else
19# define DIMENCOSR_API
20#endif
21
22namespace SR {
23
31public:
39 static Display* create(SRContext &context);
40
47 virtual ~Display() = default;
48
54 virtual const int getResolutionHeight() = 0;
55
61 virtual const int getResolutionWidth() = 0;
62
68 virtual const int getPhysicalResolutionHeight() = 0;
69
75 virtual const int getPhysicalResolutionWidth() = 0;
76
82 virtual const float getPhysicalSizeHeight() = 0;
83
89 virtual const float getPhysicalSizeWidth() = 0;
90
96 virtual const float getDotPitch() = 0;
97
103 virtual SR_recti getLocation() = 0;
104};
105
106}
107
108#undef DIMENCOSR_API
Class of WorldObject representing the SR display in real space.
Definition: display.h:30
virtual SR_recti getLocation()=0
Finds the SR monitor and return it's location in the display configuration.
static Display * create(SRContext &context)
Creates an instance of a Display class.
virtual const float getPhysicalSizeWidth()=0
Get the physical width of the display.
virtual const float getDotPitch()=0
Get the dot pitch (pixel size)
virtual ~Display()=default
Destructor of the Display instance.
virtual const int getResolutionWidth()=0
Get the horizontal resolution that is accepted by the display.
virtual const int getResolutionHeight()=0
Get the vertical resolution that is accepted by the display.
virtual const int getPhysicalResolutionWidth()=0
Get the horizontal native resolution of the physical display itself.
virtual const int getPhysicalResolutionHeight()=0
Get the vertical native resolution of the physical display itself.
virtual const float getPhysicalSizeHeight()=0
Get the physical height of the display.
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:75
Class representing both real and virtual objects as nodes in the World tree.
Definition: worldobject.h:30
#define DIMENCOSR_API
Definition: display.h:19
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:20
C-compatible integer rectangle representation.
Definition: types.h:107