27#ifndef QWT_PLOT_GLCANVAS_H
28#define QWT_PLOT_GLCANVAS_H
30#include "qwt_global.h"
31#include "qwt_plot_abstract_canvas.h"
34#include <qpainterpath.h>
66 Q_PROPERTY(QFrame::Shadow frameShadow READ frameShadow WRITE setFrameShadow)
67 Q_PROPERTY(QFrame::Shape frameShape READ frameShape WRITE setFrameShape)
68 Q_PROPERTY(
int lineWidth READ lineWidth WRITE setLineWidth)
69 Q_PROPERTY(
int midLineWidth READ midLineWidth WRITE setMidLineWidth)
70 Q_PROPERTY(
int frameWidth READ frameWidth)
71 Q_PROPERTY(QRect frameRect READ frameRect DESIGNABLE
false)
73 Q_PROPERTY(
double borderRadius READ borderRadius WRITE setBorderRadius)
96 Q_INVOKABLE QPainterPath borderPath(
const QRect&)
const;
101 virtual bool event(QEvent*)
override;
113 virtual void paintEvent(QPaintEvent*)
override;
118 virtual void initializeGL()
override;
122 virtual void paintGL()
override;
126 virtual void resizeGL(
int width,
int height)
override;
136 virtual void clearBackingStore()
override;
Base class of QwtPlotOpenGLCanvas and QwtPlotGLCanvas.
Definition qwt_plot_abstract_canvas.h:115
virtual void invalidateBackingStore()=0
Invalidate the internal backing store.
void replot()
Invalidate the paint cache and repaint the canvas.
Definition qwt_plot_abstract_canvas.cpp:755
An alternative canvas for a QwtPlot derived from QGLWidget.
Definition qwt_plot_glcanvas.h:63
QwtPlotGLCanvas(const QGLFormat &, QwtPlot *=nullptr)
Constructor with QGLFormat.
~QwtPlotGLCanvas() override
Destructor.
A 2-D plotting widget.
Definition qwt_plot.h:100