Public Member Functions

QwtPlotCurve::PrivateData::PixelMatrix Class Reference

List of all members.

Public Member Functions

 PixelMatrix (const QRect &rect)
bool testPixel (const QPoint &pos)

Detailed Description

Definition at line 161 of file qwt_plot_curve.cpp.


Constructor & Destructor Documentation

QwtPlotCurve::PrivateData::PixelMatrix::PixelMatrix ( const QRect &  rect ) [inline]

Definition at line 164 of file qwt_plot_curve.cpp.

                                      :
            QBitArray(rect.width() * rect.height()),
            _rect(rect)
        {
            fill(false);
        }

Member Function Documentation

bool QwtPlotCurve::PrivateData::PixelMatrix::testPixel ( const QPoint &  pos ) [inline]

Definition at line 171 of file qwt_plot_curve.cpp.

Referenced by QwtPlotCurve::drawDots(), and QwtPlotCurve::drawSymbols().

        {
            if ( !_rect.contains(pos) )
                return false;

            const int idx = _rect.width() * (pos.y() - _rect.y()) + 
                (pos.x() - _rect.x());

            const bool marked = testBit(idx);
            if ( !marked )
                setBit(idx, true);

            return !marked;
        }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines