Omnidome
Fulldome Mapping Software Toolkit
|
A widget for seting up fullscreen windows. More...
#include <ScreenSetup.h>
Public Slots | |
void | updateScreens () |
Update screen dimensions. More... | |
void | closeFullscreenWindows () |
void | assignNewTuningToNextFreeScreen () |
Signals | |
void | dataModelChanged () |
Public Member Functions | |
ScreenSetup (QWidget *=nullptr) | |
~ScreenSetup () | |
QRect | desktopRect () const |
Pure virtual method which returns overall desktop rect. More... | |
void | setTuningList (proj::TuningList *) |
proj::TuningList * | tuningList () |
proj::TuningList const * | tuningList () const |
![]() | |
DataModel () | |
void | setDataModel (pointer_type _dataModel) |
Set new data model. More... | |
pointer_type | dataModel () |
Return pointer to data model. More... | |
const pointer_type | dataModel () const |
Return pointer to data model (const version) More... | |
virtual void | updateFrontend () |
Push data to frontend widgets and all child widgets. More... | |
virtual void | updateDataModel () |
Update the data model interface. More... | |
![]() | |
TransformedRect (widget_type *_widget) | |
float | scalingFactor () const |
Returns the scaling factor which is needed so that desktopRect_. More... | |
QRectF | transformedRect () const |
Returns transformed bounding rect which fits into window and keeps. More... | |
QRectF | transformedRect (QRectF const &_rect) const |
Returns Transformed copy of the rect, based on transformed desktop. More... | |
float | zoom () const |
Return zoom factor. More... | |
void | setZoom (float _zoom) |
Set zoom factor. More... | |
Protected Member Functions | |
void | paintEvent (QPaintEvent *) |
void | mouseMoveEvent (QMouseEvent *) |
void | mouseDoubleClickEvent (QMouseEvent *) |
Detach tuning on double click on screen event. More... | |
void | dragEnterEvent (QDragEnterEvent *) |
void | dragMoveEvent (QDragMoveEvent *) |
void | dropEvent (QDropEvent *) |
![]() | |
template<typename F > | |
void | locked (F f) |
Lock widget and execute given functor. More... | |
bool | isLocked () const |
Return true if widget is locked. More... | |
Private Member Functions | |
void | dataToFrontend () |
Set session parameters. More... | |
bool | frontendToData () |
Return true if data has changed by front end. More... | |
void | assignTuning (omni::proj::Tuning *) |
SubScreenItem * | getSubScreenItemAtPos (QPoint const &) |
Returns pointer to a SubScreenItem under given position Returns null otherwise. More... | |
Private Attributes | |
friend | ScreenItem |
friend | SubScreenItem |
std::map< QScreen const *, std::unique_ptr< ScreenItem > > | screenItems_ |
SubScreenItem * | currentSubScreenItem_ = nullptr |
proj::TuningList * | tuningList_ = nullptr |
Additional Inherited Members | |
![]() | |
typedef DATAMODEL | data_model_type |
Data type. More... | |
typedef DataModel < data_model_type, SHARED > | type |
This type. More... | |
typedef detail::PointerType < data_model_type, SHARED > | pointer_type_handler |
Pointer type handler. More... | |
typedef pointer_type_handler::type | pointer_type |
Derived pointer type. More... | |
![]() | |
typedef ScreenSetup | widget_type |
A widget for seting up fullscreen windows.
Holds fullscreen widgets
omni::ui::ScreenSetup::ScreenSetup | ( | QWidget * | _parent = nullptr | ) |
omni::ui::ScreenSetup::~ScreenSetup | ( | ) |
|
slot |
Iterate through all screens and subscreens
|
private |
|
slot |
|
signal |
|
privatevirtual |
Set session parameters.
Implements omni::ui::mixin::DataModel< DATAMODEL, SHARED >.
|
inlinevirtual |
Pure virtual method which returns overall desktop rect.
Implements omni::ui::mixin::TransformedRect< ScreenSetup >.
|
protected |
|
protected |
|
protected |
|
inlineprivatevirtual |
Return true if data has changed by front end.
Implements omni::ui::mixin::DataModel< DATAMODEL, SHARED >.
|
private |
Returns pointer to a SubScreenItem under given position Returns null otherwise.
|
protected |
Detach tuning on double click on screen event.
|
protected |
|
protected |
Draw all items
void omni::ui::ScreenSetup::setTuningList | ( | proj::TuningList * | _list | ) |
proj::TuningList * omni::ui::ScreenSetup::tuningList | ( | ) |
proj::TuningList const * omni::ui::ScreenSetup::tuningList | ( | ) | const |
|
slot |
Update screen dimensions.
|
private |
|
private |
|
private |
|
private |
|
private |