A simple rose for QwtCompass.
More...
#include <qwt_compass_rose.h>
|
| | QwtSimpleCompassRose (int numThorns=8, int numThornLevels=-1) |
| | Constructor.
|
| |
|
virtual | ~QwtSimpleCompassRose () |
| | Destructor.
|
| |
| void | setWidth (double) |
| | Set the width of the rose heads.
|
| |
| double | width () const |
| |
| void | setNumThorns (int) |
| | Set the number of thorns on one level The number is aligned to a multiple of 4, with a minimum of 4.
|
| |
| int | numThorns () const |
| |
| void | setNumThornLevels (int) |
| | Set the of thorns levels.
|
| |
| int | numThornLevels () const |
| |
| void | setShrinkFactor (double factor) |
| | Set the Factor how to shrink the thorns with each level The default value is 0.9.
|
| |
| double | shrinkFactor () const |
| |
| virtual void | draw (QPainter *, const QPointF ¢er, double radius, double north, QPalette::ColorGroup=QPalette::Active) const QWT_OVERRIDE |
| | Draw the rose.
|
| |
|
| QwtCompassRose () |
| | Constructor.
|
| |
|
virtual | ~QwtCompassRose () |
| | Destructor.
|
| |
|
virtual void | setPalette (const QPalette &) |
| | Assign a palette.
|
| |
| const QPalette & | palette () const |
| |
A simple rose for QwtCompass.
◆ QwtSimpleCompassRose()
| QwtSimpleCompassRose::QwtSimpleCompassRose |
( |
int |
numThorns = 8, |
|
|
int |
numThornLevels = -1 |
|
) |
| |
Constructor.
- Parameters
-
| numThorns | Number of thorns |
| numThornLevels | Number of thorn levels |
◆ draw()
| void QwtSimpleCompassRose::draw |
( |
QPainter * |
painter, |
|
|
const QPointF & |
center, |
|
|
double |
radius, |
|
|
double |
north, |
|
|
QPalette::ColorGroup |
cg = QPalette::Active |
|
) |
| const |
|
virtual |
Draw the rose.
- Parameters
-
| painter | Painter |
| center | Center point |
| radius | Radius of the rose |
| north | Position |
| cg | Color group |
Implements QwtCompassRose.
◆ drawRose()
| 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.
- Parameters
-
| 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 |
◆ numThornLevels()
| int QwtSimpleCompassRose::numThornLevels |
( |
| ) |
const |
◆ numThorns()
| int QwtSimpleCompassRose::numThorns |
( |
| ) |
const |
◆ setNumThornLevels()
| void QwtSimpleCompassRose::setNumThornLevels |
( |
int |
numThornLevels | ) |
|
◆ setNumThorns()
| 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.
- Parameters
-
| numThorns | Number of thorns |
- See also
- numThorns(), setNumThornLevels()
◆ setShrinkFactor()
| void QwtSimpleCompassRose::setShrinkFactor |
( |
double |
factor | ) |
|
Set the Factor how to shrink the thorns with each level The default value is 0.9.
- Parameters
-
- See also
- shrinkFactor()
◆ setWidth()
| 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.
- Parameters
-
◆ shrinkFactor()
| double QwtSimpleCompassRose::shrinkFactor |
( |
| ) |
const |
◆ width()
| double QwtSimpleCompassRose::width |
( |
| ) |
const |
The documentation for this class was generated from the following files:
- /home/runner/work/QWT/QWT/src/qwt_compass_rose.h
- /home/runner/work/QWT/QWT/src/qwt_compass_rose.cpp