Omnidome
Fulldome Mapping Software Toolkit
|
GLView for visualizing tunings or session Holds shared_ptr to session as data model. More...
#include <GLView.h>
Public Slots | |
void | triggerUpdate () |
void | paintGLDone () |
Public Member Functions | |
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 | initializeGL () |
Initialize OpenGL contents. More... | |
virtual void | resizeGL (int _w, int _h) |
Resize GL and viewport. More... | |
virtual void | paintGL () |
Paint GL routine. More... | |
virtual void | mousePressEvent (QMouseEvent *) |
Mouse press event sets mouse position. More... | |
void | timerEvent (QTimerEvent *) |
void | paintGLReady () |
Protected Attributes | |
bool | updateTriggered_ = false |
QPointF | mousePosition_ |
Mouse position stored. More... | |
Private Member Functions | |
virtual bool | initialize ()=0 |
Pure virtual function to initialize GL contents. More... | |
Private Attributes | |
bool | initialized_ = false |
Is initialized flag is set to true after successful initialization. More... | |
float | updateFreq_ = 0.0 |
int | timerId_ = 0 |
GLView for visualizing tunings or session Holds shared_ptr to session as data model.
|
explicit |
|
virtual |
float omni::ui::GLView::aspect | ( | ) | const |
|
privatepure virtual |
Pure virtual function to initialize GL contents.
Implemented in omni::ui::TuningGLView, omni::ui::InputPreview, omni::ui::SceneGLView, and omni::ui::AboutGL.
bool omni::ui::GLView::initialized | ( | ) | const |
Return boolean value if widget has been initialized.
|
protected |
Initialize OpenGL contents.
QPointF omni::ui::GLView::mousePosition | ( | ) | const |
Return mouse position.
|
protectedvirtual |
Mouse press event sets mouse position.
Reimplemented in omni::ui::TuningGLView, omni::ui::AboutGL, and omni::ui::TestInputPreview.
|
protectedvirtual |
Paint GL routine.
Reimplemented in omni::ui::TuningGLView, omni::ui::InputPreview, omni::ui::SceneGLView, and omni::ui::AboutGL.
|
inlineslot |
|
protected |
|
protectedvirtual |
Resize GL and viewport.
Reimplemented in omni::ui::AboutGL.
void omni::ui::GLView::setUpdateFrequency | ( | float | _updateFrequency | ) |
Return update frequency.
|
protected |
|
slot |
float omni::ui::GLView::updateFrequency | ( | ) | const |
Return update frequency.
|
private |
Is initialized flag is set to true after successful initialization.
|
protected |
Mouse position stored.
|
private |
|
private |
|
protected |