Mercurial > octave
comparison libgui/graphics/Figure.h @ 23535:2aab625b502c
Add getframe function for opengl based toolkits (bug #48195)
* graphics.in.h (graphics_toolkit::get_pixels,
base_graphics_toolkit::get_pixels): new virtual methods
* graphics.cc (F__get_frame__): new function.
* Backend.h/cc (Backend::get_pixels): implement new method
* ObjectProxy.h/cc (ObjectProxy::get_pixels): new method, invoke directly
Figure object slotGetPixels in Qt::BlockingQueuedConnection mode
* Figure.h/cc (Figure::slotGetPixels): new public slot
* Canvas.h (Canvas::getPixels, Canvas::do_getPixels): new methods
* GLCanvas.h/cc (GLCanvas::do_getPixels): reimplemented method, use
opengl_renderer to draw object and get_pixels
* __init_fltk__.cc (fltk_graphics_toolkit::get_pixels,
figure_manager::get_pixels, figure_manager::do_get_pixels,
plot_window::get_pixels, OpenGL_fltk::get_pixels): new methods
* gl-renderer.h/cc (opengl_renderer::get_pixels): new method, read pixels in
the current opengl scene
* getframe.m: new function file
* image.txi: add getframe doc
* NEWS: announce new function
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Tue, 23 May 2017 15:01:27 +0200 |
parents | c763214a8260 |
children | e7624c23b101 |
comparison
equal
deleted
inserted
replaced
23534:b6498c088fca | 23535:2aab625b502c |
---|---|
126 void updateContainer (void); | 126 void updateContainer (void); |
127 void toggleAxes (void); | 127 void toggleAxes (void); |
128 void toggleGrid (void); | 128 void toggleGrid (void); |
129 void autoAxes (void); | 129 void autoAxes (void); |
130 | 130 |
131 public slots: | |
132 uint8NDArray slotGetPixels (void); | |
133 | |
131 signals: | 134 signals: |
132 void asyncUpdate (void); | 135 void asyncUpdate (void); |
133 | 136 |
134 private: | 137 private: |
135 Container *m_container; | 138 Container *m_container; |