- bookworm 6.1.4-2
- testing 6.1.4-2
- unstable 6.1.4-2
- experimental 6.2.0-1
QwtPixelMatrix(3) | Qwt User's Guide | QwtPixelMatrix(3) |
NAME¶
QwtPixelMatrix - A bit field corresponding to the pixels of a rectangle.
SYNOPSIS¶
#include <qwt_pixel_matrix.h>
Inherits QBitArray.
Public Member Functions¶
QwtPixelMatrix (const QRect &rect)
Constructor. ~QwtPixelMatrix ()
Destructor. 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. int index (int x,
int y) const
Calculate the index in the bit field corresponding to a position.
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.
Constructor & Destructor Documentation¶
QwtPixelMatrix::QwtPixelMatrix (const QRect & rect)¶
Constructor.
Parameters:
Member Function Documentation¶
int QwtPixelMatrix::index (int x, int y) const [inline]¶
Calculate the index in the bit field corresponding to a position.
Parameters:
y Y-coordinate
Returns:
QRect QwtPixelMatrix::rect () const¶
Returns:
void QwtPixelMatrix::setRect (const QRect & rect)¶
Set the bounding rectangle of the matrix
Parameters:
Note:
bool QwtPixelMatrix::testAndSetPixel (int x, int y, bool on) [inline]¶
Set a pixel and test if a pixel has been set before.
Parameters:
y Y-coordinate
on Set/Clear the pixel
Returns:
bool QwtPixelMatrix::testPixel (int x, int y) const [inline]¶
Test if a pixel has been set.
Parameters:
y Y-coordinate
Returns:
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |