QwtTransform(3)
π QwtTransform(3) β like, the whole manual, bestie
Ok so this is a page from the Library Functions Manual, and it's all about QwtTransform. Grab a boba, we're getting into it π§β¨
πΈ NAME
QwtTransform β a transformation between coordinate systems. That's it, that's the vibe π«
β¨ SYNOPSIS
#include <qwt_transform.h>
Inherited by QwtLogTransform, QwtNullTransform, and QwtPowerTransform. So yeah, it's the mom friend of the family π
π«Ά Public Member Functions
QwtTransform ()β Constructor. Baby's first transform πΌvirtual ~QwtTransform ()β Destructor. Byeee πvirtual double bounded (double value) constvirtual double transform (double value) const =0virtual double invTransform (double value) const =0virtual QwtTransform * copy () const =0β Virtualized copy operation. She COPIES π
π¦ Detailed Description
A transformation between coordinate systems. Periodt.
QwtTransform manipulates values when they're being mapped between the scale and the paint device coordinate system. Basically she's the middle woman doing the translating so nothing gets lost in the group chat π
A transformation consists of 2 methods:
transforminvTransform
where one is the inverse function of the other. Like, they're each other's person, no cap π«Ά
When p1, p2 are the boundaries of the paint device coordinates and s1, s2 the boundaries of the scale, QwtScaleMap uses the following calculations:
p = p1 + ( p2 - p1 ) * ( T( s ) - T( s1 ) / ( T( s2 ) - T( s1 ) );s = invT ( T( s1 ) + ( T( s2 ) - T( s1 ) ) * ( p - p1 ) / ( p2 - p1 ) );
Fr fr, those are the formulas. Write them down, don't @ me π
Definition at line 35 of file qwt_transform.h.
π Constructor & Destructor Documentation
QwtTransform::QwtTransform ()
Constructor. Iconic. No arguments, no drama. π
Definition at line 20 of file qwt_transform.cpp.
QwtTransform::~QwtTransform () [virtual]
Destructor. She's logging off, the group chat goes quiet π₯²
Definition at line 25 of file qwt_transform.cpp.
π Member Function Documentation
double QwtTransform::bounded (double value) const [virtual]
Lowkey the whole job here is: modify value to be a valid value for the transformation. The default implementation does nothing β she's just standing there, existing, unbothered π
Parameters
valueβ Value to be bounded
Returns
value, unmodified. Girl did not touch it π
Reimplemented in QwtLogTransform.
Definition at line 33 of file qwt_transform.cpp.
virtual QwtTransform * QwtTransform::copy () const [pure virtual]
Virtualized copy operation. She said "make it a double" π β¨
Implemented in QwtLogTransform, QwtNullTransform, and QwtPowerTransform.
virtual double QwtTransform::invTransform (double value) const [pure virtual]
Inverse transformation function β the undo button, the "jk lol", the rewind βͺ
Parameters
valueβ Value
Returns
Modified value
See also
transform() β her other half π«Ά
Implemented in QwtLogTransform, QwtNullTransform, and QwtPowerTransform.
virtual double QwtTransform::transform (double value) const [pure virtual]
Transformation function. The main character of this whole operation π
Parameters
valueβ Value
Returns
Modified value
See also
invTransform() β the one she's inverse of π
Implemented in QwtLogTransform, QwtNullTransform, and QwtPowerTransform.
β Author
Generated automatically by Doxygen for Qwt User's Guide from the source code. Not a human, just a robot doing robot things π€β¨
Ok that's the whole page, every flag and formula and line number intact, none of it skipped, we ate and left no crumbs ππ
Sign-off time: this was Qwt User's Guide, page QwtTransform(3) β mwah, take care bestie, go transform something πΈπ¦π
π¦ where this page comes from
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms