QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QwtPixelMatrix Class Reference

A bit field corresponding to the pixels of a rectangle. More...

#include <qwt_pixel_matrix.h>

Inheritance diagram for QwtPixelMatrix:

Public Member Functions

 QwtPixelMatrix (const QRect &rect)
 Constructor.
 
 ~QwtPixelMatrix ()
 Destructor .
 
void setRect (const QRect &rect)
 Set the bounding rectangle of the matrix.
 
QRect rect () const
 Get the bounding rectangle.
 
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.

Constructor & Destructor Documentation

◆ QwtPixelMatrix()

QwtPixelMatrix::QwtPixelMatrix ( const QRect &  rect)
explicit

Constructor.

◆ ~QwtPixelMatrix()

QwtPixelMatrix::~QwtPixelMatrix ( )

Destructor .

Member Function Documentation

◆ index()

int QwtPixelMatrix::index ( int  x,
int  y 
) const
inline

Calculate the index in the bit field corresponding to a position.

◆ rect()

QRect QwtPixelMatrix::rect ( ) const

Get the bounding rectangle.

◆ setRect()

void QwtPixelMatrix::setRect ( const QRect &  rect)

Set the bounding rectangle of the matrix.

◆ testAndSetPixel()

bool QwtPixelMatrix::testAndSetPixel ( int  x,
int  y,
bool  on 
)
inline

Set a pixel and test if a pixel has been set before.

◆ testPixel()

bool QwtPixelMatrix::testPixel ( int  x,
int  y 
) const
inline

Test if a pixel has been set.


The documentation for this class was generated from the following files: