155 double x1 = xMap.
transform( rect.left() );
156 double x2 = xMap.
transform( rect.right() );
157 double y1 = yMap.
transform( rect.top() );
158 double y2 = yMap.
transform( rect.bottom() );
174 return QRectF( x1, y1, x2 - x1 + 1, y2 - y1 + 1 );
227 const double x2 = xMap.
invTransform( rect.right() - 1 );
229 const double y2 = yMap.
invTransform( rect.bottom() - 1 );
231 const QRectF r( x1, y1, x2 - x1, y2 - y1 );
232 return r.normalized();
235 #ifndef QT_NO_DEBUG_STREAM 239 debug.nospace() <<
"QwtScaleMap(" 241 <<
", s:" << map.
s1() <<
"->" << map.
s2()
242 <<
", p:" << map.
p1() <<
"->" << map.
p2()
245 return debug.space();
int qwtFuzzyCompare(double value1, double value2, double intervalSize)
Compare 2 values, relative to an interval.
QwtTransform * d_transform
QDebug operator<<(QDebug debug, const QwtScaleMap &map)
void setScaleInterval(double s1, double s2)
Specify the borders of the scale interval.
QwtScaleMap & operator=(const QwtScaleMap &)
Assignment operator.
void setTransformation(QwtTransform *)
void setPaintInterval(double p1, double p2)
Specify the borders of the paint device interval.
const QwtTransform * transformation() const
Get the transformation.
double invTransform(double p) const
double transform(double s) const
QwtScaleMap()
Constructor.