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>&nbsp;</td><td>Painter </td></tr>    <tr><td valign="top"></td><td valign="top"><em>xMap</em>&nbsp;</td><td>X-Scale Map </td></tr>    <tr><td valign="top"></td><td valign="top"><em>yMap</em>&nbsp;</td><td>Y-Scale Map </td></tr>    <tr><td valign="top"></td><td valign="top"><em>canvasRect</em>&nbsp;</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 &amp;, const QByteArray &amp;)" --><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">(&nbsp;</td>          <td class="md" nowrap valign="top">const QwtDoubleRect &amp;&nbsp;</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 &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>data</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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>&nbsp;</td><td>Bounding rectangle </td></tr>    <tr><td valign="top"></td><td valign="top"><em>data</em>&nbsp;</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 &amp;, const QString &amp;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">(&nbsp;</td>          <td class="md" nowrap valign="top">const QwtDoubleRect &amp;&nbsp;</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 &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>fileName</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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>&nbsp;</td><td>Bounding rectangle </td></tr>    <tr><td valign="top"></td><td valign="top"><em>fileName</em>&nbsp;</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 &amp;viewBox, const QRect &amp;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">(&nbsp;</td>          <td class="md" nowrap valign="top">QPainter *&nbsp;</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 &amp;&nbsp;</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 &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>rect</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</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>      &nbsp;    </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>&nbsp;</td><td>Painter </td></tr>    <tr><td valign="top"></td><td valign="top"><em>viewBox</em>&nbsp;</td><td>View Box, see QSvgRenderer::viewBox </td></tr>    <tr><td valign="top"></td><td valign="top"><em>rect</em>&nbsp;</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">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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 &amp;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">(&nbsp;</td>          <td class="md" nowrap valign="top">const QwtDoubleRect &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>rect</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </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>&nbsp;</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&nbsp;<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 + -
显示快捷键?