QwtSimpleCompassRose(3) | Qwt User's Guide | QwtSimpleCompassRose(3) |
NAME¶
QwtSimpleCompassRose -
SYNOPSIS¶
#include <qwt_compass_rose.h>
Inherits QwtCompassRose.
Public Member Functions¶
QwtSimpleCompassRose (int numThorns=8, int
numThornLevels=-1)
virtual void draw (QPainter *, const QPoint ¢er, int radius,
double north, QPalette::ColorGroup=QPalette::Active) const
int numThornLevels () const
int numThorns () const
void setNumThornLevels (int count)
void setNumThorns (int count)
void setShrinkFactor (double factor)
void setWidth (double w)
double shrinkFactor () const
double width () const
Static Public Member Functions¶
static void drawRose (QPainter *, const QPalette &,
const QPoint ¢er, int radius, double origin, double width,
int numThorns, int numThornLevels, double shrinkFactor)
Detailed Description¶
A simple rose for QwtCompass.
Constructor & Destructor Documentation¶
QwtSimpleCompassRose::QwtSimpleCompassRose (intnumThorns = 8, intnumThornLevels = -1)¶
Constructor
Parameters:
numThornLevels Number of thorn levels
Member Function Documentation¶
void QwtSimpleCompassRose::draw (QPainter *painter, const QPoint ¢er, intradius, doublenorth, QPalette::ColorGroupcg = QPalette::Active) const [virtual]¶
Draw the rose
Parameters:
center Center point
radius Radius of the rose
north Position
cg Color group
Implements QwtCompassRose.
void QwtSimpleCompassRose::drawRose (QPainter *painter, const QPalette &palette, const QPoint ¢er, intradius, doublenorth, doublewidth, intnumThorns, intnumThornLevels, doubleshrinkFactor) [static]¶
Draw the rose
Parameters:
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¶
Returns:
See also:
int QwtSimpleCompassRose::numThorns () const¶
Returns:
See also:
void QwtSimpleCompassRose::setNumThornLevels (intnumThornLevels)¶
Set the of thorns levels
Parameters:
See also:
void QwtSimpleCompassRose::setNumThorns (intnumThorns)¶
Set the number of thorns on one level The number is aligned to a multiple of 4, with a minimum of 4
Parameters:
See also:
void QwtSimpleCompassRose::setWidth (doublewidth)¶
Set the width of the rose heads. Lower value make thinner heads. The range is limited from 0.03 to 0.4.
Parameters:
double QwtSimpleCompassRose::width () const [inline]¶
See also:
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 | Version 5.2.3 |