10#ifndef QWT_SCALE_DRAW_H 
   11#define QWT_SCALE_DRAW_H 
   13#include "qwt_global.h" 
   14#include "qwt_abstract_scale_draw.h" 
   60    void getBorderDistHint( 
const QFont&, 
int& start, 
int& end ) 
const;
 
   61    int minLabelDist( 
const QFont& ) 
const;
 
   63    int minLength( 
const QFont& ) 
const;
 
   64    virtual double extent( 
const QFont& ) 
const QWT_OVERRIDE;
 
   66    void move( 
double x, 
double y );
 
   67    void move( 
const QPointF& );
 
   68    void setLength( 
double length );
 
   70    Alignment alignment() 
const;
 
   71    void setAlignment( Alignment );
 
   73    Qt::Orientation orientation() 
const;
 
   76    double length() 
const;
 
   78    void setLabelAlignment( Qt::Alignment );
 
   79    Qt::Alignment labelAlignment() 
const;
 
   81    void setLabelRotation( 
double rotation );
 
   82    double labelRotation() 
const;
 
   84    int maxLabelHeight( 
const QFont& ) 
const;
 
   85    int maxLabelWidth( 
const QFont& ) 
const;
 
   87    QPointF labelPosition( 
double value ) 
const;
 
   89    QRectF labelRect( 
const QFont&, 
double value ) 
const;
 
   90    QSizeF labelSize( 
const QFont&, 
double value ) 
const;
 
   92    QRect boundingLabelRect( 
const QFont&, 
double value ) 
const;
 
   95    QTransform labelTransformation( 
const QPointF&, 
const QSizeF& ) 
const;
 
   98        double value, 
double len ) 
const QWT_OVERRIDE;
 
  100    virtual void drawBackbone( QPainter* ) 
const QWT_OVERRIDE;
 
  101    virtual void drawLabel( QPainter*, 
double value ) 
const QWT_OVERRIDE;
 
 
  120    move( 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 double extent(const QFont &font) const =0
virtual void drawLabel(QPainter *painter, double value) const =0
A class for drawing scales.
void move(double x, double y)
@ BottomScale
The scale is below.
@ TopScale
The scale is above.
@ LeftScale
The scale is left.