A simple rose for QwtCompass. More...
#include <qwt_compass_rose.h>

Classes | |
| class | PrivateData |
Public Member Functions | |
| virtual void | draw (QPainter *, const QPointF ¢er, double radius, double north, QPalette::ColorGroup=QPalette::Active) const |
| int | numThornLevels () const |
| int | numThorns () const |
| QwtSimpleCompassRose (int numThorns=8, int numThornLevels=-1) | |
| void | setNumThornLevels (int count) |
| void | setNumThorns (int count) |
| void | setShrinkFactor (double factor) |
| void | setWidth (double w) |
| double | shrinkFactor () const |
| double | width () const |
| virtual | ~QwtSimpleCompassRose () |
| Destructor. | |
Static Public Member Functions | |
| static void | drawRose (QPainter *, const QPalette &, const QPointF ¢er, double radius, double origin, double width, int numThorns, int numThornLevels, double shrinkFactor) |
Private Attributes | |
| PrivateData * | d_data |
A simple rose for QwtCompass.
Definition at line 52 of file qwt_compass_rose.h.
| QwtSimpleCompassRose::QwtSimpleCompassRose | ( | int | numThorns = 8, |
| int | numThornLevels = -1 |
||
| ) |
Constructor
| numThorns | Number of thorns |
| numThornLevels | Number of thorn levels |
Definition at line 73 of file qwt_compass_rose.cpp.
| QwtSimpleCompassRose::~QwtSimpleCompassRose | ( | ) | [virtual] |
Destructor.
Definition at line 91 of file qwt_compass_rose.cpp.
| void QwtSimpleCompassRose::draw | ( | QPainter * | painter, |
| const QPointF & | center, | ||
| double | radius, | ||
| double | north, | ||
| QPalette::ColorGroup | cg = QPalette::Active |
||
| ) | const [virtual] |
Draw the rose
| painter | Painter |
| center | Center point |
| radius | Radius of the rose |
| north | Position |
| cg | Color group |
Implements QwtCompassRose.
Definition at line 126 of file qwt_compass_rose.cpp.
| void QwtSimpleCompassRose::drawRose | ( | QPainter * | painter, |
| const QPalette & | palette, | ||
| const QPointF & | center, | ||
| double | radius, | ||
| double | north, | ||
| double | width, | ||
| int | numThorns, | ||
| int | numThornLevels, | ||
| double | shrinkFactor | ||
| ) | [static] |
Draw the rose
| painter | Painter |
| palette | Palette |
| center | Center of the rose |
| radius | Radius of the rose |
| north | Position pointing to north |
| width | Width of the rose |
| numThorns | Number of thorns |
| numThornLevels | Number of thorn levels |
| shrinkFactor | Factor to shrink the thorns with each level |
Definition at line 149 of file qwt_compass_rose.cpp.
| int QwtSimpleCompassRose::numThornLevels | ( | ) | const |
Definition at line 288 of file qwt_compass_rose.cpp.
| int QwtSimpleCompassRose::numThorns | ( | ) | const |
Definition at line 268 of file qwt_compass_rose.cpp.
| void QwtSimpleCompassRose::setNumThornLevels | ( | int | numThornLevels | ) |
Set the of thorns levels
| numThornLevels | Number of thorns levels |
Definition at line 279 of file qwt_compass_rose.cpp.
| void QwtSimpleCompassRose::setNumThorns | ( | int | numThorns | ) |
Set the number of thorns on one level The number is aligned to a multiple of 4, with a minimum of 4
| numThorns | Number of thorns |
Definition at line 253 of file qwt_compass_rose.cpp.
| void QwtSimpleCompassRose::setShrinkFactor | ( | double | factor | ) |
Set the Factor how to shrink the thorns with each level The default value is 0.9.
| factor | Shrink factor |
Definition at line 103 of file qwt_compass_rose.cpp.
| void QwtSimpleCompassRose::setWidth | ( | double | width | ) |
Set the width of the rose heads. Lower value make thinner heads. The range is limited from 0.03 to 0.4.
| width | Width |
Definition at line 227 of file qwt_compass_rose.cpp.
| double QwtSimpleCompassRose::shrinkFactor | ( | ) | const |
Definition at line 112 of file qwt_compass_rose.cpp.
| double QwtSimpleCompassRose::width | ( | ) | const |
PrivateData* QwtSimpleCompassRose::d_data [private] |
Definition at line 78 of file qwt_compass_rose.h.