A simple rose for QwtCompass.
More...
#include <qwt_compass_rose.h>
A simple rose for QwtCompass.
Definition at line 52 of file qwt_compass_rose.h.
QwtSimpleCompassRose::QwtSimpleCompassRose |
( |
int |
numThorns = 8 , |
|
|
int |
numThornLevels = -1 |
|
) |
| |
Constructor
- Parameters
-
numThorns | Number of thorns |
numThornLevels | Number of thorn levels |
Definition at line 73 of file qwt_compass_rose.cpp.
QwtSimpleCompassRose::~QwtSimpleCompassRose |
( |
| ) |
|
|
virtual |
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.
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
- 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 |
Definition at line 149 of file qwt_compass_rose.cpp.
int QwtSimpleCompassRose::numThornLevels |
( |
| ) |
const |
int QwtSimpleCompassRose::numThorns |
( |
| ) |
const |
void QwtSimpleCompassRose::setNumThornLevels |
( |
int |
numThornLevels | ) |
|
void QwtSimpleCompassRose::setNumThorns |
( |
int |
numThorns | ) |
|
void QwtSimpleCompassRose::setShrinkFactor |
( |
double |
factor | ) |
|
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
-
Definition at line 227 of file qwt_compass_rose.cpp.
double QwtSimpleCompassRose::shrinkFactor |
( |
| ) |
const |
double QwtSimpleCompassRose::width |
( |
| ) |
const |
The documentation for this class was generated from the following files: