QwtScaleMap(3)
πΈ NAME πΈ
okay so this page is QwtScaleMap from the Library Functions Manual β yes bestie, the library functions manual, you're in the right place π
β¨
QwtScaleMap β a scale map. That's the whole name, and it's iconic for it π
β¨ SYNOPSIS β¨
#include <qwt_scale_map.h>
π Public Member Functions π
QwtScaleMap ()β constructor, no cap.QwtScaleMap (const QwtScaleMap &)β copy constructor, giving dupe energy but legal π~QwtScaleMap ()β destructor, she's leaving the group chat.QwtScaleMap & operator= (const QwtScaleMap &)β assignment operator, putting one map into another.void setTransformation (QwtTransform *)β set the transformation.const QwtTransform * transformation () constβ get the transformation.void setPaintInterval (double p1, double p2)β specify the borders of the paint device interval.void setScaleInterval (double s1, double s2)β specify the borders of the scale interval.double transform (double s) constβ transform a scale value.double invTransform (double p) constβ transform a paint-device value back.double p1 () constβ first paint border.double p2 () constβ second paint border.double s1 () constβ first scale border.double s2 () constβ second scale border.double pDist () constβ paint distance.double sDist () constβ scale distance.bool isInverting () constβ checking if the map is inverting.
π Static Public Member Functions π
static QRectF transform (const QwtScaleMap &, const QwtScaleMap &, const QRectF &)β transform a rectangle from scale to paint coordinates.static QRectF invTransform (const QwtScaleMap &, const QwtScaleMap &, const QRectF &)β transform a rectangle from paint to scale coordinates.static QPointF transform (const QwtScaleMap &, const QwtScaleMap &, const QPointF &)β transform a point from scale to paint coordinates.static QPointF invTransform (const QwtScaleMap &, const QwtScaleMap &, const QPointF &)β transform a point from paint to scale coordinates.
π Detailed Description π
A scale map. Literally what it says on the tin, bestie π
QwtScaleMap offers transformations from the coordinate system of a scale into the linear coordinate system of a paint device and vice versa. It's giving bridge between two worlds, and honestly? Obsessed β¨
π Definition at line 26 of file qwt_scale_map.h.
π Constructor & Destructor Documentation π
π QwtScaleMap::QwtScaleMap () π
Constructor. The scale and paint device intervals are both set to [0,1]. Starting fresh, cute and symmetrical π«Ά
π Definition at line 21 of file qwt_scale_map.cpp.
π¦ QwtScaleMap::QwtScaleMap (const QwtScaleMap & other) π¦
Copy constructor. It's a duplicate, but make it fashion π
π Definition at line 33 of file qwt_scale_map.cpp.
πΈ QwtScaleMap::~QwtScaleMap () πΈ
Destructor. Cleanup era, we love to see it π§Ήβ¨
π Definition at line 49 of file qwt_scale_map.cpp.
π Member Function Documentation π
π QPointF QwtScaleMap::invTransform (const QwtScaleMap & xMap, const QwtScaleMap & yMap, const QPointF & pos) [static] π
Transform a rectangle from paint to scale coordinates. Yes, the docs say rectangle even though this overload takes a QPointF β I'm just the messenger, bestie π
Parameters:
xMapβ X mapyMapβ Y mapposβ Position in paint coordinates
Returns: Position in scale coordinates.
See also: transform()
π Definition at line 187 of file qwt_scale_map.cpp.
π¦ QRectF QwtScaleMap::invTransform (const QwtScaleMap & xMap, const QwtScaleMap & yMap, const QRectF & rect) [static] π¦
Transform a rectangle from paint to scale coordinates. Rectangle reverse era π
Parameters:
xMapβ X mapyMapβ Y maprectβ Rectangle in paint coordinates
Returns: Rectangle in scale coordinates.
See also: transform()
π Definition at line 224 of file qwt_scale_map.cpp.
π double QwtScaleMap::invTransform (double p) const [inline] π
Transform an paint device value into a value in the interval of the scale. (The manpage says βan paint device valueβ β we're keeping the lore exactly as written ππ)
Parameters:
pβ Value relative to the coordinates of the paint device
Returns: Transformed value.
See also: transform()
π Definition at line 154 of file qwt_scale_map.h.
π bool QwtScaleMap::isInverting () const [inline] π
Returns: True, when ( p1() < p2() ) != ( s1() < s2() )
π Definition at line 164 of file qwt_scale_map.h.
β¨ QwtScaleMap & QwtScaleMap::operator= (const QwtScaleMap & other) β¨
Assignment operator. Copy the vibe, keep the facts π
π Definition at line 55 of file qwt_scale_map.cpp.
π double QwtScaleMap::p1 () const [inline] π
Returns: First border of the paint interval.
π Definition at line 99 of file qwt_scale_map.h.
π©· double QwtScaleMap::p2 () const [inline] π©·
Returns: Second border of the paint interval.
π Definition at line 107 of file qwt_scale_map.h.
π§ double QwtScaleMap::pDist () const [inline] π§
Returns: qwtAbs(p2() - p1())
π Definition at line 115 of file qwt_scale_map.h.
πΈ double QwtScaleMap::s1 () const [inline] πΈ
Returns: First border of the scale interval.
π Definition at line 83 of file qwt_scale_map.h.
π¦ double QwtScaleMap::s2 () const [inline] π¦
Returns: Second border of the scale interval.
π Definition at line 91 of file qwt_scale_map.h.
π double QwtScaleMap::sDist () const [inline] π
Returns: qwtAbs(s2() - s1())
π Definition at line 123 of file qwt_scale_map.h.
π void QwtScaleMap::setPaintInterval (double p1, double p2) π
Specify the borders of the paint device interval.
Parameters:
p1β first borderp2β second border
π Definition at line 119 of file qwt_scale_map.cpp.
π void QwtScaleMap::setScaleInterval (double s1, double s2) π
Specify the borders of the scale interval.
Parameters:
s1β first borders2β second border
β οΈ Warning: scales might be aligned to transformation depending boundaries. So like, don't act surprised later, bestie π
π Definition at line 100 of file qwt_scale_map.cpp.
β void QwtScaleMap::setTransformation (QwtTransform * transform) β
Initialize the map with a transformation. Transformation setup, slay π₯
π Definition at line 76 of file qwt_scale_map.cpp.
π«Ά QPointF QwtScaleMap::transform (const QwtScaleMap & xMap, const QwtScaleMap & yMap, const QPointF & pos) [static] π«Ά
Transform a point from scale to paint coordinates. Point-forward behavior, honestly iconic π
Parameters:
xMapβ X mapyMapβ Y mapposβ Position in scale coordinates
Returns: Position in paint coordinates.
See also: invTransform()
π Definition at line 206 of file qwt_scale_map.cpp.
π QRectF QwtScaleMap::transform (const QwtScaleMap & xMap, const QwtScaleMap & yMap, const QRectF & rect) [static] π
Transform a rectangle from scale to paint coordinates. Rectangle glow-up, periodt π
Parameters:
xMapβ X mapyMapβ Y maprectβ Rectangle in scale coordinates
Returns: Rectangle in paint coordinates.
See also: invTransform()
π Definition at line 153 of file qwt_scale_map.cpp.
π double 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. Yep, βan pointβ is in the original, and I refuse to erase her legacy ππ
Parameters:
sβ Value relative to the coordinates of the scale
Returns: Transformed value.
See also: invTransform()
π Definition at line 137 of file qwt_scale_map.h.
π§ const QwtTransform * QwtScaleMap::transformation () const π§
Get the transformation. Short, sweet, main character energy β¨
π Definition at line 88 of file qwt_scale_map.cpp.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. The robots wrote this one, bestie π€π
okay that's the whole vibe π«Ά source/version vibes: the Qwt User's Guide; footer label: QwtScaleMap(3); date: not shown in this footer, ngl, so I'm not inventing one πβ¨ bye bestie π
π¦ 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