10 #ifndef QWT_SCALE_MAP_H 11 #define QWT_SCALE_MAP_H 39 void setPaintInterval(
double p1,
double p2 );
40 void setScaleInterval(
double s1,
double s2 );
42 double transform(
double s )
const;
43 double invTransform(
double p )
const;
66 bool isInverting()
const;
117 return qAbs( d_p2 - d_p1 );
125 return qAbs( d_s2 - d_s1 );
140 s = d_transform->transform( s );
142 return d_p1 + ( s - d_ts1 ) * d_cnv;
156 double s = d_ts1 + ( p - d_p1 ) / d_cnv;
158 s = d_transform->invTransform( s );
166 return ( ( d_p1 < d_p2 ) != ( d_s1 < d_s2 ) );
169 #ifndef QT_NO_DEBUG_STREAM
QwtTransform * d_transform
QWT_EXPORT QDebug operator<<(QDebug, const QwtScaleMap &)
double invTransform(double p) const
double transform(double s) const