Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
|
Class of WorldObject representing the screen in real space. More...
#include <screen.h>
Public Member Functions | |
Screen (int resolutionHeight, int resolutionWidth, int physicalResolutionHeight, int physicalResolutionWidth, float pixelSize) | |
Screen Class constructor. More... | |
const int | getResolutionHeight () |
Get the vertical resolution that is accepted by the display. More... | |
const int | getResolutionWidth () |
Get the horizontal resolution that is accepted by the display. More... | |
const int | getPhysicalResolutionHeight () |
Get the vertical native resolution of the physical screen itself. More... | |
const int | getPhysicalResolutionWidth () |
Get the horizontal native resolution of the physical screen itself. More... | |
const float | getPhysicalSizeHeight () |
Get the physical height of the screen. More... | |
const float | getPhysicalSizeWidth () |
Get the physical width of the screen. More... | |
const float | getDotPitch () |
Get the dot pitch (pixel size) More... | |
Public Member Functions inherited from SR::WorldObject | |
WorldObject (WorldObject *parent) | |
WorldObject () | |
cv::Vec3d | getRelativePosition () |
cv::Vec3d | getAbsolutePosition () |
Static Public Member Functions | |
static Screen * | create (SRContext &context) |
Creates an instance of a Screen class. More... | |
Additional Inherited Members | |
Protected Attributes inherited from SR::WorldObject | |
WorldObject * | parent |
Transformation | parentRelation |
cv::Vec3d | relativePosition |
Class of WorldObject representing the screen in real space.
The origin of both worlds is at the center of the screen
SR::Screen::Screen | ( | int | resolutionHeight, |
int | resolutionWidth, | ||
int | physicalResolutionHeight, | ||
int | physicalResolutionWidth, | ||
float | pixelSize | ||
) |
Screen Class constructor.
resolutionHeight | is the vertical pixel count that is accepted by the screen |
resolutionWidth | is the horizontal pixel count that is accepted by the screen |
physicalResolutionHeight | is the vertical pixel count of the native resolution of the physical screen itself |
physicalResolutionWidth | is the horizontal pixel count of the native resolution of the physical screen itself |
pixelSize | is the size of a pixel in cm |
const float SR::Screen::getDotPitch | ( | ) |
Get the dot pitch (pixel size)
const int SR::Screen::getPhysicalResolutionHeight | ( | ) |
Get the vertical native resolution of the physical screen itself.
const int SR::Screen::getPhysicalResolutionWidth | ( | ) |
Get the horizontal native resolution of the physical screen itself.
const float SR::Screen::getPhysicalSizeHeight | ( | ) |
Get the physical height of the screen.
const float SR::Screen::getPhysicalSizeWidth | ( | ) |
Get the physical width of the screen.
const int SR::Screen::getResolutionHeight | ( | ) |
Get the vertical resolution that is accepted by the display.
const int SR::Screen::getResolutionWidth | ( | ) |
Get the horizontal resolution that is accepted by the display.