Omnidome
Fulldome Mapping Software Toolkit
|
An input preview for display a test image input. More...
#include <TestInputPreview.h>
Public Member Functions | |
TestInputPreview (QWidget *=nullptr) | |
TestInputPreview (input::TestImage *, QWidget *=nullptr) | |
~TestInputPreview () | |
![]() | |
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 | mouseMoveEvent (QMouseEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
Mouse press event sets mouse position. More... | |
void | mouseReleaseEvent (QMouseEvent *event) |
![]() | |
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... | |
void | timerEvent (QTimerEvent *) |
void | paintGLReady () |
Private Member Functions | |
void | setRulerPos (QPointF const &) |
Set ruler position of input from widget coordinates. More... | |
Additional Inherited Members | |
![]() | |
void | setBorder (float) |
Set relative border distance. More... | |
![]() | |
void | triggerUpdate () |
void | paintGLDone () |
![]() | |
void | inputChanged () |
![]() | |
bool | updateTriggered_ = false |
QPointF | mousePosition_ |
Mouse position stored. More... | |
An input preview for display a test image input.
omni::ui::TestInputPreview::TestInputPreview | ( | QWidget * | _widget = nullptr | ) |
omni::ui::TestInputPreview::TestInputPreview | ( | input::TestImage * | _input, |
QWidget * | _widget = nullptr |
||
) |
|
protected |
|
protectedvirtual |
Mouse press event sets mouse position.
Reimplemented from omni::ui::GLView.
|
protected |
|
private |
Set ruler position of input from widget coordinates.