Omnidome
Fulldome Mapping Software Toolkit
|
GLView for visualizing an input. More...
#include <InputPreview.h>
Public Slots | |
void | setBorder (float) |
Set relative border distance. More... | |
![]() | |
void | triggerUpdate () |
void | paintGLDone () |
Signals | |
void | inputChanged () |
Public Member Functions | |
InputPreview (QWidget *=nullptr) | |
InputPreview (input::Interface *_input, QWidget *=nullptr) | |
~InputPreview () | |
float | border () const |
Return relative border value. More... | |
input::Interface * | input () |
Return pointer to input. More... | |
input::Interface const * | input () const |
Return pointer to input (const version) More... | |
void | setInput (input::Interface *) |
Set pointer to input. More... | |
QPointF | screenPos (QPointF const &_pos) const |
Transforms mouse position on widget to normalized position on input Position in range (0.0,0.0) and (1.0,1.0) More... | |
![]() | |
GLView (QWidget *_parent=nullptr) | |
virtual | ~GLView () |
float | aspect () const |
Return aspect ratio of widget. More... | |
QPointF | mousePosition () const |
Return mouse position. More... | |
bool | initialized () const |
Return boolean value if widget has been initialized. More... | |
float | updateFrequency () const |
Return update frequency. More... | |
void | setUpdateFrequency (float _updateFrequency) |
Return update frequency. More... | |
Protected Member Functions | |
void | paintGL () |
Paint GL routine. More... | |
void | showEvent (QShowEvent *) |
![]() | |
void | initializeGL () |
Initialize OpenGL contents. More... | |
virtual void | resizeGL (int _w, int _h) |
Resize GL and viewport. More... | |
virtual void | mousePressEvent (QMouseEvent *) |
Mouse press event sets mouse position. More... | |
void | timerEvent (QTimerEvent *) |
void | paintGLReady () |
Private Member Functions | |
QRectF | viewRect () const |
Return view rect. More... | |
bool | initialize () |
Pure virtual function to initialize GL contents. More... | |
Private Attributes | |
float | border_ = 0.0 |
Relative border. More... | |
std::unique_ptr < QOpenGLShaderProgram > | shader_ |
input::Interface * | input_ = nullptr |
Additional Inherited Members | |
![]() | |
bool | updateTriggered_ = false |
QPointF | mousePosition_ |
Mouse position stored. More... | |
GLView for visualizing an input.
omni::ui::InputPreview::InputPreview | ( | QWidget * | _parent = nullptr | ) |
omni::ui::InputPreview::InputPreview | ( | input::Interface * | _input, |
QWidget * | _parent = nullptr |
||
) |
float omni::ui::InputPreview::border | ( | ) | const |
Return relative border value.
|
privatevirtual |
Pure virtual function to initialize GL contents.
Implements omni::ui::GLView.
input::Interface * omni::ui::InputPreview::input | ( | ) |
Return pointer to input.
input::Interface const * omni::ui::InputPreview::input | ( | ) | const |
Return pointer to input (const version)
|
signal |
|
protectedvirtual |
Paint GL routine.
Setup orthogonal projection
Reimplemented from omni::ui::GLView.
QPointF omni::ui::InputPreview::screenPos | ( | QPointF const & | _pos | ) | const |
Transforms mouse position on widget to normalized position on input Position in range (0.0,0.0) and (1.0,1.0)
|
slot |
Set relative border distance.
void omni::ui::InputPreview::setInput | ( | input::Interface * | _input | ) |
Set pointer to input.
|
protected |
|
private |
Return view rect.
|
private |
Relative border.
|
private |
|
private |