10 #ifndef QWT_ROUND_SCALE_DRAW_H 11 #define QWT_ROUND_SCALE_DRAW_H 36 void setRadius(
double radius );
37 double radius()
const;
39 void moveCenter(
double x,
double y );
40 void moveCenter(
const QPointF & );
41 QPointF center()
const;
43 void setAngleRange(
double angle1,
double angle2 );
45 virtual double extent(
const QFont & )
const;
48 virtual void drawTick( QPainter *,
double val,
double len )
const;
50 virtual void drawLabel( QPainter *,
double val )
const;
60 moveCenter( QPointF( x, y ) );
A abstract base class for drawing scales.
virtual void drawBackbone(QPainter *painter) const =0
virtual void drawTick(QPainter *painter, double value, double len) const =0
virtual void drawLabel(QPainter *painter, double value) const =0
TFSIMD_FORCE_INLINE const tfScalar & y() const
void moveCenter(double x, double y)
Move the center of the scale draw, leaving the radius unchanged.
TFSIMD_FORCE_INLINE const tfScalar & x() const
A class for drawing round scales.
virtual double extent(const QFont &font) const =0