QwtPlotDirectPainter(3) | Qwt User's Guide | QwtPlotDirectPainter(3) |
QwtPlotDirectPainter - Painter object trying to paint incrementally.
#include <qwt_plot_directpainter.h>
Inherits QObject.
enum Attribute { AtomicPainter = 0x01,
FullRepaint = 0x02, CopyBackingStore = 0x04 }
Paint attributes. typedef QFlags< Attribute > Attributes
Paint attributes.
QwtPlotDirectPainter (QObject *parent=NULL)
Constructor. virtual ~QwtPlotDirectPainter ()
Destructor. void setAttribute (Attribute, bool on)
bool testAttribute (Attribute) const
void setClipping (bool)
bool hasClipping () const
void setClipRegion (const QRegion &)
Assign a clip region and enable clipping. QRegion clipRegion () const
void drawSeries (QwtPlotSeriesItem *, int from, int to)
Draw a set of points of a seriesItem. void reset ()
Close the internal QPainter. virtual bool eventFilter (QObject *,
QEvent *)
Event filter.
Painter object trying to paint incrementally.
Often applications want to display samples while they are collected. When there are too many samples complete replots will be expensive to be processed in a collection cycle.
QwtPlotDirectPainter offers an API to paint subsets ( f.e all additions points ) without erasing/repainting the plot canvas.
On certain environments it might be important to calculate a proper clip region before painting. F.e. for Qt Embedded only the clipped part of the backing store will be copied to a ( maybe unaccelerated ) frame buffer.
Warning:
Paint attributes.
See also:
Enumerator
Returns:
See also:
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.
Parameters:
Returns:
See also:
Change an attribute
Parameters:
See also:
En/Disables clipping
Parameters:
See also:
Assign a clip region and enable clipping. Depending on the environment setting a proper clip region might improve the performance heavily. F.e. on Qt embedded only the clipped part of the backing store will be copied to a ( maybe unaccelerated ) frame buffer device.
Parameters:
See also:
Returns:
Parameters:
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |