Omnidome
Fulldome Mapping Software Toolkit
|
Singleton class which manages the current screen setup. More...
#include <ScreenSetup.h>
Public Member Functions | |
ScreenSetup (Session const *_session) | |
QRect | screenGeometry (QScreen const *=nullptr) const |
Returns the screen geometry for a screen If screen is null, the geometry for the virtual screen is returned. More... | |
Session const * | session () const |
Return const pointer to session. More... | |
int | subScreenCount (QScreen const *=nullptr) const |
Returns the number of subscreens for a single screen If screen is nullptr, number of subscreen for virtual screen is returned. More... | |
int | subScreenWidth (QScreen const *=nullptr) const |
Returns the number of subscreens for a single screen If screen is nullptr, number of subscreen for virtual screen is returned. More... | |
QRect | subScreenRect (int _index, QScreen const *=nullptr) const |
Returns the rectangle of a subscreen with a certain index. More... | |
qreal | subScreenAspectRatio (QScreen const *=nullptr) const |
Return aspect ratio of subscreen. More... | |
QRect | virtualScreenRect () const |
Virtual desktop rect contains all non-assigned tunings. More... | |
QRect | combinedDesktopRect () const |
Returns combined desktop and virtual desktop rect. More... | |
bool | noTuningsAssigned () const |
Returns true if no tuning is assigned to a screen. More... | |
bool | noTuningsAssigned (QScreen const *) const |
std::set< QScreen const * > | usedScreens () const |
std::set< proj::Tuning const * > | tunings (bool _excludeNonAssigned) const |
QRect | tuningRect () const |
Bounding rect that unifies all tunings. More... | |
bool | operator== (const ScreenSetup &) const |
Static Public Member Functions | |
static std::vector< QSize > const & | screenResolutions () |
Returns screen size that supports triple heads. More... | |
static QScreen const * | standardScreen () |
Return standard screen, where omnidome has to be placed. More... | |
static int | subScreenCountForScreen (QScreen const *) |
Static method for getting subscreen count for screen Screen must not be nullptr! More... | |
static int | subScreenWidthForScreen (QScreen const *) |
Static method for getting subscreen width for screen Screen must not be nullptr! More... | |
static QRect | subScreenRectForScreen (int _index, QScreen const *) |
Static method for getting subscreen count for screen Screen must not be nullptr! More... | |
static QRect | desktopRect (bool _excludeStandardScreen=true) |
static std::vector< QScreen const * > | screens (bool _excludeStandardScreen=true) |
Return vector, optionally excluded standard screen. More... | |
static QScreen const * | screenFromRect (QRect const &) |
Return pointer to screen for rectangle, nullptr if no screen with. More... | |
Private Attributes | |
Session const * | session_ |
Singleton class which manages the current screen setup.
omni::proj::ScreenSetup::ScreenSetup | ( | Session const * | _session | ) |
QRect omni::proj::ScreenSetup::combinedDesktopRect | ( | ) | const |
Returns combined desktop and virtual desktop rect.
If there are no tunings assigned, ignore desktopRect
|
static |
bool omni::proj::ScreenSetup::noTuningsAssigned | ( | ) | const |
Returns true if no tuning is assigned to a screen.
bool omni::proj::ScreenSetup::noTuningsAssigned | ( | QScreen const * | _screen | ) | const |
bool omni::proj::ScreenSetup::operator== | ( | const ScreenSetup & | _rhs | ) | const |
|
static |
QRect omni::proj::ScreenSetup::screenGeometry | ( | QScreen const * | _screen = nullptr | ) | const |
Returns the screen geometry for a screen If screen is null, the geometry for the virtual screen is returned.
Return geometry of virtual screen
Return geometry of actual screen
|
static |
Returns screen size that supports triple heads.
|
static |
Return vector, optionally excluded standard screen.
Session const * omni::proj::ScreenSetup::session | ( | ) | const |
Return const pointer to session.
|
static |
qreal omni::proj::ScreenSetup::subScreenAspectRatio | ( | QScreen const * | _screen = nullptr | ) | const |
Return aspect ratio of subscreen.
int omni::proj::ScreenSetup::subScreenCount | ( | QScreen const * | _screen = nullptr | ) | const |
Returns the number of subscreens for a single screen If screen is nullptr, number of subscreen for virtual screen is returned.
|
static |
Static method for getting subscreen count for screen Screen must not be nullptr!
QRect omni::proj::ScreenSetup::subScreenRect | ( | int | _index, |
QScreen const * | _screen = nullptr |
||
) | const |
Returns the rectangle of a subscreen with a certain index.
|
static |
Static method for getting subscreen count for screen Screen must not be nullptr!
int omni::proj::ScreenSetup::subScreenWidth | ( | QScreen const * | _screen = nullptr | ) | const |
Returns the number of subscreens for a single screen If screen is nullptr, number of subscreen for virtual screen is returned.
|
static |
Static method for getting subscreen width for screen Screen must not be nullptr!
QRect omni::proj::ScreenSetup::tuningRect | ( | ) | const |
Bounding rect that unifies all tunings.
std::set< proj::Tuning const * > omni::proj::ScreenSetup::tunings | ( | bool | _excludeNonAssigned | ) | const |
std::set< QScreen const * > omni::proj::ScreenSetup::usedScreens | ( | ) | const |
QRect omni::proj::ScreenSetup::virtualScreenRect | ( | ) | const |
Virtual desktop rect contains all non-assigned tunings.
|
private |