Qwt Polar User's Guide
0.1.0
|
#include <qwt_polar_canvas.h>
Public Types | |
enum | PaintAttribute { PaintCached = 1 } |
Public Member Functions | |
QwtPolarCanvas (QwtPolarPlot *) | |
virtual | ~QwtPolarCanvas () |
QwtPolarPlot * | plot () |
const QwtPolarPlot * | plot () const |
void | setPaintAttribute (PaintAttribute, bool on=true) |
bool | testPaintAttribute (PaintAttribute) const |
QPixmap * | paintCache () |
const QPixmap * | paintCache () const |
void | invalidatePaintCache () |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *) |
virtual void | resizeEvent (QResizeEvent *) |
virtual void | drawContents (QPainter *) |
void | drawCanvas (QPainter *, const QwtDoubleRect &) |
Protected Attributes | |
PrivateData * | d_data |
Canvas of a QwtPolarPlot.
The canvas is the widget, where all polar items are painted to.
Paint attributes.
The default setting enables PaintCached
|
explicit |
Constructor.
|
virtual |
Destructor.
|
protected |
Draw the the canvas
Paints all plot items to the canvasRect, using QwtPolarPlot::drawCanvas and updates the paint cache.
|
protectedvirtual |
Redraw the canvas.
void QwtPolarCanvas::invalidatePaintCache | ( | ) |
Invalidate the internal paint cache.
QPixmap * QwtPolarCanvas::paintCache | ( | ) |
Return the paint cache, might be null.
const QPixmap * QwtPolarCanvas::paintCache | ( | ) | const |
Return the paint cache, might be null.
|
protectedvirtual |
Paint event.
QwtPolarPlot * QwtPolarCanvas::plot | ( | ) |
Return parent plot widget.
const QwtPolarPlot * QwtPolarCanvas::plot | ( | ) | const |
Return parent plot widget.
|
protectedvirtual |
Resize event.
void QwtPolarCanvas::setPaintAttribute | ( | PaintAttribute | attribute, |
bool | on = true |
||
) |
Changing the paint attributes.
attribute | Paint attribute |
on | On/Off |
The default setting enables PaintCached
bool QwtPolarCanvas::testPaintAttribute | ( | PaintAttribute | attribute | ) | const |
Test wether a paint attribute is enabled
attribute | Paint attribute |