class_qwt_plot_svg_item.html
来自「QWT5.01用于Qt开发的二维图形库程序」· HTML 代码 · 共 505 行 · 第 1/2 页
HTML
505 行
<p>Draw the SVG item<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr> <tr><td valign="top"></td><td valign="top"><em>xMap</em> </td><td>X-Scale Map </td></tr> <tr><td valign="top"></td><td valign="top"><em>yMap</em> </td><td>Y-Scale Map </td></tr> <tr><td valign="top"></td><td valign="top"><em>canvasRect</em> </td><td>Contents rect of the plot canvas </td></tr> </table></dl><p>Implements <a class="el" href="class_qwt_plot_item.html#5483623e4fd1ae85b06b93523784358b">QwtPlotItem</a>.<p>Definition at line <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00170">170</a> of file <a class="el" href="qwt__plot__svgitem_8cpp-source.html">qwt_plot_svgitem.cpp</a>.<p>References <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00142">boundingRect()</a>, <a class="el" href="qwt__plot__item_8cpp-source.html#l00526">QwtPlotItem::invTransform()</a>, <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00194">render()</a>, <a class="el" href="qwt__plot__item_8cpp-source.html#l00501">QwtPlotItem::transform()</a>, and <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00254">viewBox()</a>. </td> </tr></table><a class="anchor" name="f40a77332482f79aa4d5254a9123508d"></a><!-- doxytag: member="QwtPlotSvgItem::loadData" ref="f40a77332482f79aa4d5254a9123508d" args="(const QwtDoubleRect &, const QByteArray &)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">bool QwtPlotSvgItem::loadData </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const QwtDoubleRect & </td> <td class="mdname" nowrap> <em>rect</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const QByteArray & </td> <td class="mdname" nowrap> <em>data</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Load SVG data<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>rect</em> </td><td>Bounding rectangle </td></tr> <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>in SVG format</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>true, if the SVG data could be loaded </dd></dl><p>Definition at line <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00123">123</a> of file <a class="el" href="qwt__plot__svgitem_8cpp-source.html">qwt_plot_svgitem.cpp</a>.<p>References <a class="el" href="qwt__plot__item_8cpp-source.html#l00286">QwtPlotItem::itemChanged()</a>. </td> </tr></table><a class="anchor" name="b85890e7f1d89616c99fe34fa29f5d8f"></a><!-- doxytag: member="QwtPlotSvgItem::loadFile" ref="b85890e7f1d89616c99fe34fa29f5d8f" args="(const QwtDoubleRect &, const QString &fileName)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">bool QwtPlotSvgItem::loadFile </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const QwtDoubleRect & </td> <td class="mdname" nowrap> <em>rect</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const QString & </td> <td class="mdname" nowrap> <em>fileName</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Load a SVG file<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>rect</em> </td><td>Bounding rectangle </td></tr> <tr><td valign="top"></td><td valign="top"><em>fileName</em> </td><td>SVG file name</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>true, if the SVG file could be loaded </dd></dl><p>Definition at line <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00102">102</a> of file <a class="el" href="qwt__plot__svgitem_8cpp-source.html">qwt_plot_svgitem.cpp</a>.<p>References <a class="el" href="qwt__plot__item_8cpp-source.html#l00286">QwtPlotItem::itemChanged()</a>. </td> </tr></table><a class="anchor" name="80d8b81daf93969e8e3a48ba244854d9"></a><!-- doxytag: member="QwtPlotSvgItem::render" ref="80d8b81daf93969e8e3a48ba244854d9" args="(QPainter *painter, const QwtDoubleRect &viewBox, const QRect &rect) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void QwtPlotSvgItem::render </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">QPainter * </td> <td class="mdname" nowrap> <em>painter</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const QwtDoubleRect & </td> <td class="mdname" nowrap> <em>viewBox</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const QRect & </td> <td class="mdname" nowrap> <em>rect</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"> const<code> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Render the SVG data<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr> <tr><td valign="top"></td><td valign="top"><em>viewBox</em> </td><td>View Box, see QSvgRenderer::viewBox </td></tr> <tr><td valign="top"></td><td valign="top"><em>rect</em> </td><td>Traget rectangle on the paint device </td></tr> </table></dl><p>Definition at line <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00194">194</a> of file <a class="el" href="qwt__plot__svgitem_8cpp-source.html">qwt_plot_svgitem.cpp</a>.<p>Referenced by <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00170">draw()</a>. </td> </tr></table><a class="anchor" name="4331deca8a2ecdd6a7ebe1be7de22969"></a><!-- doxytag: member="QwtPlotSvgItem::rtti" ref="4331deca8a2ecdd6a7ebe1be7de22969" args="() const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int QwtPlotSvgItem::rtti </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>Returns:</b></dt><dd>QwtPlotItem::Rtti_PlotSVG </dd></dl><p>Reimplemented from <a class="el" href="class_qwt_plot_item.html#f153b5a40a60ac626f1c58e69fc4ecad">QwtPlotItem</a>.<p>Definition at line <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00089">89</a> of file <a class="el" href="qwt__plot__svgitem_8cpp-source.html">qwt_plot_svgitem.cpp</a>. </td> </tr></table><a class="anchor" name="c8e4baf861294607837d1c4951687b1e"></a><!-- doxytag: member="QwtPlotSvgItem::viewBox" ref="c8e4baf861294607837d1c4951687b1e" args="(const QwtDoubleRect &area) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">QwtDoubleRect QwtPlotSvgItem::viewBox </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const QwtDoubleRect & </td> <td class="mdname1" valign="top" nowrap> <em>rect</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Calculate the viewBox from an rect and <a class="el" href="class_qwt_plot_svg_item.html#6d93e375e320cef36e00e88a8d9b7b36">boundingRect()</a>.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>rect</em> </td><td>Rectangle in scale coordinates </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>viewBox View Box, see QSvgRenderer::viewBox </dd></dl><p>Definition at line <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00254">254</a> of file <a class="el" href="qwt__plot__svgitem_8cpp-source.html">qwt_plot_svgitem.cpp</a>.<p>References <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00142">boundingRect()</a>, <a class="el" href="qwt__scale__map_8cpp-source.html#l00180">QwtScaleMap::setPaintInterval()</a>, <a class="el" href="qwt__scale__map_8cpp-source.html#l00153">QwtScaleMap::setScaleInterval()</a>, and <a class="el" href="qwt__scale__map_8h-source.html#l00146">QwtScaleMap::xTransform()</a>.<p>Referenced by <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00170">draw()</a>. </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:25:29 2007 for Qwt User's Guide by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?