class_qwt_plot_svg_item.html
来自「QWT5.01用于Qt开发的二维图形库程序」· HTML 代码 · 共 505 行 · 第 1/2 页
HTML
505 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Qwt User's Guide: QwtPlotSvgItem Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.6 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li id="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div><h1>QwtPlotSvgItem Class Reference</h1><!-- doxytag: class="QwtPlotSvgItem" --><!-- doxytag: inherits="QwtPlotItem" -->Inheritance diagram for QwtPlotSvgItem:<p><center><img src="class_qwt_plot_svg_item__inherit__graph.png" border="0" usemap="#_qwt_plot_svg_item__inherit__map" alt="Inheritance graph"></center><map name="_qwt_plot_svg_item__inherit__map"><area href="class_qwt_plot_item.html" shape="rect" coords="19,8,112,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtPlotSvgItem:<p><center><img src="class_qwt_plot_svg_item__coll__graph.png" border="0" usemap="#_qwt_plot_svg_item__coll__map" alt="Collaboration graph"></center><map name="_qwt_plot_svg_item__coll__map"><area href="class_qwt_plot_item.html" shape="rect" coords="19,8,112,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_plot_svg_item-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>A plot item, which displays data in Scalable Vector Graphics (SVG) format. <p>SVG images are often used to display maps <p><p>Definition at line <a class="el" href="qwt__plot__svgitem_8h-source.html#l00031">31</a> of file <a class="el" href="qwt__plot__svgitem_8h-source.html">qwt_plot_svgitem.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_svg_item.html#3b6e505f0ef1d9e40030db2a8b60762e">QwtPlotSvgItem</a> (const QString &title=QString::null)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_svg_item.html#c750a4ff902302ab485971fcea6bee38">QwtPlotSvgItem</a> (const <a class="el" href="class_qwt_text.html">QwtText</a> &title)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_svg_item.html#4509baf861772124c71abd1b6514b319">~QwtPlotSvgItem</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_svg_item.html#b85890e7f1d89616c99fe34fa29f5d8f">loadFile</a> (const QwtDoubleRect &, const QString &fileName)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_svg_item.html#f40a77332482f79aa4d5254a9123508d">loadData</a> (const QwtDoubleRect &, const QByteArray &)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QwtDoubleRect </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_svg_item.html#6d93e375e320cef36e00e88a8d9b7b36">boundingRect</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_svg_item.html#92bad3b08f42f1ac9399b48b734b4c44">draw</a> (QPainter *p, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &yMap, const QRect &rect) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_svg_item.html#4331deca8a2ecdd6a7ebe1be7de22969">rtti</a> () const </td></tr><tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_svg_item.html#80d8b81daf93969e8e3a48ba244854d9">render</a> (QPainter *painter, const QwtDoubleRect &viewBox, const QRect &rect) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">QwtDoubleRect </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_svg_item.html#c8e4baf861294607837d1c4951687b1e">viewBox</a> (const QwtDoubleRect &area) const </td></tr></table><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="3b6e505f0ef1d9e40030db2a8b60762e"></a><!-- doxytag: member="QwtPlotSvgItem::QwtPlotSvgItem" ref="3b6e505f0ef1d9e40030db2a8b60762e" args="(const QString &title=QString::null)" --><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">QwtPlotSvgItem::QwtPlotSvgItem </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const QString & </td> <td class="mdname1" valign="top" nowrap> <em>title</em> = <code>QString::null</code> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [explicit]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Constructor. <p>Sets the following item attributes:<ul><li>QwtPlotItem::AutoScale: true</li><li>QwtPlotItem::Legend: false</li></ul><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>title</em> </td><td>Title </td></tr> </table></dl><p>Definition at line <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00051">51</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="c750a4ff902302ab485971fcea6bee38"></a><!-- doxytag: member="QwtPlotSvgItem::QwtPlotSvgItem" ref="c750a4ff902302ab485971fcea6bee38" args="(const QwtText &title)" --><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">QwtPlotSvgItem::QwtPlotSvgItem </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="class_qwt_text.html">QwtText</a> & </td> <td class="mdname1" valign="top" nowrap> <em>title</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [explicit]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Constructor. <p>Sets the following item attributes:<ul><li>QwtPlotItem::AutoScale: true</li><li>QwtPlotItem::Legend: false</li></ul><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>title</em> </td><td>Title </td></tr> </table></dl><p>Definition at line <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00066">66</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="4509baf861772124c71abd1b6514b319"></a><!-- doxytag: member="QwtPlotSvgItem::~QwtPlotSvgItem" ref="4509baf861772124c71abd1b6514b319" args="()" --><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">QwtPlotSvgItem::~QwtPlotSvgItem </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Destructor. <p><p>Definition at line <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00073">73</a> of file <a class="el" href="qwt__plot__svgitem_8cpp-source.html">qwt_plot_svgitem.cpp</a>. </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="6d93e375e320cef36e00e88a8d9b7b36"></a><!-- doxytag: member="QwtPlotSvgItem::boundingRect" ref="6d93e375e320cef36e00e88a8d9b7b36" 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">QwtDoubleRect QwtPlotSvgItem::boundingRect </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>Bounding rect of the item. <p><p>Reimplemented from <a class="el" href="class_qwt_plot_item.html#4c2c1c77421229383b3c43cb777e3bfe">QwtPlotItem</a>.<p>Definition at line <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00142">142</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>, and <a class="el" href="qwt__plot__svgitem_8cpp-source.html#l00254">viewBox()</a>. </td> </tr></table><a class="anchor" name="92bad3b08f42f1ac9399b48b734b4c44"></a><!-- doxytag: member="QwtPlotSvgItem::draw" ref="92bad3b08f42f1ac9399b48b734b4c44" args="(QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, 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::draw </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 <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td> <td class="mdname" nowrap> <em>xMap</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td> <td class="mdname" nowrap> <em>yMap</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>canvasRect</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?