QwtScaleTransformation(3)

πŸ“¦ version 5.2.3a, in epel 9, fedora 43, fedora 44

πŸ’– 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 device
  • p1 β€” first border of the coordinate system of the paint device
  • p2 β€” second border of the coordinate system of the paint device
  • s1 β€” first border of the coordinate system of the scale
  • s2 β€” 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 scale
  • s1 β€” first border of the coordinate system of the scale
  • s2 β€” second border of the coordinate system of the scale
  • p1 β€” first border of the coordinate system of the paint device
  • p2 β€” 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