10 #ifndef QWT_ABSTRACT_SCALE_H
11 #define QWT_ABSTRACT_SCALE_H
40 Q_PROPERTY(
double lowerBound READ lowerBound WRITE setLowerBound )
41 Q_PROPERTY(
double upperBound READ upperBound WRITE setUpperBound )
43 Q_PROPERTY(
int scaleMaxMajor READ scaleMaxMajor WRITE setScaleMaxMajor )
44 Q_PROPERTY(
int scaleMaxMinor READ scaleMaxMinor WRITE setScaleMaxMinor )
46 Q_PROPERTY(
double scaleStepSize READ scaleStepSize WRITE setScaleStepSize )
52 void setScale(
double lowerBound,
double upperBound );
58 void setLowerBound(
double value );
59 double lowerBound() const;
61 void setUpperBound(
double value );
62 double upperBound() const;
64 void setScaleStepSize(
double stepSize );
65 double scaleStepSize() const;
67 void setScaleMaxMajor(
int ticks );
68 int scaleMaxMinor() const;
70 void setScaleMaxMinor(
int ticks );
71 int scaleMaxMajor() const;
77 int transform(
double ) const;
78 double invTransform(
int ) const;
80 bool isInverted() const;
82 double minimum() const;
83 double maximum() const;
90 void rescale(
double lowerBound,
91 double upperBound,
double stepSize );
98 void updateScaleDraw();
99 virtual
void scaleChange();