Go to the documentation of this file.
10 #ifndef QWT_PIXEL_MATRIX_H
11 #define QWT_PIXEL_MATRIX_H
15 #include <qbitarray.h>
30 void setRect(
const QRect& rect );
33 bool testPixel(
int x,
int y )
const;
34 bool testAndSetPixel(
int x,
int y,
bool on );
36 int index(
int x,
int y )
const;
54 return ( idx >= 0 ) ? testBit( idx ) :
true;
73 const bool onBefore = testBit( idx );
89 if ( dx < 0 || dx >=
m_rect.width() )
93 if ( dy < 0 || dy >=
m_rect.height() )
96 return dy *
m_rect.width() + dx;
int index(int x, int y) const
Calculate the index in the bit field corresponding to a position.
A bit field corresponding to the pixels of a rectangle.
bool testAndSetPixel(int x, int y, bool on)
Set a pixel and test if a pixel has been set before.
bool testPixel(int x, int y) const
Test if a pixel has been set.
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45