table of contents
QwtMetricsMap(3) | Qwt User's Guide | QwtMetricsMap(3) |
NAME¶
QwtMetricsMap -SYNOPSIS¶
#include <qwt_layout_metrics.h>Public Member Functions¶
QPoint deviceToLayout (const QPoint &, const QPainter *=NULL) const
Static Public Member Functions¶
static QwtPolygon translate (const QMatrix &, const QwtPolygon &)
Detailed Description¶
A Map to translate between layout, screen and paint device metrics. Qt3 supports painting in integer coordinates only. Therefore it is not possible to scale the layout in screen coordinates to layouts in higher resolutions ( f.e printing ) without losing the higher precision. QwtMetricsMap is used to incorporate the various widget attributes ( always in screen resolution ) into the layout/printing code of QwtPlot. Qt4 is able to paint floating point based coordinates, what makes it possible always to render in screen coordinates ( with a common scale factor ). QwtMetricsMap will be obsolete as soon as Qt3 support has been dropped ( Qwt 6.x ).Member Function Documentation¶
QwtPolygon QwtMetricsMap::translate (const QMatrix &m, const QwtPolygon &pa) [static]¶
Wrapper for QMatrix::map. Parameters:m Matrix
pa Polygon to translate
Returns:
Translated polygon
QRect QwtMetricsMap::translate (const QMatrix &m, const QRect &rect) [static]¶
Wrapper for QMatrix::mapRect. Parameters:m Matrix
rect Rectangle to translate
Returns:
Translated rectangle
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.Tue Nov 20 2012 | Version 5.2.3 |