A simple rose for QwtCompass.
Más...
#include <qwt_compass_rose.h>
Lista de todos los miembros.
Métodos públicos |
| QwtSimpleCompassRose (int numThorns=8, int numThornLevels=-1) |
void | setWidth (double w) |
double | width () const |
void | setNumThorns (int count) |
int | numThorns () const |
void | setNumThornLevels (int count) |
int | numThornLevels () const |
void | setShrinkFactor (double factor) |
double | shrinkFactor () const |
virtual void | draw (QPainter *, const QPoint ¢er, int radius, double north, QPalette::ColorGroup=QPalette::Active) const |
Métodos públicos estáticos |
static void | drawRose (QPainter *, const QColorGroup &, const QPoint ¢er, int radius, double origin, double width, int numThorns, int numThornLevels, double shrinkFactor) |
Descripción detallada
A simple rose for QwtCompass.
Documentación del constructor y destructor
QwtSimpleCompassRose::QwtSimpleCompassRose |
( |
int |
numThorns = 8 , |
|
|
int |
numThornLevels = -1 |
|
) |
| |
Constructor
- Parámetros:
-
numThorns | Number of thorns |
numThornLevels | Number of thorn levels |
Documentación de las funciones miembro
Draw the rose
- Parámetros:
-
painter | Painter |
center | Center point |
radius | Radius of the rose |
north | Position |
cg | Color group |
Implementa QwtCompassRose.
void QwtSimpleCompassRose::drawRose |
( |
QPainter * |
painter, |
|
|
const QColorGroup & |
cg, |
|
|
const QPoint & |
center, |
|
|
int |
radius, |
|
|
double |
north, |
|
|
double |
width, |
|
|
int |
numThorns, |
|
|
int |
numThornLevels, |
|
|
double |
shrinkFactor |
|
) |
| [static] |
Draw the rose
- Parámetros:
-
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 |
int QwtSimpleCompassRose::numThornLevels |
( |
| ) |
const |
int QwtSimpleCompassRose::numThorns |
( |
| ) |
const |
void QwtSimpleCompassRose::setNumThornLevels |
( |
int |
numThornLevels | ) |
|
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
- Parámetros:
-
numThorns | Number of thorns |
- Ver también:
- numThorns(), setNumThornLevels()
void QwtSimpleCompassRose::setShrinkFactor |
( |
double |
factor | ) |
[inline] |
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.
- Parámetros:
-
double QwtSimpleCompassRose::shrinkFactor |
( |
| ) |
const [inline] |
double QwtSimpleCompassRose::width |
( |
| ) |
const [inline] |
La documentación para esta clase fue generada a partir de los siguientes ficheros: