Canvas of a QwtPolarPlot. More...
#include <qwt_polar_canvas.h>
Public Types | |
enum | PaintAttribute { BackingStore = 0x01 } |
Paint attributes. More... | |
typedef QFlags< PaintAttribute > | PaintAttributes |
Paint attributes. | |
Public Member Functions | |
QwtPolarCanvas (QwtPolarPlot *) | |
Constructor. | |
virtual | ~QwtPolarCanvas () |
Destructor. | |
QwtPolarPlot * | plot () |
const QwtPolarPlot * | plot () const |
void | setPaintAttribute (PaintAttribute, bool on=true) |
Changing the paint attributes. More... | |
bool | testPaintAttribute (PaintAttribute) const |
const QPixmap * | backingStore () const |
void | invalidateBackingStore () |
Invalidate the internal backing store. | |
QwtPointPolar | invTransform (const QPoint &) const |
QPoint | transform (const QwtPointPolar &) const |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *) |
virtual void | resizeEvent (QResizeEvent *) |
Canvas of a QwtPolarPlot.
The canvas is the widget, where all polar items are painted to.
const QPixmap * QwtPolarCanvas::backingStore | ( | ) | const |
QwtPointPolar QwtPolarCanvas::invTransform | ( | const QPoint & | pos | ) | const |
Translate a point from widget into plot coordinates
pos | Point in widget coordinates of the plot canvas |
|
protectedvirtual |
Paint event
event | Paint event |
QwtPolarPlot * QwtPolarCanvas::plot | ( | ) |
const QwtPolarPlot * QwtPolarCanvas::plot | ( | ) | const |
|
protectedvirtual |
Resize event
event | Resize event |
void QwtPolarCanvas::setPaintAttribute | ( | PaintAttribute | attribute, |
bool | on = true |
||
) |
Changing the paint attributes.
attribute | Paint attribute |
on | On/Off |
The default setting enables BackingStore
bool QwtPolarCanvas::testPaintAttribute | ( | PaintAttribute | attribute | ) | const |
Test wether a paint attribute is enabled
attribute | Paint attribute |
QPoint QwtPolarCanvas::transform | ( | const QwtPointPolar & | polarPos | ) | const |
Translate a point from plot into widget coordinates
polarPos | Point in plot coordinates |