|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
An alternative canvas for a QwtPlot derived from QOpenGLWidget. More...
#include <qwt_plot_opengl_canvas.h>
Classes | |
| class | PrivateData |
Public Slots | |
| void | replot () |
| Replot the canvas . | |
Public Member Functions | |
| QwtPlotOpenGLCanvas (QwtPlot *=nullptr) | |
| Constructor . | |
| QwtPlotOpenGLCanvas (const QSurfaceFormat &, QwtPlot *=nullptr) | |
| Constructor with surface format . | |
| virtual | ~QwtPlotOpenGLCanvas () |
| Destructor . | |
| virtual Q_INVOKABLE void | invalidateBackingStore () override |
| Invalidate the backing store . | |
| Q_INVOKABLE QPainterPath | borderPath (const QRect &) const |
| Get the border path . | |
| virtual bool | event (QEvent *) override |
| Handle events . | |
Public Member Functions inherited from QwtPlotAbstractGLCanvas | |
| QwtPlotAbstractGLCanvas (QWidget *canvasWidget) | |
| Paint attributes. | |
| virtual | ~QwtPlotAbstractGLCanvas () |
| Destructor . | |
| void | setPaintAttribute (PaintAttribute, bool on=true) |
| Changing the paint attributes. | |
| bool | testPaintAttribute (PaintAttribute) const |
| Test whether a paint attribute is enabled. | |
| void | setFrameStyle (int style) |
| Set the frame style. | |
| int | frameStyle () const |
| Get the frame style. | |
| void | setFrameShadow (QFrame::Shadow) |
| Set the frame shadow. | |
| QFrame::Shadow | frameShadow () const |
| Get the frame shadow. | |
| void | setFrameShape (QFrame::Shape) |
| Set the frame shape. | |
| QFrame::Shape | frameShape () const |
| Get the frame shape. | |
| void | setLineWidth (int) |
| Set the frame line width. | |
| int | lineWidth () const |
| Get the line width of the frame. | |
| void | setMidLineWidth (int) |
| Set the frame mid line width. | |
| int | midLineWidth () const |
| Get the midline width of the frame. | |
| int | frameWidth () const |
| Get the frame width depending on the style, line width and midline width. | |
| QRect | frameRect () const |
| Get the rectangle where the frame is drawn in. | |
Public Member Functions inherited from QwtPlotAbstractCanvas | |
| QwtPlotAbstractCanvas (QWidget *canvasWidget) | |
| Constructor. | |
| virtual | ~QwtPlotAbstractCanvas () |
| Destructor . | |
| QwtPlot * | plot () |
| Return parent plot widget. | |
| const QwtPlot * | plot () const |
| Return parent plot widget. | |
| void | setFocusIndicator (FocusIndicator) |
| Set the focus indicator. | |
| FocusIndicator | focusIndicator () const |
| Get the focus indicator. | |
| void | setBorderRadius (double) |
| Set the radius for the corners of the border frame. | |
| double | borderRadius () const |
| Get the radius for the corners of the border frame. | |
Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *) override |
| Handle paint events . | |
| virtual void | initializeGL () override |
| Initialize OpenGL . | |
| virtual void | paintGL () override |
| Paint OpenGL . | |
| virtual void | resizeGL (int width, int height) override |
| Resize OpenGL . | |
Protected Member Functions inherited from QwtPlotAbstractGLCanvas | |
| void | replot () |
| Invalidate the paint cache and repaint the canvas. | |
| void | draw (QPainter *) |
| Helper function for the derived plot canvas. | |
Protected Member Functions inherited from QwtPlotAbstractCanvas | |
| QWidget * | canvasWidget () |
| const QWidget * | canvasWidget () const |
| virtual void | drawFocusIndicator (QPainter *) |
| Draw the focus indication. | |
| virtual void | drawBorder (QPainter *) |
| Draw the border of the canvas. | |
| virtual void | drawBackground (QPainter *) |
| Helper function for the derived plot canvas. | |
| void | fillBackground (QPainter *) |
| Helper function for the derived plot canvas. | |
| void | drawCanvas (QPainter *) |
| Draw the plot to the canvas. | |
| void | drawStyled (QPainter *, bool) |
| Helper function for the derived plot canvas. | |
| void | drawUnstyled (QPainter *) |
| Helper function for the derived plot canvas. | |
| QPainterPath | canvasBorderPath (const QRect &rect) const |
| void | updateStyleSheetInfo () |
| Update the cached information about the current style sheet. | |
Properties | |
| QFrame::Shadow | frameShadow |
| QFrame::Shape | frameShape |
| int | lineWidth |
| int | midLineWidth |
| int | frameWidth |
| QRect | frameRect |
| double | borderRadius |
Additional Inherited Members | |
Public Types inherited from QwtPlotAbstractGLCanvas | |
| enum | PaintAttribute { BackingStore = 1 , ImmediatePaint = 8 } |
| Paint attributes. More... | |
Public Types inherited from QwtPlotAbstractCanvas | |
| enum | FocusIndicator { NoFocusIndicator , CanvasFocusIndicator , ItemFocusIndicator } |
| Focus indicator. More... | |
An alternative canvas for a QwtPlot derived from QOpenGLWidget.
|
explicit |
Constructor .
Constructor.
|
explicit |
Constructor with surface format .
Constructor.
|
virtual |
Destructor .
Destructor
.
| QPainterPath QwtPlotOpenGLCanvas::borderPath | ( | const QRect & | rect | ) | const |
Get the border path .
Calculate the painter path for a styled or rounded border.
|
overridevirtual |
Handle events .
Qt event handler for QEvent::PolishRequest and QEvent::StyleChange.
|
overrideprotectedvirtual |
Initialize OpenGL .
No operation - reserved for some potential use in the future.
|
overridevirtual |
Invalidate the backing store .
Invalidate the internal backing store
.
Implements QwtPlotAbstractGLCanvas.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Paint OpenGL .
Paint the plot.
|
slot |
Replot the canvas .
Invalidate the paint cache and repaint the canvas.
|
overrideprotectedvirtual |
Resize OpenGL .
No operation - reserved for some potential use in the future.