voidQwtSimpleCompassRose::draw(QPainter*painter,constQPointF¢er,doubleradius,doublenorth,QPalette::ColorGroupcg=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.
voidQwtSimpleCompassRose::drawRose(QPainter*painter,constQPalette&palette,constQPointF¢er,doubleradius,doublenorth,doublewidth,intnumThorns,intnumThornLevels,doubleshrinkFactor)[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
intQwtSimpleCompassRose::numThornLevels()constReturns:
Number of thorn levels
Seealso:setNumThorns(), setNumThornLevels()intQwtSimpleCompassRose::numThorns()constReturns:
Number of thorns
Seealso:setNumThorns(), setNumThornLevels()voidQwtSimpleCompassRose::setNumThornLevels(intnumThornLevels)
Set the of thorns levels
Parameters:numThornLevels Number of thorns levels
Seealso:setNumThorns(), numThornLevels()voidQwtSimpleCompassRose::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:numThorns Number of thorns
Seealso:numThorns(), setNumThornLevels()voidQwtSimpleCompassRose::setShrinkFactor(doublefactor)
Set the Factor how to shrink the thorns with each level The default value is 0.9.
Parameters:factor Shrink factor
Seealso:shrinkFactor()voidQwtSimpleCompassRose::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
doubleQwtSimpleCompassRose::shrinkFactor()constReturns:
Factor how to shrink the thorns with each level
Seealso:setShrinkFactor()doubleQwtSimpleCompassRose::width()constReturns:
Width of the rose
Seealso:setWidth()