QwtScaleMap(3)
πΈ QwtScaleMap(3) πΈ
okay bestie, welcome to the Qwt User's Guide, page three of the scale-map cinematic universe π this is QwtScaleMap(3) and she's a whole mood.
β¨ NAME β¨
QwtScaleMap -
not the description being literally empty π the manpage said "QwtScaleMap -" and then justβ¦ stopped. no cap. it's giving mystery. iykyk.
π SYNOPSIS π
#include <qwt_scale_map.h>
π Public Member Functions π
QwtScaleMap ()QwtScaleMap (const QwtScaleMap &)~QwtScaleMap ()double invTransform (double i) constQwtScaleMap & operator= (const QwtScaleMap &)double p1 () constdouble p2 () constdouble pDist () constdouble s1 () constdouble s2 () constdouble sDist () constvoid setPaintInterval (int p1, int p2)void setPaintXInterval (double p1, double p2)void setScaleInterval (double s1, double s2)void setTransformation (QwtScaleTransformation *)int transform (double x) constconst QwtScaleTransformation * transformation () constdouble xTransform (double x) const
π¦ Public Attributes π¦
QT_STATIC_CONST double LogMax = 1.0e150QT_STATIC_CONST double LogMin = 1.0e-150
π Detailed Description π
A scale map. π«
QwtScaleMap offers transformations from a scale into a paint interval and vice versa.
that's it that's the whole vibe. it's a translator between "what the numbers mean" and "where the pixels go". lowkey iconic, highkey essential. π
πΈ Constructor & Destructor Documentation πΈ
π«Ά QwtScaleMap::QwtScaleMap ()
Constructor. The scale and paint device intervals are both set to [0,1].
baby's first scale map π she comes out the box with both intervals at [0,1], ready to be configured.
π«Ά QwtScaleMap::~QwtScaleMap ()
Destructor
say bye bestie π₯Ί she's done.
π Member Function Documentation π
β double QwtScaleMap::invTransform (double p) const [inline]
Transform an paint device value into a value in the interval of the scale.
Parameters:
pValue relative to the coordinates of the paint device
See also:
transform()
the reverse direction baddie. paint device β‘οΈ scale. she's the undo button π
β double QwtScaleMap::p1 () const [inline]
Returns:
- First border of the paint interval
β double QwtScaleMap::p2 () const [inline]
Returns:
- Second border of the paint interval
β double QwtScaleMap::pDist () const [inline]
Returns:
qwtAbs(p2() - p1())
she measures the width of the paint interval.p1andp2went to different schools together and now we're taking the absolute difference, periodt π
β double QwtScaleMap::s1 () const [inline]
Returns:
- First border of the scale interval
β double QwtScaleMap::s2 () const [inline]
Returns:
- Second border of the scale interval
β double QwtScaleMap::sDist () const [inline]
Returns:
qwtAbs(s2() - s1())
same energy, but for the scale interval this time. qwtAbs(s2() - s1()) no cap β¨
β void QwtScaleMap::setPaintInterval (int p1, int p2)
Specify the borders of the paint device interval.
Parameters:
p1first borderp2second border
β void QwtScaleMap::setPaintXInterval (double p1, double p2)
Specify the borders of the paint device interval.
Parameters:
p1first borderp2second border
yes bestie she's the same description assetPaintInterval, but this one takesdoubleinstead ofintπ the float-y sibling.
β void QwtScaleMap::setScaleInterval (double s1, double s2)
Specify the borders of the scale interval.
Parameters:
s1first borders2second border
Warning: logarithmic scales might be aligned to [LogMin, LogMax]
not me warning you in advance π if your scale is logarithmic, do not be shocked when she snaps herself to [LogMin, LogMax]. that's just her behavior, she's committed.
β void QwtScaleMap::setTransformation (QwtScaleTransformation *transformation)
Initialize the map with a transformation
hand her a QwtScaleTransformation * and she'll set the whole map up around it π§
β int QwtScaleMap::transform (double s) const [inline]
Transform a point related to the scale interval into an point related to the interval of the paint device and round it to an integer. (In Qt <= 3.x paint devices are integer based. )
Parameters:
sValue relative to the coordinates of the scale
See also:
xTransform()
scale β‘οΈ paint, and she rounds to an int on the way out because in Qt <= 3.x paint devices are integer based. so if you're on old-school Qt, this is the one you want π―
β double QwtScaleMap::xTransform (double s) const [inline]
Transform a point related to the scale interval into an point related to the interval of the paint device
Parameters:
sValue relative to the coordinates of the scale
literally transform() but she keeps the decimals. no rounding, all precision, main character energy π
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code.
yeah bestie the "author" is a robot. doxygen did this. she's not like other girls, she's generated π
and that's the whole page, you ate that fr fr π«Ά Version 5.2.3, dated Tue Nov 20 2012 β so yeah she's vintage, she's a classic, she's still serving looks. mwah π
β¨π
π¦ where this page comes from
- epel 9: qwt5-qt5-devel 5.2.3a-12.20210522gita2b11e3.el9 Β· LGPLv2+ with exceptions
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms