10 #ifndef QWT_PLOT_SCALE_ITEM_H 11 #define QWT_PLOT_SCALE_ITEM_H 52 const double pos = 0.0 );
56 virtual int rtti()
const;
61 void setScaleDivFromAxis(
bool on );
62 bool isScaleDivFromAxis()
const;
64 void setPalette(
const QPalette & );
65 QPalette palette()
const;
67 void setFont(
const QFont& );
75 void setPosition(
double pos );
76 double position()
const;
78 void setBorderDistance(
int numPixels );
79 int borderDistance()
const;
83 virtual void draw( QPainter *p,
85 const QRectF &rect )
const;
virtual void draw(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const =0
Draw the item.
A class representing a scale division.
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 for drawing scales.
Base class for items on the plot canvas.