15 #ifndef BORNAGAIN_GUI_BA3D_VIEW_CANVAS_H
16 #define BORNAGAIN_GUI_BA3D_VIEW_CANVAS_H
21 #include <QOpenGLFunctions>
22 #include <QOpenGLShaderProgram>
23 #include <QOpenGLWidget>
34 class Canvas :
public QOpenGLWidget,
protected QOpenGLFunctions {
92 void draw(QColor
const&, QMatrix4x4
const&,
Geometry const&);
void mouseMoveEvent(QMouseEvent *) override
void mouseReleaseEvent(QMouseEvent *) override
void wheelEvent(QWheelEvent *) override
QVector3D unproject(QPoint const &)
QHash< Geometry const *, Buffer * > buffers
void draw(QColor const &, QMatrix4x4 const &, Geometry const &)
enum GUI::RealSpace::Canvas::@0 mouseButton
void mousePressEvent(QMouseEvent *) override
void initializeGL() override
void releaseBuffer(Geometry const *)
bool isInitialized() const
QMetaObject::Connection modelUpdated
void setBgColor(QColor const &)
void setProgram(Program *)
void verticalCameraTurn(float angle)
void horizontalCameraTurn(float angle)
void resizeGL(int, int) override
Definitions in namespace GUI::RealSpace.