QwtPixelMatrix.3 2.7 KB

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