class_qwt_array_data.html

来自「QWT5.01用于Qt开发的二维图形库程序」· HTML 代码 · 共 442 行 · 第 1/2 页

HTML
442
字号
<!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&apos;s Guide: QwtArrayData 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&nbsp;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&nbsp;Pages</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>  </ul></div><h1>QwtArrayData Class Reference</h1><!-- doxytag: class="QwtArrayData" --><!-- doxytag: inherits="QwtData" -->Inheritance diagram for QwtArrayData:<p><center><img src="class_qwt_array_data__inherit__graph.png" border="0" usemap="#_qwt_array_data__inherit__map" alt="Inheritance graph"></center><map name="_qwt_array_data__inherit__map"><area href="class_qwt_data.html" shape="rect" coords="21,8,96,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtArrayData:<p><center><img src="class_qwt_array_data__coll__graph.png" border="0" usemap="#_qwt_array_data__coll__map" alt="Collaboration graph"></center><map name="_qwt_array_data__coll__map"><area href="class_qwt_data.html" shape="rect" coords="21,8,96,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_array_data-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>Data class containing two QwtArray&lt;double&gt; objects. <p><p>Definition at line <a class="el" href="qwt__data_8h-source.html#l00119">119</a> of file <a class="el" href="qwt__data_8h-source.html">qwt_data.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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_array_data.html#f9f8b1805a8809ababe82cb9df213928">QwtArrayData</a> (const QwtArray&lt; double &gt; &amp;x, const QwtArray&lt; double &gt; &amp;y)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_array_data.html#03728582378006122e8138aeee0f0ca5">QwtArrayData</a> (const double *x, const double *y, size_t size)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_array_data.html">QwtArrayData</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_array_data.html#95fc3e82d7a76775ec082ec063656d07">operator=</a> (const <a class="el" href="class_qwt_array_data.html">QwtArrayData</a> &amp;)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="class_qwt_data.html">QwtData</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_array_data.html#9afcbf6cbd1f080b97c74ce1607d8456">copy</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_array_data.html#e7d5991e85c8d32c8945e67dc3bd88db">size</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_array_data.html#12d08694fd95fd5ad568ffc07d6f1103">x</a> (size_t i) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_array_data.html#4ff85108ee8735fb1be9905dc6af22a6">y</a> (size_t i) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const QwtArray&lt; double &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_array_data.html#6cf465f29e1149a658104bab6b914656">xData</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">const QwtArray&lt; double &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_array_data.html#5c4a781499f62c6d0b5e33a847d35145">yData</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QwtDoubleRect&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_array_data.html#0cb028fcbd48980839eab90c3fdac2d5">boundingRect</a> () const </td></tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="f9f8b1805a8809ababe82cb9df213928"></a><!-- doxytag: member="QwtArrayData::QwtArrayData" ref="f9f8b1805a8809ababe82cb9df213928" args="(const QwtArray&lt; double &gt; &amp;x, const QwtArray&lt; double &gt; &amp;y)" --><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">QwtArrayData::QwtArrayData           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QwtArray&lt; double &gt; &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>x</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QwtArray&lt; double &gt; &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>y</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>Constructor<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>x</em>&nbsp;</td><td>Array of x values </td></tr>    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>Array of y values</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_curve.html#1dc2caaddb1733703b5fcfbe19f29fe8">QwtPlotCurve::setData</a> </dd></dl><p>Definition at line <a class="el" href="qwt__data_8cpp-source.html#l00141">141</a> of file <a class="el" href="qwt__data_8cpp-source.html">qwt_data.cpp</a>.<p>Referenced by <a class="el" href="qwt__data_8cpp-source.html#l00227">copy()</a>.    </td>  </tr></table><a class="anchor" name="03728582378006122e8138aeee0f0ca5"></a><!-- doxytag: member="QwtArrayData::QwtArrayData" ref="03728582378006122e8138aeee0f0ca5" args="(const double *x, const double *y, size_t size)" --><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">QwtArrayData::QwtArrayData           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const double *&nbsp;</td>          <td class="mdname" nowrap> <em>x</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const double *&nbsp;</td>          <td class="mdname" nowrap> <em>y</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>size_t&nbsp;</td>          <td class="mdname" nowrap> <em>size</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>Constructor<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>x</em>&nbsp;</td><td>Array of x values </td></tr>    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>Array of y values </td></tr>    <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>Size of the x and y arrays </td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_curve.html#1dc2caaddb1733703b5fcfbe19f29fe8">QwtPlotCurve::setData</a> </dd></dl><p>Definition at line <a class="el" href="qwt__data_8cpp-source.html#l00156">156</a> of file <a class="el" href="qwt__data_8cpp-source.html">qwt_data.cpp</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="0cb028fcbd48980839eab90c3fdac2d5"></a><!-- doxytag: member="QwtArrayData::boundingRect" ref="0cb028fcbd48980839eab90c3fdac2d5" 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 QwtArrayData::boundingRect           </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>Returns the bounding rectangle of the data. If there is no bounding rect, like for empty data the rectangle is invalid: QwtDoubleRect::isValid() == false <p>Reimplemented from <a class="el" href="class_qwt_data.html#d72b6842ce6af1f61f9643786d63a91f">QwtData</a>.<p>Definition at line <a class="el" href="qwt__data_8cpp-source.html#l00237">237</a> of file <a class="el" href="qwt__data_8cpp-source.html">qwt_data.cpp</a>.<p>References <a class="el" href="qwt__data_8cpp-source.html#l00185">size()</a>.    </td>  </tr></table><a class="anchor" name="9afcbf6cbd1f080b97c74ce1607d8456"></a><!-- doxytag: member="QwtArrayData::copy" ref="9afcbf6cbd1f080b97c74ce1607d8456" 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"><a class="el" href="class_qwt_data.html">QwtData</a> * QwtArrayData::copy           </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>Pointer to a copy (virtual copy constructor) </dd></dl>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?