GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
QwtMetricsMap(3) Qwt User's Guide QwtMetricsMap(3)

QwtMetricsMap -

#include <qwt_layout_metrics.h>


QPoint deviceToLayout (const QPoint &, const QPainter *=NULL) const
 
QSize deviceToLayout (const QSize &) const
 
QRect deviceToLayout (const QRect &, const QPainter *=NULL) const
 
QwtPolygon deviceToLayout (const QwtPolygon &, const QPainter *=NULL) const
 
int deviceToLayoutX (int x) const
 
int deviceToLayoutY (int y) const
 
bool isIdentity () const
 
QPoint layoutToDevice (const QPoint &, const QPainter *=NULL) const
 
QSize layoutToDevice (const QSize &) const
 
QRect layoutToDevice (const QRect &, const QPainter *=NULL) const
 
QwtPolygon layoutToDevice (const QwtPolygon &, const QPainter *=NULL) const
 
int layoutToDeviceX (int x) const
 
int layoutToDeviceY (int y) const
 
QPoint layoutToScreen (const QPoint &point) const
 
QSize layoutToScreen (const QSize &) const
 
QRect layoutToScreen (const QRect &) const
 
int layoutToScreenX (int x) const
 
int layoutToScreenY (int y) const
 
QPoint screenToLayout (const QPoint &) const
 
QSize screenToLayout (const QSize &) const
 
QRect screenToLayout (const QRect &) const
 
int screenToLayoutX (int x) const
 
int screenToLayoutY (int y) const
 
void setMetrics (const QPaintDevice *layoutMetrics, const QPaintDevice *deviceMetrics)
 


static QwtPolygon translate (const QMatrix &, const QwtPolygon &)
 
static QRect translate (const QMatrix &, const QRect &)
 

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 ).

Wrapper for QMatrix::map.
Parameters:
m Matrix
 
pa Polygon to translate
Returns:
Translated polygon

Wrapper for QMatrix::mapRect.
Parameters:
m Matrix
 
rect Rectangle to translate
Returns:
Translated rectangle

Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 Version 5.2.3

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.