A simple rose for QwtCompass.
More...
#include <qwt_compass_rose.h>
A simple rose for QwtCompass.
◆ QwtSimpleCompassRose()
| QwtSimpleCompassRose::QwtSimpleCompassRose |
( |
int |
numThorns = 8, |
|
|
int |
numThornLevels = -1 |
|
) |
| |
◆ ~QwtSimpleCompassRose()
| QwtSimpleCompassRose::~QwtSimpleCompassRose |
( |
| ) |
|
|
virtual |
◆ draw()
| void QwtSimpleCompassRose::draw |
( |
QPainter * |
painter, |
|
|
const QPointF & |
center, |
|
|
double |
radius, |
|
|
double |
north, |
|
|
QPalette::ColorGroup |
cg = QPalette::Active |
|
) |
| const |
|
overridevirtual |
◆ 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 |
Static helper to draw a rose with specified parameters.
◆ numThornLevels()
| int QwtSimpleCompassRose::numThornLevels |
( |
| ) |
const |
◆ numThorns()
| int QwtSimpleCompassRose::numThorns |
( |
| ) |
const |
◆ setNumThornLevels()
| void QwtSimpleCompassRose::setNumThornLevels |
( |
int |
numThornLevels | ) |
|
Set the number of thorn levels.
◆ setNumThorns()
| void QwtSimpleCompassRose::setNumThorns |
( |
int |
numThorns | ) |
|
Set the number of thorns on one level.
◆ setShrinkFactor()
| void QwtSimpleCompassRose::setShrinkFactor |
( |
double |
factor | ) |
|
Set the shrink factor for thorns with each level.
◆ setWidth()
| void QwtSimpleCompassRose::setWidth |
( |
double |
width | ) |
|
Set the width of the rose heads.
◆ shrinkFactor()
| double QwtSimpleCompassRose::shrinkFactor |
( |
| ) |
const |
Get the shrink factor for thorns with each level.
- Returns
- Shrink factor
- See also
- setShrinkFactor()
◆ width()
| double QwtSimpleCompassRose::width |
( |
| ) |
const |
Get the width of the rose heads.
- Returns
- Width of the rose heads
- See also
- setWidth()
The documentation for this class was generated from the following files:
- /home/runner/work/QWT/QWT/src/plot/qwt_compass_rose.h
- /home/runner/work/QWT/QWT/src/plot/qwt_compass_rose.cpp