Qwt Polar User's Guide
1.0.1
|
#include <qwt_polar_canvas.h>
Public Types | |
enum | PaintAttribute { BackingStore = 0x01 } |
typedef QFlags< PaintAttribute > | PaintAttributes |
Public Member Functions | |
QwtPolarCanvas (QwtPolarPlot *) | |
virtual | ~QwtPolarCanvas () |
QwtPolarPlot * | plot () |
const QwtPolarPlot * | plot () const |
void | setPaintAttribute (PaintAttribute, bool on=true) |
bool | testPaintAttribute (PaintAttribute) const |
const QPixmap * | backingStore () const |
void | invalidateBackingStore () |
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.
typedef QFlags<PaintAttribute> QwtPolarCanvas::PaintAttributes |
Paint attributes.
Paint attributes.
The default setting enables BackingStore
QwtPolarCanvas::QwtPolarCanvas | ( | QwtPolarPlot * | plot | ) | [explicit] |
Constructor.
QwtPolarCanvas::~QwtPolarCanvas | ( | ) | [virtual] |
Destructor.
const QPixmap * QwtPolarCanvas::backingStore | ( | ) | const |
void QwtPolarCanvas::invalidateBackingStore | ( | ) |
Invalidate the internal backing store.
QwtPointPolar QwtPolarCanvas::invTransform | ( | const QPoint & | pos | ) | const |
Translate a point from widget into plot coordinates
pos | Point in widget coordinates of the plot canvas |
void QwtPolarCanvas::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
Paint event
event | Paint event |
QwtPolarPlot * QwtPolarCanvas::plot | ( | ) |
const QwtPolarPlot * QwtPolarCanvas::plot | ( | ) | const |
void QwtPolarCanvas::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
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 |