QwtPixelMatrix(3)
π QwtPixelMatrix(3) β Library Functions Manual
okay so bestie, welcome to the glow-up of QwtPixelMatrix, straight out of the Library Functions Manual. Buckle up, this one's a little bit iconic β¨
πΈ NAME πΈ
QwtPixelMatrix β a bit field that corresponds to the pixels of a rectangle. literally a whole grid of pixels but make it a bit field π
π¦ SYNOPSIS π¦
#include <qwt_pixel_matrix.h>
Inherits QBitArray π (yes she's got lineage)
β¨ Public Member Functions β¨
QwtPixelMatrix(const QRect &rect)β Constructor. π~QwtPixelMatrix()β Destructor. bye bestie πvoid setRect(const QRect &rect)QRect rect() constbool testPixel(int x, int y) constβ Test if a pixel has been set. πbool testAndSetPixel(int x, int y, bool on)β Set a pixel and test if a pixel has been set before. π―
π«Ά Public Attributes π«Ά
int const
π« Detailed Description π«
A bit field corresponding to the pixels of a rectangle.
QwtPixelMatrix is intended to filter out duplicates in an unsorted array of points. fr fr, that's her whole job β she's the bouncer at the club checking if you already got in π
Definition at line 24 of file qwt_pixel_matrix.h.
π Constructor & Destructor Documentation π
QwtPixelMatrix::QwtPixelMatrix(const QRect & rect) [explicit]
Constructor. β¨ birth of an icon β¨
Parameters
rectβ Bounding rectangle for the matrix
Definition at line 17 of file qwt_pixel_matrix.cpp.
QwtPixelMatrix::~QwtPixelMatrix()
Destructor. she's logging off, no cap π
Definition at line 24 of file qwt_pixel_matrix.cpp.
π Member Function Documentation π
QRect QwtPixelMatrix::rect() const
Returns
- Bounding rectangle
Definition at line 48 of file qwt_pixel_matrix.cpp.
void QwtPixelMatrix::setRect(const QRect & rect)
Set the bounding rectangle of the matrix. π
Parameters
rectβ Bounding rectangle
Note: all bits are cleared. like, all of them, gone, wiped, ghosted π
Definition at line 35 of file qwt_pixel_matrix.cpp.
bool QwtPixelMatrix::testAndSetPixel(int x, int y, bool on) [inline]
Set a pixel and test if a pixel has been set before. the way she does both at once?? main character energy π₯
Parameters
xβ X-coordinateyβ Y-coordinateonβ Set/Clear the pixel
Returns
true, when pos is outside ofrect(), or when the pixel was set before.
Definition at line 67 of file qwt_pixel_matrix.h.
bool QwtPixelMatrix::testPixel(int x, int y) const [inline]
Test if a pixel has been set. vibe check on a single pixel πβ¨
Parameters
xβ X-coordinateyβ Y-coordinate
Returns
true, when pos is outside ofrect(), or when the pixel has already been set.
Definition at line 51 of file qwt_pixel_matrix.h.
π Member Data Documentation π
int QwtPixelMatrix::const
Definition at line 36 of file qwt_pixel_matrix.h.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. the robots did this one for us, iykyk π€π
aaaaand that's the whole page bestie, you ate that π«Ά slay, periodt, go forth and dedupe your points π β¨
β with love, from the Qwt User's Guide (generated by Doxygen, sourced from the source code) π
π¦ 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