/*! Translate a point from pixel into plot coordinates \return Point in plot coordinates \sa QwtPlotPicker::transform() */ QwtDoublePoint QwtPlotPicker::invTransform(const QPoint &pos) const { QwtDiMap xMap = plot()->canvasMap(d_xAxis); QwtDiMap yMap = plot()->canvasMap(d_yAxis); return QwtDoublePoint( xMap.invTransform(pos.x()), yMap.invTransform(pos.y()) ); }
/*! Translate a rectangle from pixel into plot coordinates \return Rectangle in plot coordinates \sa QwtPlotPicker::transform() */ QwtDoubleRect QwtPlotPicker::invTransform(const QRect &rect) const { QwtDiMap xMap = plot()->canvasMap(d_xAxis); QwtDiMap yMap = plot()->canvasMap(d_yAxis); return QwtDoubleRect( xMap.invTransform(rect.left()), xMap.invTransform(rect.right()), yMap.invTransform(rect.top()), yMap.invTransform(rect.bottom()) ); }