Canvas of a QwtPolarPlot. More...
#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
| QwtPolarCanvas::QwtPolarCanvas | ( | QwtPolarPlot * | plot | ) | [explicit] |
Constructor.
| QwtPolarCanvas::~QwtPolarCanvas | ( | ) | [virtual] |
Destructor.
| void QwtPolarCanvas::drawCanvas | ( | QPainter * | painter, | |
| const QwtDoubleRect & | canvasRect | |||
| ) | [protected] |
Draw the the canvas
Paints all plot items to the canvasRect, using QwtPolarPlot::drawCanvas and updates the paint cache.
| void QwtPolarCanvas::drawContents | ( | QPainter * | painter | ) | [protected, virtual] |
Redraw the canvas.
| void QwtPolarCanvas::invalidatePaintCache | ( | ) |
Invalidate the internal paint cache.
| const QPixmap * QwtPolarCanvas::paintCache | ( | ) | const |
Return the paint cache, might be null.
| QPixmap * QwtPolarCanvas::paintCache | ( | ) |
Return the paint cache, might be null.
| void QwtPolarCanvas::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
Paint event.
| const QwtPolarPlot * QwtPolarCanvas::plot | ( | ) | const |
Return parent plot widget.
| QwtPolarPlot * QwtPolarCanvas::plot | ( | ) |
Return parent plot widget.
| void QwtPolarCanvas::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
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 |
1.6.1