27#ifndef QWT_SCALE_DRAW_H
28#define QWT_SCALE_DRAW_H
30#include "qwt_global.h"
31#include "qwt_abstract_scale_draw.h"
77 void getBorderDistHint(
const QFont&,
int& start,
int& end)
const;
79 int minLabelDist(
const QFont&)
const;
82 int minLength(
const QFont&)
const;
83 virtual double extent(
const QFont&)
const override;
85 void move(
double x,
double y);
86 void move(
const QPointF&);
87 void setLength(
double length);
90 Alignment alignment()
const;
92 void setAlignment(Alignment);
95 Qt::Orientation orientation()
const;
100 double length()
const;
103 void setLabelAlignment(Qt::Alignment);
105 Qt::Alignment labelAlignment()
const;
108 void setLabelRotation(
double rotation);
110 double labelRotation()
const;
113 int maxLabelHeight(
const QFont&)
const;
115 int maxLabelWidth(
const QFont&)
const;
118 QPointF labelPosition(
double value)
const;
121 QRectF labelRect(
const QFont&,
double value)
const;
123 QSizeF labelSize(
const QFont&,
double value)
const;
126 QRect boundingLabelRect(
const QFont&,
double value)
const;
129 QTransform labelTransformation(
const QPointF&,
const QSizeF&)
const;
131 virtual void drawTick(QPainter*,
double value,
double len)
const override;
133 virtual void drawBackbone(QPainter*)
const override;
134 virtual void drawLabel(QPainter*,
double value)
const override;
An abstract base class for drawing scales
Definition qwt_abstract_scale_draw.h:47
A class for drawing scales
Definition qwt_scale_draw.h:52
void move(double x, double y)
Move the position of the scale
Definition qwt_scale_draw.h:148
Alignment
Alignment of the scale draw
Definition qwt_scale_draw.h:59
@ BottomScale
The scale is below
Definition qwt_scale_draw.h:61
@ TopScale
The scale is above
Definition qwt_scale_draw.h:64
@ LeftScale
The scale is left
Definition qwt_scale_draw.h:67