10#ifndef QWT_PLOT_SCALE_ITEM_H
11#define QWT_PLOT_SCALE_ITEM_H
13#include "qwt_global.h"
14#include "qwt_plot_item.h"
15#include "qwt_scale_draw.h"
51 const double pos = 0.0 );
55 virtual int rtti()
const QWT_OVERRIDE;
60 void setScaleDivFromAxis(
bool on );
61 bool isScaleDivFromAxis()
const;
63 void setPalette(
const QPalette& );
64 QPalette palette()
const;
66 void setFont(
const QFont& );
74 void setPosition(
double pos );
75 double position()
const;
77 void setBorderDistance(
int );
78 int borderDistance()
const;
82 virtual void draw( QPainter*,
84 const QRectF& canvasRect )
const QWT_OVERRIDE;
Base class for items on the plot canvas.
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const =0
Draw the item.
virtual void updateScaleDiv(const QwtScaleDiv &, const QwtScaleDiv &)
Update the item to changes of the axes scale division.
A class which draws a scale inside the plot canvas.
A class representing a scale division.
A class for drawing scales.
@ BottomScale
The scale is below.