voidQwtRoundScaleDraw::drawBackbone(QPainter*painter)const[protected],[virtual]
Draws the baseline of the scale
Parameters:painter Painter
Seealso:drawTick(), drawLabel()
Implements QwtAbstractScaleDraw.
voidQwtRoundScaleDraw::drawLabel(QPainter*painter,doublevalue)const[protected],[virtual]
Draws the label for a major scale tick
Parameters:painter Painter
value Value
Seealso:drawTick(), drawBackbone()
Implements QwtAbstractScaleDraw.
voidQwtRoundScaleDraw::drawTick(QPainter*painter,doublevalue,doublelen)const[protected],[virtual]
Draw a tick
Parameters:painter Painter
value Value of the tick
len Length of the tick
Seealso:drawBackbone(), drawLabel()
Implements QwtAbstractScaleDraw.
doubleQwtRoundScaleDraw::extent(constQFont&font)const[virtual]
Calculate the extent of the scale
The extent is the distance between the baseline to the outermost pixel of the scale draw. radius() +
extent() is an upper limit for the radius of the bounding circle.
Parameters:font Font used for painting the labels
Returns:
Calculated extent
Seealso:setMinimumExtent(), minimumExtent()Warning:
The implemented algorithm is not too smart and calculates only an upper limit, that might be a few
pixels too large
Implements QwtAbstractScaleDraw.
voidQwtRoundScaleDraw::moveCenter(constQPointF¢er)
Move the center of the scale draw, leaving the radius unchanged
Parameters:center New center
Seealso:setRadius()doubleQwtRoundScaleDraw::radius()const
Get the radius
Radius is the radius of the backbone without ticks and labels.
Returns:
Radius of the scale
Seealso:setRadius(), extent()voidQwtRoundScaleDraw::setAngleRange(doubleangle1,doubleangle2)
Adjust the baseline circle segment for round scales. The baseline will be drawn from min(angle1,angle2)
to max(angle1, angle2). The default setting is [ -135, 135 ]. An angle of 0 degrees corresponds to the 12
o'clock position, and positive angles count in a clockwise direction.
Parameters:angle1angle2 boundaries of the angle interval in degrees.
Warning:
• The angle range is limited to [-360, 360] degrees. Angles exceeding this range will be clipped.
• For angles more or equal than 360 degrees above or below min(angle1, angle2), scale marks will not
be drawn.
• If you need a counterclockwise scale, use QwtScaleDiv::setInterval()voidQwtRoundScaleDraw::setRadius(doubleradius)
Change of radius the scale
Radius is the radius of the backbone without ticks and labels.
Parameters:radius New Radius
Seealso:moveCenter()