10 #ifndef QWT_SCALE_WIDGET_H 11 #define QWT_SCALE_WIDGET_H 58 void scaleDivChanged();
61 void setTitle(
const QString &title );
62 void setTitle(
const QwtText &title );
68 void setBorderDist(
int dist1,
int dist2 );
69 int startBorderDist()
const;
70 int endBorderDist()
const;
72 void getBorderDistHint(
int &start,
int &end )
const;
74 void getMinBorderDist(
int &start,
int &end )
const;
75 void setMinBorderDist(
int start,
int end );
77 void setMargin(
int );
80 void setSpacing(
int );
90 void setLabelAlignment( Qt::Alignment );
91 void setLabelRotation(
double rotation );
93 void setColorBarEnabled(
bool );
94 bool isColorBarEnabled()
const;
96 void setColorBarWidth(
int );
97 int colorBarWidth()
const;
107 int titleHeightForWidth(
int width ) const;
108 int dimForLength(
int length, const QFont &scaleFont ) const;
110 void drawColorBar( QPainter *, const QRectF & ) const;
112 const QRectF &rect ) const;
117 QRectF colorBarRect( const QRectF& ) const;
120 virtual
void paintEvent( QPaintEvent * ) QWT_OVERRIDE;
121 virtual
void resizeEvent( QResizeEvent * ) QWT_OVERRIDE;
122 virtual
void changeEvent( QEvent * ) QWT_OVERRIDE;
124 void draw( QPainter * ) const;
127 void layoutScale(
bool update_geometry = true );
A class representing an interval.
A class representing a scale division.
A class representing a text.
QwtColorMap is used to map values into colors.
A class for drawing scales.