.TH "QwtScaleMap" 3 "Sun Jul 18 2021" "Version 6.2.0" "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\&. .PP Definition at line 26 of file qwt_scale_map\&.h\&. .SH "Constructor & Destructor Documentation" .PP .SS "QwtScaleMap::QwtScaleMap ()" .PP Constructor\&. The scale and paint device intervals are both set to [0,1]\&. .PP Definition at line 21 of file qwt_scale_map\&.cpp\&. .SS "QwtScaleMap::~QwtScaleMap ()" Destructor .PP Definition at line 49 of file qwt_scale_map\&.cpp\&. .SH "Member Function Documentation" .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 .PP Definition at line 187 of file qwt_scale_map\&.cpp\&. .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 .PP Definition at line 224 of file qwt_scale_map\&.cpp\&. .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 .PP Definition at line 154 of file qwt_scale_map\&.h\&. .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 .PP Definition at line 164 of file qwt_scale_map\&.h\&. .SS "double QwtScaleMap::p1 () const\fC [inline]\fP" .PP \fBReturns\fP .RS 4 First border of the paint interval .RE .PP .PP Definition at line 99 of file qwt_scale_map\&.h\&. .SS "double QwtScaleMap::p2 () const\fC [inline]\fP" .PP \fBReturns\fP .RS 4 Second border of the paint interval .RE .PP .PP Definition at line 107 of file qwt_scale_map\&.h\&. .SS "double QwtScaleMap::pDist () const\fC [inline]\fP" .PP \fBReturns\fP .RS 4 qwtAbs(\fBp2()\fP - \fBp1()\fP) .RE .PP .PP Definition at line 115 of file qwt_scale_map\&.h\&. .SS "double QwtScaleMap::s1 () const\fC [inline]\fP" .PP \fBReturns\fP .RS 4 First border of the scale interval .RE .PP .PP Definition at line 83 of file qwt_scale_map\&.h\&. .SS "double QwtScaleMap::s2 () const\fC [inline]\fP" .PP \fBReturns\fP .RS 4 Second border of the scale interval .RE .PP .PP Definition at line 91 of file qwt_scale_map\&.h\&. .SS "double QwtScaleMap::sDist () const\fC [inline]\fP" .PP \fBReturns\fP .RS 4 qwtAbs(\fBs2()\fP - \fBs1()\fP) .RE .PP .PP Definition at line 123 of file qwt_scale_map\&.h\&. .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 .PP Definition at line 119 of file qwt_scale_map\&.cpp\&. .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 .PP Definition at line 100 of file qwt_scale_map\&.cpp\&. .SS "void QwtScaleMap::setTransformation (\fBQwtTransform\fP * transform)" Initialize the map with a transformation .PP Definition at line 76 of file qwt_scale_map\&.cpp\&. .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 .PP Definition at line 206 of file qwt_scale_map\&.cpp\&. .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 .PP Definition at line 153 of file qwt_scale_map\&.cpp\&. .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 .PP Definition at line 137 of file qwt_scale_map\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for Qwt User's Guide from the source code\&.