123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333 |
- .TH "QwtScaleMap" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
- .ad l
- .nh
- .SH NAME
- QwtScaleMap \- A scale map\&.
- .SH SYNOPSIS
- .br
- .PP
- .PP
- \fC#include <qwt_scale_map\&.h>\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 "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 "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 "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 "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 "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
- .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 "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
- .SH "Author"
- .PP
- Generated automatically by Doxygen for Qwt User's Guide from the source code\&.
|