QwtScaleTransformation(3)
π QwtScaleTransformation(3) π
okay bestie, welcome to the Qwt User's Guide β yes, the actual Qwt User's Guide, we're doing this β¨
πΈ NAME πΈ
QwtScaleTransformation β no cap, that's the whole name, that's the vibe π
π SYNOPSIS π
#include <qwt_scale_map.h>
β¨ Public Types β¨
enum Type { Linear, Log10, Other }
π¦ Public Member Functions π¦
QwtScaleTransformation (Type type)
virtual ~QwtScaleTransformation ()
virtual QwtScaleTransformation * copy () const
virtual double invXForm (double x, double p1, double p2, double s1,
double s2) const
Type type () const
virtual double xForm (double x, double s1, double s2, double p1, double
p2) const
π Detailed Description π
It's giving... operations for linear or logarithmic (base 10) transformations. That's literally it, that's the whole personality π«Ά
π Member Function Documentation π
π double QwtScaleTransformation::invXForm (doublep, doublep1, doublep2, doubles1, doubles2) const [virtual]
okay so this one transforms a value from the coordinate system of the paint device into the coordinate system of a scale. glow up in reverse, if you will β¨
Parameters:
pβ value related to the coordinate system of the paint devicep1β first border of the coordinate system of the paint devicep2β second border of the coordinate system of the paint devices1β first border of the coordinate system of the scales2β second border of the coordinate system of the scale
Returns:
linear mapping, bestie:
s1 + ( s2 - s1 ) / ( p2 - p1 ) * ( p - p1 );
log10 mapping, and yes it's iconic:
exp((p - p1) / (p2 - p1) * log(s2 / s1)) * s1;
πΈ QwtScaleTransformation::Type QwtScaleTransformation::type () const [inline]
Returns:
- transformation type π
that's it. short queen behavior, we love to see it.
π¦ double QwtScaleTransformation::xForm (doubles, doubles1, doubles2, doublep1, doublep2) const [virtual]
and this one goes the other way β it transforms a value from the coordinate system of a scale into the coordinate system of the paint device. the way that these two functions are literally each other's mirror π iconic
Parameters:
sβ value related to the coordinate system of the scales1β first border of the coordinate system of the scales2β second border of the coordinate system of the scalep1β first border of the coordinate system of the paint devicep2β second border of the coordinate system of the paint device
Returns:
linear mapping, periodt:
p1 + (p2 - p1) / (s2 - s1) * (s - s1);
log10 mapping, ate:
p1 + (p2 - p1) / log(s2 / s1) * log(s / s1);
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. so technically a robot wrote this and I'm just the messenger, no thoughts, head empty, only doxygen π
π sign-off π
that was Version 5.2.3, dated Tue Nov 20 2012 β yeah she's vintage, she's an oldie but a goodie, and honestly? still slaying. bye bestie, go transform something πβ¨ππ¦πΈπ π«Ά
π¦ 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