An alternative canvas for a QwtPlot derived from QGLWidget. More...
#include <qwt_plot_glcanvas.h>

Classes | |
| class | PrivateData |
Public Slots | |
| void | replot () |
Public Member Functions | |
| Q_INVOKABLE QPainterPath | borderPath (const QRect &) const |
| virtual bool | event (QEvent *) |
| virtual Q_INVOKABLE void | invalidateBackingStore () |
| QwtPlotGLCanvas (QwtPlot *=NULL) | |
| Constructor. | |
| QwtPlotGLCanvas (const QGLFormat &, QwtPlot *=NULL) | |
| virtual | ~QwtPlotGLCanvas () |
| Destructor. | |
Protected Member Functions | |
| virtual void | initializeGL () |
| virtual void | paintEvent (QPaintEvent *) |
| virtual void | paintGL () |
| virtual void | resizeGL (int width, int height) |
Properties | |
| double | borderRadius |
| QRect | frameRect |
| QFrame::Shadow | frameShadow |
| QFrame::Shape | frameShape |
| int | frameWidth |
| int | lineWidth |
| int | midLineWidth |
Private Member Functions | |
| virtual void | clearBackingStore () |
Private Attributes | |
| PrivateData * | d_data |
An alternative canvas for a QwtPlot derived from QGLWidget.
QwtPlotGLCanvas implements the very basics to act as canvas inside of a QwtPlot widget. It might be extended to a full featured alternative to QwtPlotCanvas in a future version of Qwt.
Even if QwtPlotGLCanvas is not derived from QFrame it imitates its API. When using style sheets it supports the box model - beside backgrounds with rounded borders.
Definition at line 42 of file qwt_plot_glcanvas.h.
| QwtPlotGLCanvas::QwtPlotGLCanvas | ( | QwtPlot * | plot = NULL | ) | [explicit] |
Constructor.
| plot | Parent plot widget |
Definition at line 49 of file qwt_plot_glcanvas.cpp.
| QwtPlotGLCanvas::QwtPlotGLCanvas | ( | const QGLFormat & | format, |
| QwtPlot * | plot = NULL |
||
| ) | [explicit] |
Definition at line 59 of file qwt_plot_glcanvas.cpp.
| QwtPlotGLCanvas::~QwtPlotGLCanvas | ( | ) | [virtual] |
Destructor.
Definition at line 70 of file qwt_plot_glcanvas.cpp.
| QPainterPath QwtPlotGLCanvas::borderPath | ( | const QRect & | rect | ) | const |
Definition at line 124 of file qwt_plot_glcanvas.cpp.
| void QwtPlotGLCanvas::clearBackingStore | ( | ) | [private, virtual] |
Implements QwtPlotAbstractGLCanvas.
Definition at line 118 of file qwt_plot_glcanvas.cpp.
| bool QwtPlotGLCanvas::event | ( | QEvent * | event | ) | [virtual] |
Qt event handler for QEvent::PolishRequest and QEvent::StyleChange
| event | Qt Event |
Definition at line 91 of file qwt_plot_glcanvas.cpp.
| void QwtPlotGLCanvas::initializeGL | ( | ) | [protected, virtual] |
Definition at line 129 of file qwt_plot_glcanvas.cpp.
| void QwtPlotGLCanvas::invalidateBackingStore | ( | ) | [virtual] |
Implements QwtPlotAbstractGLCanvas.
Definition at line 113 of file qwt_plot_glcanvas.cpp.
| void QwtPlotGLCanvas::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
Paint event
| event | Paint event |
Definition at line 81 of file qwt_plot_glcanvas.cpp.
| void QwtPlotGLCanvas::paintGL | ( | ) | [protected, virtual] |
Definition at line 133 of file qwt_plot_glcanvas.cpp.
| void QwtPlotGLCanvas::replot | ( | ) | [slot] |
Invalidate the paint cache and repaint the canvas
Reimplemented from QwtPlotAbstractGLCanvas.
Definition at line 108 of file qwt_plot_glcanvas.cpp.
| void QwtPlotGLCanvas::resizeGL | ( | int | width, |
| int | height | ||
| ) | [protected, virtual] |
Definition at line 189 of file qwt_plot_glcanvas.cpp.
PrivateData* QwtPlotGLCanvas::d_data [private] |
Reimplemented from QwtPlotAbstractGLCanvas.
Definition at line 78 of file qwt_plot_glcanvas.h.
double QwtPlotGLCanvas::borderRadius [read, write] |
Definition at line 53 of file qwt_plot_glcanvas.h.
QRect QwtPlotGLCanvas::frameRect [read] |
Definition at line 51 of file qwt_plot_glcanvas.h.
QFrame::Shadow QwtPlotGLCanvas::frameShadow [read, write] |
Definition at line 46 of file qwt_plot_glcanvas.h.
QFrame::Shape QwtPlotGLCanvas::frameShape [read, write] |
Definition at line 47 of file qwt_plot_glcanvas.h.
int QwtPlotGLCanvas::frameWidth [read] |
Definition at line 50 of file qwt_plot_glcanvas.h.
int QwtPlotGLCanvas::lineWidth [read, write] |
Definition at line 48 of file qwt_plot_glcanvas.h.
int QwtPlotGLCanvas::midLineWidth [read, write] |
Definition at line 49 of file qwt_plot_glcanvas.h.