QwtRoundScaleDraw
A class for drawing round scales.
- Provided by: libqwt-doc (Version: 6.0.0-1.2)
- Source: qwt
- Report a bug
A class for drawing round scales.
#include <qwt_round_scale_draw.h>
Inherits QwtAbstractScaleDraw.
Inherited by QwtDialScaleDraw.
QwtRoundScaleDraw ()
virtual ~QwtRoundScaleDraw ()
void setRadius (int radius)
int radius () const
void moveCenter (double x, double y)
void moveCenter (const QPointF &)
QPointF center () const
void setAngleRange (double angle1, double angle2)
virtual double extent (const QFont &) const
virtual void drawTick (QPainter *p, double val, double len)
const
virtual void drawBackbone (QPainter *p) const
virtual void drawLabel (QPainter *p, double val) const
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.
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].
Destructor.
Get the center of the scale.
Parameters:
See also:
Implements QwtAbstractScaleDraw.
Parameters:
See also:
Implements QwtAbstractScaleDraw.
Parameters:
See also:
Implements QwtAbstractScaleDraw.
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:
See also:
Warning:
Implements QwtAbstractScaleDraw.
Move the center of the scale draw, leaving the radius unchanged.
Parameters:
See also:
Radius is the radius of the backbone without ticks and labels.
See also:
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:
Warning:
Radius is the radius of the backbone without ticks and labels.
Parameters:
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.