QwtPlotSeriesItem.3 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. .TH "QwtPlotSeriesItem" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtPlotSeriesItem \- Base class for plot items representing a series of samples\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_plot_seriesitem\&.h>\fP
  11. .PP
  12. Inherits \fBQwtPlotItem\fP, and \fBQwtAbstractSeriesStore\fP\&.
  13. .PP
  14. Inherited by \fBQwtPlotAbstractBarChart\fP, \fBQwtPlotCurve\fP, \fBQwtPlotHistogram\fP, \fBQwtPlotIntervalCurve\fP, \fBQwtPlotSpectroCurve\fP, and \fBQwtPlotTradingCurve\fP\&.
  15. .SS "Public Member Functions"
  16. .in +1c
  17. .ti -1c
  18. .RI "\fBQwtPlotSeriesItem\fP (const QString &\fBtitle\fP=QString())"
  19. .br
  20. .ti -1c
  21. .RI "\fBQwtPlotSeriesItem\fP (const \fBQwtText\fP &\fBtitle\fP)"
  22. .br
  23. .ti -1c
  24. .RI "virtual \fB~QwtPlotSeriesItem\fP ()"
  25. .br
  26. .RI "Destructor\&. "
  27. .ti -1c
  28. .RI "void \fBsetOrientation\fP (Qt::Orientation)"
  29. .br
  30. .ti -1c
  31. .RI "Qt::Orientation \fBorientation\fP () const"
  32. .br
  33. .ti -1c
  34. .RI "virtual void \fBdraw\fP (QPainter *, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QRectF &) const"
  35. .br
  36. .RI "Draw the complete series\&. "
  37. .ti -1c
  38. .RI "virtual void \fBdrawSeries\fP (QPainter *painter, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QRectF &canvasRect, int from, int to) const =0"
  39. .br
  40. .ti -1c
  41. .RI "virtual QRectF \fBboundingRect\fP () const"
  42. .br
  43. .ti -1c
  44. .RI "virtual void \fBupdateScaleDiv\fP (const \fBQwtScaleDiv\fP &, const \fBQwtScaleDiv\fP &)"
  45. .br
  46. .RI "Update the item to changes of the axes scale division\&. "
  47. .in -1c
  48. .SS "Protected Member Functions"
  49. .in +1c
  50. .ti -1c
  51. .RI "virtual void \fBdataChanged\fP ()"
  52. .br
  53. .RI "\fBdataChanged()\fP indicates, that the series has been changed\&. "
  54. .in -1c
  55. .SS "Additional Inherited Members"
  56. .SH "Detailed Description"
  57. .PP
  58. Base class for plot items representing a series of samples\&.
  59. .SH "Constructor & Destructor Documentation"
  60. .PP
  61. .SS "QwtPlotSeriesItem::QwtPlotSeriesItem (const QString & title = \fCQString()\fP)\fC [explicit]\fP"
  62. Constructor
  63. .PP
  64. \fBParameters\fP
  65. .RS 4
  66. \fItitle\fP Title of the curve
  67. .RE
  68. .PP
  69. .SS "QwtPlotSeriesItem::QwtPlotSeriesItem (const \fBQwtText\fP & title)\fC [explicit]\fP"
  70. Constructor
  71. .PP
  72. \fBParameters\fP
  73. .RS 4
  74. \fItitle\fP Title of the curve
  75. .RE
  76. .PP
  77. .SH "Member Function Documentation"
  78. .PP
  79. .SS "QRectF QwtPlotSeriesItem::boundingRect () const\fC [virtual]\fP"
  80. .PP
  81. \fBReturns\fP
  82. .RS 4
  83. An invalid bounding rect: QRectF(1\&.0, 1\&.0, -2\&.0, -2\&.0)
  84. .RE
  85. .PP
  86. \fBNote\fP
  87. .RS 4
  88. A width or height < 0\&.0 is ignored by the autoscaler
  89. .RE
  90. .PP
  91. .PP
  92. Reimplemented from \fBQwtPlotItem\fP\&.
  93. .PP
  94. Reimplemented in \fBQwtPlotTradingCurve\fP, \fBQwtPlotMultiBarChart\fP, \fBQwtPlotIntervalCurve\fP, \fBQwtPlotHistogram\fP, and \fBQwtPlotBarChart\fP\&.
  95. .SS "void QwtPlotSeriesItem::draw (QPainter * painter, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QRectF & canvasRect) const\fC [virtual]\fP"
  96. .PP
  97. Draw the complete series\&.
  98. .PP
  99. \fBParameters\fP
  100. .RS 4
  101. \fIpainter\fP Painter
  102. .br
  103. \fIxMap\fP Maps x-values into pixel coordinates\&.
  104. .br
  105. \fIyMap\fP Maps y-values into pixel coordinates\&.
  106. .br
  107. \fIcanvasRect\fP Contents rectangle of the canvas
  108. .RE
  109. .PP
  110. .PP
  111. Implements \fBQwtPlotItem\fP\&.
  112. .SS "virtual void QwtPlotSeriesItem::drawSeries (QPainter * painter, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QRectF & canvasRect, int from, int to) const\fC [pure virtual]\fP"
  113. Draw a subset of the samples
  114. .PP
  115. \fBParameters\fP
  116. .RS 4
  117. \fIpainter\fP Painter
  118. .br
  119. \fIxMap\fP Maps x-values into pixel coordinates\&.
  120. .br
  121. \fIyMap\fP Maps y-values into pixel coordinates\&.
  122. .br
  123. \fIcanvasRect\fP Contents rectangle of the canvas
  124. .br
  125. \fIfrom\fP Index of the first point to be painted
  126. .br
  127. \fIto\fP Index of the last point to be painted\&. If to < 0 the curve will be painted to its last point\&.
  128. .RE
  129. .PP
  130. .PP
  131. Implemented in \fBQwtPlotTradingCurve\fP, \fBQwtPlotMultiBarChart\fP, \fBQwtPlotBarChart\fP, \fBQwtPlotSpectroCurve\fP, \fBQwtPlotIntervalCurve\fP, \fBQwtPlotHistogram\fP, and \fBQwtPlotCurve\fP\&.
  132. .SS "Qt::Orientation QwtPlotSeriesItem::orientation () const"
  133. .PP
  134. \fBReturns\fP
  135. .RS 4
  136. Orientation of the plot item
  137. .RE
  138. .PP
  139. \fBSee also\fP
  140. .RS 4
  141. \fBsetOrientation()\fP
  142. .RE
  143. .PP
  144. .SS "void QwtPlotSeriesItem::setOrientation (Qt::Orientation orientation)"
  145. Set the orientation of the item\&.
  146. .PP
  147. The \fBorientation()\fP might be used in specific way by a plot item\&. F\&.e\&. a \fBQwtPlotCurve\fP uses it to identify how to display the curve int \fBQwtPlotCurve::Steps\fP or \fBQwtPlotCurve::Sticks\fP style\&.
  148. .PP
  149. \fBSee also\fP
  150. .RS 4
  151. \fBorientation()\fP
  152. .RE
  153. .PP
  154. .SS "void QwtPlotSeriesItem::updateScaleDiv (const \fBQwtScaleDiv\fP & xScaleDiv, const \fBQwtScaleDiv\fP & yScaleDiv)\fC [virtual]\fP"
  155. .PP
  156. Update the item to changes of the axes scale division\&. Update the item, when the axes of plot have changed\&. The default implementation does nothing, but items that depend on the scale division (like \fBQwtPlotGrid()\fP) have to reimplement \fBupdateScaleDiv()\fP
  157. .PP
  158. \fBupdateScaleDiv()\fP is only called when the ScaleInterest interest is enabled\&. The default implementation does nothing\&.
  159. .PP
  160. \fBParameters\fP
  161. .RS 4
  162. \fIxScaleDiv\fP Scale division of the x-axis
  163. .br
  164. \fIyScaleDiv\fP Scale division of the y-axis
  165. .RE
  166. .PP
  167. \fBSee also\fP
  168. .RS 4
  169. \fBQwtPlot::updateAxes()\fP, \fBScaleInterest\fP
  170. .RE
  171. .PP
  172. .PP
  173. Reimplemented from \fBQwtPlotItem\fP\&.
  174. .SH "Author"
  175. .PP
  176. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.