QwtPlotSvgItem.3 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. .TH "QwtPlotSvgItem" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtPlotSvgItem \- A plot item, which displays data in Scalable Vector Graphics (SVG) format\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_plot_svgitem\&.h>\fP
  11. .PP
  12. Inherits \fBQwtPlotItem\fP\&.
  13. .SS "Public Member Functions"
  14. .in +1c
  15. .ti -1c
  16. .RI "\fBQwtPlotSvgItem\fP (const QString &\fBtitle\fP=QString())"
  17. .br
  18. .RI "Constructor\&. "
  19. .ti -1c
  20. .RI "\fBQwtPlotSvgItem\fP (const \fBQwtText\fP &\fBtitle\fP)"
  21. .br
  22. .RI "Constructor\&. "
  23. .ti -1c
  24. .RI "virtual \fB~QwtPlotSvgItem\fP ()"
  25. .br
  26. .RI "Destructor\&. "
  27. .ti -1c
  28. .RI "bool \fBloadFile\fP (const QRectF &, const QString &fileName)"
  29. .br
  30. .ti -1c
  31. .RI "bool \fBloadData\fP (const QRectF &, const QByteArray &)"
  32. .br
  33. .ti -1c
  34. .RI "virtual QRectF \fBboundingRect\fP () const"
  35. .br
  36. .RI "Bounding rectangle of the item\&. "
  37. .ti -1c
  38. .RI "virtual void \fBdraw\fP (QPainter *, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QRectF &canvasRect) const"
  39. .br
  40. .ti -1c
  41. .RI "virtual int \fBrtti\fP () const"
  42. .br
  43. .in -1c
  44. .SS "Protected Member Functions"
  45. .in +1c
  46. .ti -1c
  47. .RI "const QSvgRenderer & \fBrenderer\fP () const"
  48. .br
  49. .ti -1c
  50. .RI "QSvgRenderer & \fBrenderer\fP ()"
  51. .br
  52. .ti -1c
  53. .RI "void \fBrender\fP (QPainter *, const QRectF &\fBviewBox\fP, const QRectF &rect) const"
  54. .br
  55. .ti -1c
  56. .RI "QRectF \fBviewBox\fP (const QRectF &rect) const"
  57. .br
  58. .in -1c
  59. .SS "Additional Inherited Members"
  60. .SH "Detailed Description"
  61. .PP
  62. A plot item, which displays data in Scalable Vector Graphics (SVG) format\&.
  63. SVG images are often used to display maps
  64. .SH "Constructor & Destructor Documentation"
  65. .PP
  66. .SS "QwtPlotSvgItem::QwtPlotSvgItem (const QString & title = \fCQString()\fP)\fC [explicit]\fP"
  67. .PP
  68. Constructor\&. Sets the following item attributes:
  69. .IP "\(bu" 2
  70. \fBQwtPlotItem::AutoScale\fP: true
  71. .IP "\(bu" 2
  72. \fBQwtPlotItem::Legend\fP: false
  73. .PP
  74. .PP
  75. \fBParameters\fP
  76. .RS 4
  77. \fItitle\fP Title
  78. .RE
  79. .PP
  80. .SS "QwtPlotSvgItem::QwtPlotSvgItem (const \fBQwtText\fP & title)\fC [explicit]\fP"
  81. .PP
  82. Constructor\&. Sets the following item attributes:
  83. .IP "\(bu" 2
  84. \fBQwtPlotItem::AutoScale\fP: true
  85. .IP "\(bu" 2
  86. \fBQwtPlotItem::Legend\fP: false
  87. .PP
  88. .PP
  89. \fBParameters\fP
  90. .RS 4
  91. \fItitle\fP Title
  92. .RE
  93. .PP
  94. .SH "Member Function Documentation"
  95. .PP
  96. .SS "void QwtPlotSvgItem::draw (QPainter * painter, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QRectF & canvasRect) const\fC [virtual]\fP"
  97. Draw the SVG item
  98. .PP
  99. \fBParameters\fP
  100. .RS 4
  101. \fIpainter\fP Painter
  102. .br
  103. \fIxMap\fP X-Scale Map
  104. .br
  105. \fIyMap\fP Y-Scale Map
  106. .br
  107. \fIcanvasRect\fP Contents rect of the plot canvas
  108. .RE
  109. .PP
  110. .PP
  111. Implements \fBQwtPlotItem\fP\&.
  112. .SS "bool QwtPlotSvgItem::loadData (const QRectF & rect, const QByteArray & data)"
  113. Load SVG data
  114. .PP
  115. \fBParameters\fP
  116. .RS 4
  117. \fIrect\fP Bounding rectangle
  118. .br
  119. \fIdata\fP in SVG format
  120. .RE
  121. .PP
  122. \fBReturns\fP
  123. .RS 4
  124. true, if the SVG data could be loaded
  125. .RE
  126. .PP
  127. .SS "bool QwtPlotSvgItem::loadFile (const QRectF & rect, const QString & fileName)"
  128. Load a SVG file
  129. .PP
  130. \fBParameters\fP
  131. .RS 4
  132. \fIrect\fP Bounding rectangle
  133. .br
  134. \fIfileName\fP SVG file name
  135. .RE
  136. .PP
  137. \fBReturns\fP
  138. .RS 4
  139. true, if the SVG file could be loaded
  140. .RE
  141. .PP
  142. .SS "void QwtPlotSvgItem::render (QPainter * painter, const QRectF & viewBox, const QRectF & rect) const\fC [protected]\fP"
  143. Render the SVG data
  144. .PP
  145. \fBParameters\fP
  146. .RS 4
  147. \fIpainter\fP Painter
  148. .br
  149. \fIviewBox\fP View Box, see QSvgRenderer::viewBox()
  150. .br
  151. \fIrect\fP Target rectangle on the paint device
  152. .RE
  153. .PP
  154. .SS "QSvgRenderer & QwtPlotSvgItem::renderer ()\fC [protected]\fP"
  155. .PP
  156. \fBReturns\fP
  157. .RS 4
  158. Renderer used to render the SVG data
  159. .RE
  160. .PP
  161. .SS "const QSvgRenderer & QwtPlotSvgItem::renderer () const\fC [protected]\fP"
  162. .PP
  163. \fBReturns\fP
  164. .RS 4
  165. Renderer used to render the SVG data
  166. .RE
  167. .PP
  168. .SS "int QwtPlotSvgItem::rtti () const\fC [virtual]\fP"
  169. .PP
  170. \fBReturns\fP
  171. .RS 4
  172. \fBQwtPlotItem::Rtti_PlotSVG\fP
  173. .RE
  174. .PP
  175. .PP
  176. Reimplemented from \fBQwtPlotItem\fP\&.
  177. .SS "QRectF QwtPlotSvgItem::viewBox (const QRectF & rect) const\fC [protected]\fP"
  178. Calculate the view box from rect and \fBboundingRect()\fP\&.
  179. .PP
  180. \fBParameters\fP
  181. .RS 4
  182. \fIrect\fP Rectangle in scale coordinates
  183. .RE
  184. .PP
  185. \fBReturns\fP
  186. .RS 4
  187. View box, see QSvgRenderer::viewBox()
  188. .RE
  189. .PP
  190. .SH "Author"
  191. .PP
  192. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.