|
OpenHantek
|
OpenGL accelerated widget that displays the oscilloscope screen. More...
#include <glscope.h>
Signals | |
| void | markerMoved (unsigned cursorIndex, unsigned marker) |
Public Member Functions | |
| void | showData (std::shared_ptr< PPresult > data) |
| void | updateCursor (unsigned index=0) |
| void | cursorSelected (unsigned index) |
Static Public Member Functions | |
| static GlScope * | createNormal (DsoSettingsScope *scope, DsoSettingsView *view, QWidget *parent=0) |
| static GlScope * | createZoomed (DsoSettingsScope *scope, DsoSettingsView *view, QWidget *parent=0) |
| static void | fixOpenGLversion (QSurfaceFormat::RenderableType t=QSurfaceFormat::DefaultRenderableType) |
Protected Member Functions | |
| GlScope (DsoSettingsScope *scope, DsoSettingsView *view, QWidget *parent=0) | |
| Initializes the scope widget. More... | |
| GlScope (const GlScope &)=delete | |
| virtual void | initializeGL () override |
| Initializes OpenGL output. | |
| virtual void | paintGL () override |
| Draw the graphs, marker and the grid. | |
| virtual void | resizeGL (int width, int height) override |
| Resize the widget. More... | |
| virtual void | mousePressEvent (QMouseEvent *event) override |
| virtual void | mouseMoveEvent (QMouseEvent *event) override |
| virtual void | mouseReleaseEvent (QMouseEvent *event) override |
| virtual void | paintEvent (QPaintEvent *event) override |
| void | drawGrid () |
| Draw the grid. | |
| void | drawMarkers () |
| Draw vertical lines at marker positions. | |
| void | generateVertices (unsigned marker, const DsoSettingsScopeCursor &cursor) |
| void | drawVertices (QOpenGLFunctions *gl, unsigned marker, QColor color) |
| void | drawVoltageChannelGraph (ChannelID channel, Graph &graph, int historyIndex) |
| void | drawSpectrumChannelGraph (ChannelID channel, Graph &graph, int historyIndex) |
| QPointF | eventToPosition (QMouseEvent *event) |
OpenGL accelerated widget that displays the oscilloscope screen.
|
protected |
Initializes the scope widget.
| settings | The settings that should be used. |
| parent | The parent widget. |
|
static |
We need at least OpenGL 3.2 with shader version 150 or OpenGL ES 2.0 with shader version 100.
|
overrideprotectedvirtual |
Resize the widget.
| width | The new width of the widget. |
| height | The new height of the widget. |
| void GlScope::showData | ( | std::shared_ptr< PPresult > | data | ) |
Show new post processed data
| data |
1.8.14