23 #if ! defined (octave_GLCanvas_h) 24 #define octave_GLCanvas_h 1 26 #if defined (HAVE_QOPENGLWIDGET) 27 # include <QOpenGLWidget> 28 # define OCTAVE_QT_OPENGL_WIDGET QOpenGLWidget 29 # include <QOpenGLFramebufferObject> 30 # define OCTAVE_QT_OPENGL_FBO QOpenGLFramebufferObject 31 # if defined (HAVE_QT_OFFSCREEN) 32 # include <QOpenGLContext> 33 # include <QOffscreenSurface> 35 #elif defined (HAVE_QGLWIDGET) 37 # define OCTAVE_QT_OPENGL_WIDGET QGLWidget 38 # include <QGLFramebufferObject> 39 # define OCTAVE_QT_OPENGL_FBO QGLFramebufferObject 41 # error "configuration error: must have <QOpenGLWidget> or <QGLWidget>." 56 void do_print (
const QString& file_cmd,
const QString& term,
61 void drawZoomBox (
const QPoint& p1,
const QPoint& p2);
83 # if defined (HAVE_QT_OFFSCREEN) 84 QOpenGLContext m_os_context;
85 QOffscreenSurface m_os_surface;
void autoAxes(const graphics_handle &handle)
void mouseDoubleClickEvent(QMouseEvent *event)
graphics_object selectFromAxes(const graphics_object &ax, const QPoint &pt)
GLCanvas(QWidget *parent, const graphics_handle &handle)
void wheelEvent(QWheelEvent *event)
void mouseMoveEvent(QMouseEvent *event)
bool begin_rendering(void)
void draw(const graphics_handle &handle)
void keyReleaseEvent(QKeyEvent *event)
void toggleAxes(const graphics_handle &handle)
uint8NDArray do_getPixels(const graphics_handle &handle)
void toggleGrid(const graphics_handle &handle)
void mousePressEvent(QMouseEvent *event)
void drawZoomBox(const QPoint &p1, const QPoint &p2)
void resize(int, int, int, int)
void mouseReleaseEvent(QMouseEvent *event)
void keyPressEvent(QKeyEvent *event)
void do_print(const QString &file_cmd, const QString &term, const graphics_handle &handle)