|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
Painter object trying to paint incrementally. More...
#include <qwt_plot_directpainter.h>
Classes | |
| class | PrivateData |
Public Types | |
| enum | Attribute { AtomicPainter = 0x01 , FullRepaint = 0x02 , CopyBackingStore = 0x04 } |
| Paint attributes. More... | |
Public Member Functions | |
| QwtPlotDirectPainter (QObject *parent=nullptr) | |
| Constructor . | |
| virtual | ~QwtPlotDirectPainter () |
| Destructor . | |
| void | setAttribute (Attribute, bool on) |
| Set attribute . | |
| bool | testAttribute (Attribute) const |
| Test attribute . | |
| void | setClipping (bool) |
| Set clipping . | |
| bool | hasClipping () const |
| Check if clipping is enabled . | |
| void | setClipRegion (const QRegion &) |
| Set clip region . | |
| QRegion | clipRegion () const |
| Get clip region . | |
| void | drawSeries (QwtPlotSeriesItem *, int from, int to) |
| Draw series . | |
| void | reset () |
| Reset the painter . | |
| virtual bool | eventFilter (QObject *, QEvent *) override |
| Event filter . | |
Painter object trying to paint incrementally.
Paint attributes.
| Enumerator | |
|---|---|
| AtomicPainter | Initializing a QPainter is an expensive operation. When AtomicPainter is set each call of drawSeries() opens/closes a temporary QPainter. Otherwise QwtPlotDirectPainter tries to use the same QPainter as long as possible. |
| FullRepaint | When FullRepaint is set the plot canvas is explicitly repainted after the samples have been rendered. |
| CopyBackingStore | When QwtPlotCanvas::BackingStore is enabled the painter has to paint to the backing store and the widget. In certain situations/environments it might be faster to paint to the backing store only and then copy the backing store to the canvas. This flag can also be useful for settings, where Qt fills the the clip region with the widget background. |
|
explicit |
Constructor .
Constructor.
|
virtual |
Destructor .
Destructor
.
| QRegion QwtPlotDirectPainter::clipRegion | ( | ) | const |
Get clip region .
Get the currently set clip region.
| void QwtPlotDirectPainter::drawSeries | ( | QwtPlotSeriesItem * | seriesItem, |
| int | from, | ||
| int | to | ||
| ) |
Draw series .
Draw a set of points of a seriesItem.
|
overridevirtual |
Event filter .
Event filter.
| bool QwtPlotDirectPainter::hasClipping | ( | ) | const |
Check if clipping is enabled .
Check if clipping is enabled.
| void QwtPlotDirectPainter::reset | ( | ) |
Reset the painter .
Close the internal QPainter
.
| void QwtPlotDirectPainter::setAttribute | ( | Attribute | attribute, |
| bool | on | ||
| ) |
Set attribute .
Change an attribute.
| void QwtPlotDirectPainter::setClipping | ( | bool | enable | ) |
Set clipping .
Enable or disable clipping.
| void QwtPlotDirectPainter::setClipRegion | ( | const QRegion & | region | ) |
Set clip region .
Assign a clip region and enable clipping.
| bool QwtPlotDirectPainter::testAttribute | ( | Attribute | attribute | ) | const |
Test attribute .
Test an attribute.