QwtSimpleCompassRose (3) - Linux Manuals
NAME
QwtSimpleCompassRose -
SYNOPSIS
#include <qwt_compass_rose.h>
Public Member Functions
QwtSimpleCompassRose (int numThorns=8, int numThornLevels=-1)
virtual ~QwtSimpleCompassRose ()
Destructor. 
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 QPointF ¢er, double radius, double north, QPalette::ColorGroup=QPalette::Active) const 
Static Public Member Functions
static void drawRose (QPainter *, const QPalette &, const QPointF ¢er, double radius, double origin, double width, int numThorns, int numThornLevels, double shrinkFactor)
Detailed Description
Constructor & Destructor Documentation
QwtSimpleCompassRose::QwtSimpleCompassRose (intnumThorns = 8, intnumThornLevels = -1)
ConstructorParameters:
- 
numThorns Number of thorns 
numThornLevels Number of thorn levels 
Member Function Documentation
void QwtSimpleCompassRose::draw (QPainter *painter, const QPointF ¢er, doubleradius, doublenorth, QPalette::ColorGroupcg = QPalette::Active) const [virtual]
Draw the roseParameters:
- 
painter Painter 
center Center point
radius Radius of the rose
north Position
cg Color group 
void QwtSimpleCompassRose::drawRose (QPainter *painter, const QPalette &palette, const QPointF ¢er, doubleradius, doublenorth, doublewidth, intnumThorns, intnumThornLevels, doubleshrinkFactor) [static]
Draw the roseParameters:
- 
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
Returns:
- Number of thorn levels
 
See Also:
- setNumThorns(), setNumThornLevels()
 
int QwtSimpleCompassRose::numThorns () const
Returns:
- Number of thorns
 
See Also:
- setNumThorns(), setNumThornLevels()
 
void QwtSimpleCompassRose::setNumThornLevels (intnumThornLevels)
Set the of thorns levelsParameters:
- numThornLevels Number of thorns levels
 
See Also:
- setNumThorns(), numThornLevels()
 
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 4Parameters:
- numThorns Number of thorns
 
See Also:
- numThorns(), setNumThornLevels()
 
void QwtSimpleCompassRose::setShrinkFactor (doublefactor)
Set the Factor how to shrink the thorns with each level The default value is 0.9.Parameters:
- factor Shrink factor
 
See Also:
- shrinkFactor()
 
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:
- width Width
 
double QwtSimpleCompassRose::shrinkFactor () const
Returns:
- Factor how to shrink the thorns with each level
 
See Also:
- setShrinkFactor()
 
double QwtSimpleCompassRose::width () const
Returns:
- Width of the rose
 
See Also:
- setWidth()
 
Author
Generated automatically by Doxygen for Qwt User's Guide from the source code.