logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

QwtPixelMatrix - A bit field corresponding to the pixels of a rectangle.

Author

       Generated automatically by Doxygen for Qwt User's Guide from the source code.

Version 6.1.4                                    Wed Jan 2 2019                                QwtPixelMatrix(3)

Constructor & Destructor Documentation

QwtPixelMatrix::QwtPixelMatrix(constQRect&rect)
       Constructor.

       Parameters:rect Bounding rectangle for the matrix

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.

Member Function Documentation

intQwtPixelMatrix::index(intx,inty)const[inline]
       Calculate the index in the bit field corresponding to a position.

       Parameters:x X-coordinate
           y Y-coordinate

       Returns:
           Index, when rect() contains pos - otherwise -1.

   QRectQwtPixelMatrix::rect()constReturns:
           Bounding rectangle

   voidQwtPixelMatrix::setRect(constQRect&rect)
       Set the bounding rectangle of the matrix

       Parameters:rect Bounding rectangle

       Note:
           All bits are cleared

   boolQwtPixelMatrix::testAndSetPixel(intx,inty,boolon)[inline]
       Set a pixel and test if a pixel has been set before.

       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.

   boolQwtPixelMatrix::testPixel(intx,inty)const[inline]
       Test if a pixel has been set.

       Parameters:x X-coordinate
           y Y-coordinate

       Returns:
           true, when pos is outside of rect(), or when the pixel has already been set.

Name

       QwtPixelMatrix - A bit field corresponding to the pixels of a rectangle.

Synopsis

       #include <qwt_pixel_matrix.h>

       Inherits QBitArray.

   PublicMemberFunctionsQwtPixelMatrix (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.

See Also