| Qwt User's Guide
    5.2.3
    | 
#include <qwt_round_scale_draw.h>

| Protected Member Functions | |
| virtual void | drawBackbone (QPainter *p) const | 
| virtual void | drawLabel (QPainter *p, double val) const | 
| virtual void | drawTick (QPainter *p, double val, int len) const | 
|  Protected Member Functions inherited from QwtAbstractScaleDraw | |
| void | invalidateCache () | 
| const QwtText & | tickLabel (const QFont &, double value) const | 
| Additional Inherited Members | |
|  Public Types inherited from QwtAbstractScaleDraw | |
| enum | ScaleComponent { Backbone = 1, Ticks = 2, Labels = 4 } | 
A class for drawing round scales.
QwtRoundScaleDraw can be used to draw round scales. The circle segment can be adjusted by QwtRoundScaleDraw::setAngleRange(). The geometry of the scale can be specified with QwtRoundScaleDraw::moveCenter() and QwtRoundScaleDraw::setRadius().
After a scale division has been specified as a QwtScaleDiv object using QwtAbstractScaleDraw::setScaleDiv(const QwtScaleDiv &s), the scale can be drawn with the QwtAbstractScaleDraw::draw() member.
| QwtRoundScaleDraw::QwtRoundScaleDraw | ( | ) | 
Constructor.
The range of the scale is initialized to [0, 100], The center is set to (50, 50) with a radius of 50. The angle range is set to [-135, 135].
| 
 | protectedvirtual | 
Draws the baseline of the scale
| painter | Painter | 
Implements QwtAbstractScaleDraw.
| 
 | protectedvirtual | 
Draws the label for a major scale tick
| painter | Painter | 
| value | Value | 
Implements QwtAbstractScaleDraw.
| 
 | protectedvirtual | 
Draw a tick
| painter | Painter | 
| value | Value of the tick | 
| len | Lenght of the tick | 
Implements QwtAbstractScaleDraw.
| 
 | virtual | 
Calculate the extent of the scale
The extent is the distcance between the baseline to the outermost pixel of the scale draw. radius() + extent() is an upper limit for the radius of the bounding circle.
| pen | Pen that is used for painting backbone and ticks | 
| font | Font used for painting the labels | 
Implements QwtAbstractScaleDraw.
| void QwtRoundScaleDraw::moveCenter | ( | const QPoint & | center | ) | 
Move the center of the scale draw, leaving the radius unchanged
| center | New center | 
| int QwtRoundScaleDraw::radius | ( | ) | const | 
Get the radius
Radius is the radius of the backbone without ticks and labels.
| void QwtRoundScaleDraw::setAngleRange | ( | double | angle1, | 
| double | angle2 | ||
| ) | 
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.
| angle1 | |
| angle2 | boundaries of the angle interval in degrees. | 
| void QwtRoundScaleDraw::setRadius | ( | int | radius | ) | 
Change of radius the scale
Radius is the radius of the backbone without ticks and labels.
| radius | New Radius | 
 1.8.1
 1.8.1