27#ifndef QWT_ROUND_SCALE_DRAW_H
28#define QWT_ROUND_SCALE_DRAW_H
30#include "qwt_global.h"
31#include "qwt_abstract_scale_draw.h"
54 void setRadius(
double radius );
55 double radius()
const;
57 void moveCenter(
double x,
double y );
58 void moveCenter(
const QPointF& );
59 QPointF center()
const;
61 void setAngleRange(
double angle1,
double angle2 );
63 virtual double extent(
const QFont& )
const QWT_OVERRIDE;
67 double value,
double len )
const QWT_OVERRIDE;
70 QPainter* )
const QWT_OVERRIDE;
73 QPainter*,
double value )
const QWT_OVERRIDE;
A abstract base class for drawing scales.
Definition qwt_abstract_scale_draw.h:49
virtual void drawBackbone(QPainter *painter) const =0
Draws the baseline of the scale.
virtual void drawTick(QPainter *painter, double value, double len) const =0
Draw a tick.
virtual double extent(const QFont &font) const =0
Calculate the extent.
virtual void drawLabel(QPainter *painter, double value) const =0
Draws the label for a major scale tick.
A class for drawing round scales.
Definition qwt_round_scale_draw.h:49
void moveCenter(double x, double y)
Move the center of the scale draw, leaving the radius unchanged.
Definition qwt_round_scale_draw.h:81