Public Member Functions | |
| PixelMatrix (const QRect &rect) | |
| bool | testPixel (const QPoint &pos) |
Definition at line 161 of file qwt_plot_curve.cpp.
| 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);
}
| 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;
}
1.7.2