.TH "QwtScaleMap" 3 "Wed Jan 2 2019" "Version 6.1.4" "Qwt User's Guide" \" -*- nroff -*- .ad l .nh .SH NAME QwtScaleMap \- A scale map\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBQwtScaleMap\fP ()" .br .RI "Constructor\&. " .ti -1c .RI "\fBQwtScaleMap\fP (const \fBQwtScaleMap\fP &)" .br .RI "Copy constructor\&. " .ti -1c .RI "\fB~QwtScaleMap\fP ()" .br .ti -1c .RI "\fBQwtScaleMap\fP & \fBoperator=\fP (const \fBQwtScaleMap\fP &)" .br .RI "Assignment operator\&. " .ti -1c .RI "void \fBsetTransformation\fP (\fBQwtTransform\fP *)" .br .ti -1c .RI "const \fBQwtTransform\fP * \fBtransformation\fP () const" .br .RI "Get the transformation\&. " .ti -1c .RI "void \fBsetPaintInterval\fP (double \fBp1\fP, double \fBp2\fP)" .br .RI "Specify the borders of the paint device interval\&. " .ti -1c .RI "void \fBsetScaleInterval\fP (double \fBs1\fP, double \fBs2\fP)" .br .RI "Specify the borders of the scale interval\&. " .ti -1c .RI "double \fBtransform\fP (double s) const" .br .ti -1c .RI "double \fBinvTransform\fP (double p) const" .br .ti -1c .RI "double \fBp1\fP () const" .br .ti -1c .RI "double \fBp2\fP () const" .br .ti -1c .RI "double \fBs1\fP () const" .br .ti -1c .RI "double \fBs2\fP () const" .br .ti -1c .RI "double \fBpDist\fP () const" .br .ti -1c .RI "double \fBsDist\fP () const" .br .ti -1c .RI "bool \fBisInverting\fP () const" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static QRectF \fBtransform\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &, const QRectF &)" .br .ti -1c .RI "static QRectF \fBinvTransform\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &, const QRectF &)" .br .ti -1c .RI "static QPointF \fBtransform\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &, const QPointF &)" .br .ti -1c .RI "static QPointF \fBinvTransform\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &, const QPointF &)" .br .in -1c .SH "Detailed Description" .PP A scale map\&. \fBQwtScaleMap\fP offers transformations from the coordinate system of a scale into the linear coordinate system of a paint device and vice versa\&. .SH "Constructor & Destructor Documentation" .PP .SS "QwtScaleMap::QwtScaleMap ()" .PP Constructor\&. The scale and paint device intervals are both set to [0,1]\&. .SS "QwtScaleMap::~QwtScaleMap ()" Destructor .SH "Member Function Documentation" .PP .SS "double QwtScaleMap::invTransform (double p) const\fC [inline]\fP" Transform an paint device value into a value in the interval of the scale\&. .PP \fBParameters:\fP .RS 4 \fIp\fP Value relative to the coordinates of the paint device .RE .PP \fBReturns:\fP .RS 4 Transformed value .RE .PP \fBSee also:\fP .RS 4 \fBtransform()\fP .RE .PP .SS "QRectF QwtScaleMap::invTransform (const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QRectF & rect)\fC [static]\fP" Transform a rectangle from paint to scale coordinates .PP \fBParameters:\fP .RS 4 \fIxMap\fP X map .br \fIyMap\fP Y map .br \fIrect\fP Rectangle in paint coordinates .RE .PP \fBReturns:\fP .RS 4 Rectangle in scale coordinates .RE .PP \fBSee also:\fP .RS 4 \fBtransform()\fP .RE .PP .SS "QPointF QwtScaleMap::invTransform (const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QPointF & pos)\fC [static]\fP" Transform a rectangle from paint to scale coordinates .PP \fBParameters:\fP .RS 4 \fIxMap\fP X map .br \fIyMap\fP Y map .br \fIpos\fP Position in paint coordinates .RE .PP \fBReturns:\fP .RS 4 Position in scale coordinates .RE .PP \fBSee also:\fP .RS 4 \fBtransform()\fP .RE .PP .SS "bool QwtScaleMap::isInverting () const\fC [inline]\fP" .PP \fBReturns:\fP .RS 4 True, when ( \fBp1()\fP < \fBp2()\fP ) != ( \fBs1()\fP < \fBs2()\fP ) .RE .PP .SS "double QwtScaleMap::p1 () const\fC [inline]\fP" .PP \fBReturns:\fP .RS 4 First border of the paint interval .RE .PP .SS "double QwtScaleMap::p2 () const\fC [inline]\fP" .PP \fBReturns:\fP .RS 4 Second border of the paint interval .RE .PP .SS "double QwtScaleMap::pDist () const\fC [inline]\fP" .PP \fBReturns:\fP .RS 4 qwtAbs(\fBp2()\fP - \fBp1()\fP) .RE .PP .SS "double QwtScaleMap::s1 () const\fC [inline]\fP" .PP \fBReturns:\fP .RS 4 First border of the scale interval .RE .PP .SS "double QwtScaleMap::s2 () const\fC [inline]\fP" .PP \fBReturns:\fP .RS 4 Second border of the scale interval .RE .PP .SS "double QwtScaleMap::sDist () const\fC [inline]\fP" .PP \fBReturns:\fP .RS 4 qwtAbs(\fBs2()\fP - \fBs1()\fP) .RE .PP .SS "void QwtScaleMap::setPaintInterval (double p1, double p2)" .PP Specify the borders of the paint device interval\&. .PP \fBParameters:\fP .RS 4 \fIp1\fP first border .br \fIp2\fP second border .RE .PP .SS "void QwtScaleMap::setScaleInterval (double s1, double s2)" .PP Specify the borders of the scale interval\&. .PP \fBParameters:\fP .RS 4 \fIs1\fP first border .br \fIs2\fP second border .RE .PP \fBWarning:\fP .RS 4 scales might be aligned to transformation depending boundaries .RE .PP .SS "void QwtScaleMap::setTransformation (\fBQwtTransform\fP * transform)" Initialize the map with a transformation .SS "double QwtScaleMap::transform (double s) const\fC [inline]\fP" Transform a point related to the scale interval into an point related to the interval of the paint device .PP \fBParameters:\fP .RS 4 \fIs\fP Value relative to the coordinates of the scale .RE .PP \fBReturns:\fP .RS 4 Transformed value .RE .PP \fBSee also:\fP .RS 4 \fBinvTransform()\fP .RE .PP .SS "QRectF QwtScaleMap::transform (const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QRectF & rect)\fC [static]\fP" Transform a rectangle from scale to paint coordinates .PP \fBParameters:\fP .RS 4 \fIxMap\fP X map .br \fIyMap\fP Y map .br \fIrect\fP Rectangle in scale coordinates .RE .PP \fBReturns:\fP .RS 4 Rectangle in paint coordinates .RE .PP \fBSee also:\fP .RS 4 \fBinvTransform()\fP .RE .PP .SS "QPointF QwtScaleMap::transform (const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QPointF & pos)\fC [static]\fP" Transform a point from scale to paint coordinates .PP \fBParameters:\fP .RS 4 \fIxMap\fP X map .br \fIyMap\fP Y map .br \fIpos\fP Position in scale coordinates .RE .PP \fBReturns:\fP .RS 4 Position in paint coordinates .RE .PP \fBSee also:\fP .RS 4 \fBinvTransform()\fP .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Qwt User's Guide from the source code\&.