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() const
  • bool 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-coordinate
  • y β€” Y-coordinate
  • on β€” Set/Clear the pixel

Returns

  • true, when pos is outside of rect(), 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-coordinate
  • y β€” Y-coordinate

Returns

  • true, when pos is outside of rect(), 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