10 #ifndef QWT_SCALE_WIDGET_H 11 #define QWT_SCALE_WIDGET_H 57 void scaleDivChanged();
60 void setTitle(
const QString& title );
61 void setTitle(
const QwtText& title );
67 void setBorderDist(
int dist1,
int dist2 );
68 int startBorderDist()
const;
69 int endBorderDist()
const;
71 void getBorderDistHint(
int& start,
int& end )
const;
73 void getMinBorderDist(
int& start,
int& end )
const;
74 void setMinBorderDist(
int start,
int end );
76 void setMargin(
int );
79 void setSpacing(
int );
89 void setLabelAlignment( Qt::Alignment );
90 void setLabelRotation(
double rotation );
92 void setColorBarEnabled(
bool );
93 bool isColorBarEnabled()
const;
95 void setColorBarWidth(
int );
96 int colorBarWidth()
const;
106 int titleHeightForWidth(
int width ) const;
107 int dimForLength(
int length, const QFont& scaleFont ) const;
109 void drawColorBar( QPainter*, const QRectF& ) const;
111 const QRectF& rect ) const;
116 QRectF colorBarRect( const QRectF& ) const;
119 virtual
void paintEvent( QPaintEvent* ) QWT_OVERRIDE;
120 virtual
void resizeEvent( QResizeEvent* ) QWT_OVERRIDE;
121 virtual
void changeEvent( QEvent* ) QWT_OVERRIDE;
123 void draw( QPainter* ) const;
126 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.