Public Types | |
enum | Attribute { AtomicPainter = 1, FullRepaint = 2 } |
Public Member Functions | |
QwtPlotDirectPainter (QObject *parent=NULL) | |
void | setAttribute (Attribute, bool on) |
bool | testAttribute (Attribute) const |
void | drawSeries (QwtPlotAbstractSeriesItem *, int from, int to) |
void | reset () |
virtual bool | eventFilter (QObject *, QEvent *) |
void QwtPlotDirectPainter::drawSeries | ( | QwtPlotAbstractSeriesItem * | seriesItem, | |
int | from, | |||
int | to | |||
) |
Draw a set of points of a seriesItem.
When observing an measurement while it is running, new points have to be added to an existing seriesItem. drawSeries can be used to display them avoiding a complete redraw of the canvas.
Setting plot()->canvas()->setAttribute(Qt::WA_PaintOutsidePaintEvent, true); will result in faster painting, if the paint engine of the canvas widget supports this feature.
from | Index of the first point to be painted | |
to | Index of the last point to be painted. If to < 0 the series will be painted to its last point. |