1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
|
.TH "QwtPixelMatrix" 3 "Thu Dec 11 2014" "Version 6.1.2" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtPixelMatrix \-
.PP
A bit field corresponding to the pixels of a rectangle\&.
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_pixel_matrix\&.h>\fP
.PP
Inherits QBitArray\&.
.SS "Public Member Functions"
.in +1c
.ti -1c
.RI "\fBQwtPixelMatrix\fP (const QRect &\fBrect\fP)"
.br
.RI "\fIConstructor\&. \fP"
.ti -1c
.RI "\fB~QwtPixelMatrix\fP ()"
.br
.RI "\fIDestructor\&. \fP"
.ti -1c
.RI "void \fBsetRect\fP (const QRect &\fBrect\fP)"
.br
.ti -1c
.RI "QRect \fBrect\fP () const "
.br
.ti -1c
.RI "bool \fBtestPixel\fP (int x, int y) const "
.br
.RI "\fITest if a pixel has been set\&. \fP"
.ti -1c
.RI "bool \fBtestAndSetPixel\fP (int x, int y, bool on)"
.br
.RI "\fISet a pixel and test if a pixel has been set before\&. \fP"
.ti -1c
.RI "int \fBindex\fP (int x, int y) const "
.br
.RI "\fICalculate the index in the bit field corresponding to a position\&. \fP"
.in -1c
.SH "Detailed Description"
.PP
A bit field corresponding to the pixels of a rectangle\&.
\fBQwtPixelMatrix\fP is intended to filter out duplicates in an unsorted array of points\&.
.SH "Constructor & Destructor Documentation"
.PP
.SS "QwtPixelMatrix::QwtPixelMatrix (const QRect &rect)"
.PP
Constructor\&.
.PP
\fBParameters:\fP
.RS 4
\fIrect\fP Bounding rectangle for the matrix
.RE
.PP
.SH "Member Function Documentation"
.PP
.SS "int QwtPixelMatrix::index (intx, inty) const\fC [inline]\fP"
.PP
Calculate the index in the bit field corresponding to a position\&.
.PP
\fBParameters:\fP
.RS 4
\fIx\fP X-coordinate
.br
\fIy\fP Y-coordinate
.RE
.PP
\fBReturns:\fP
.RS 4
Index, when \fBrect()\fP contains pos - otherwise -1\&.
.RE
.PP
.SS "QRect QwtPixelMatrix::rect () const"
.PP
\fBReturns:\fP
.RS 4
Bounding rectangle
.RE
.PP
.SS "void QwtPixelMatrix::setRect (const QRect &rect)"
Set the bounding rectangle of the matrix
.PP
\fBParameters:\fP
.RS 4
\fIrect\fP Bounding rectangle
.RE
.PP
\fBNote:\fP
.RS 4
All bits are cleared
.RE
.PP
.SS "bool QwtPixelMatrix::testAndSetPixel (intx, inty, boolon)\fC [inline]\fP"
.PP
Set a pixel and test if a pixel has been set before\&.
.PP
\fBParameters:\fP
.RS 4
\fIx\fP X-coordinate
.br
\fIy\fP Y-coordinate
.br
\fIon\fP Set/Clear the pixel
.RE
.PP
\fBReturns:\fP
.RS 4
true, when pos is outside of \fBrect()\fP, or when the pixel was set before\&.
.RE
.PP
.SS "bool QwtPixelMatrix::testPixel (intx, inty) const\fC [inline]\fP"
.PP
Test if a pixel has been set\&.
.PP
\fBParameters:\fP
.RS 4
\fIx\fP X-coordinate
.br
\fIy\fP Y-coordinate
.RE
.PP
\fBReturns:\fP
.RS 4
true, when pos is outside of \fBrect()\fP, or when the pixel has already been set\&.
.RE
.PP
.SH "Author"
.PP
Generated automatically by Doxygen for Qwt User's Guide from the source code\&.
|