Base class of QwtPlotOpenGLCanvas and QwtPlotGLCanvas.
More...
#include <qwt_plot_abstract_canvas.h>
|
| void | replot () |
| | Invalidate the paint cache and repaint the canvas.
|
| |
|
void | draw (QPainter *) |
| | Helper function for the derived plot canvas.
|
| |
| 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.
|
| |
◆ PaintAttribute
Paint attributes.
The default setting enables BackingStore and Opaque.
- See also
- setPaintAttribute(), testPaintAttribute()
| Enumerator |
|---|
| BackingStore | Paint double buffered reusing the content of the pixmap buffer when possible.
Using a backing store might improve the performance significantly, when working with widget overlays ( like rubber bands ). Disabling the cache might improve the performance for incremental paints (using QwtPlotDirectPainter ).
- See also
- backingStore(), invalidateBackingStore()
|
| ImmediatePaint | When ImmediatePaint is set replot() calls repaint() instead of update().
- See also
- replot(), QWidget::repaint(), QWidget::update()
|
◆ QwtPlotAbstractGLCanvas()
| QwtPlotAbstractGLCanvas::QwtPlotAbstractGLCanvas |
( |
QWidget * |
canvasWidget | ) |
|
|
explicit |
Paint attributes.
Constructor.
- Parameters
-
| canvasWidget | plot canvas widget |
◆ frameRect()
| QRect QwtPlotAbstractGLCanvas::frameRect |
( |
| ) |
const |
- Returns
- The rectangle where the frame is drawn in.
◆ frameShadow()
| QFrame::Shadow QwtPlotAbstractGLCanvas::frameShadow |
( |
| ) |
const |
◆ frameShape()
| QFrame::Shape QwtPlotAbstractGLCanvas::frameShape |
( |
| ) |
const |
◆ frameStyle()
| int QwtPlotAbstractGLCanvas::frameStyle |
( |
| ) |
const |
◆ frameWidth()
| int QwtPlotAbstractGLCanvas::frameWidth |
( |
| ) |
const |
- Returns
- Frame width depending on the style, line width and midline width.
◆ invalidateBackingStore()
| virtual void QwtPlotAbstractGLCanvas::invalidateBackingStore |
( |
| ) |
|
|
pure virtual |
◆ lineWidth()
| int QwtPlotAbstractGLCanvas::lineWidth |
( |
| ) |
const |
◆ midLineWidth()
| int QwtPlotAbstractGLCanvas::midLineWidth |
( |
| ) |
const |
◆ replot()
| void QwtPlotAbstractGLCanvas::replot |
( |
| ) |
|
|
protected |
Invalidate the paint cache and repaint the canvas.
- See also
- invalidatePaintCache()
◆ setFrameShadow()
| void QwtPlotAbstractGLCanvas::setFrameShadow |
( |
QFrame::Shadow |
shadow | ) |
|
◆ setFrameShape()
| void QwtPlotAbstractGLCanvas::setFrameShape |
( |
QFrame::Shape |
shape | ) |
|
◆ setFrameStyle()
| void QwtPlotAbstractGLCanvas::setFrameStyle |
( |
int |
style | ) |
|
◆ setLineWidth()
| void QwtPlotAbstractGLCanvas::setLineWidth |
( |
int |
width | ) |
|
Set the frame line width.
The default line width is 2 pixels.
- Parameters
-
| width | Line width of the frame |
- See also
- lineWidth(), setMidLineWidth()
◆ setMidLineWidth()
| void QwtPlotAbstractGLCanvas::setMidLineWidth |
( |
int |
width | ) |
|
Set the frame mid line width.
The default midline width is 0 pixels.
- Parameters
-
| width | Midline width of the frame |
- See also
- midLineWidth(), setLineWidth()
◆ setPaintAttribute()
| void QwtPlotAbstractGLCanvas::setPaintAttribute |
( |
PaintAttribute |
attribute, |
|
|
bool |
on = true |
|
) |
| |
Changing the paint attributes.
- Parameters
-
| attribute | Paint attribute |
| on | On/Off |
- See also
- testPaintAttribute()
◆ testPaintAttribute()
| bool QwtPlotAbstractGLCanvas::testPaintAttribute |
( |
PaintAttribute |
attribute | ) |
const |
Test whether a paint attribute is enabled.
- Parameters
-
- Returns
- true, when attribute is enabled
- See also
- setPaintAttribute()
The documentation for this class was generated from the following files: