123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.20"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Qwt User's Guide: QwtSeriesData< T > Class Template Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="navtreedata.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">Qwt User's Guide
-  <span id="projectnumber">6.1.6</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.20 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- /* @license-end */</script>
- <div id="main-nav"></div>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(document).ready(function(){initNavTree('class_qwt_series_data.html',''); initResizable(); });
- /* @license-end */
- </script>
- <div id="doc-content">
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div class="header">
- <div class="summary">
- <a href="#pub-methods">Public Member Functions</a> |
- <a href="#pro-attribs">Protected Attributes</a> |
- <a href="class_qwt_series_data-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">QwtSeriesData< T > Class Template Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
- </div><!--header-->
- <div class="contents">
- <p>Abstract interface for iterating over samples.
- <a href="class_qwt_series_data.html#details">More...</a></p>
- <p><code>#include <<a class="el" href="qwt__series__data_8h_source.html">qwt_series_data.h</a>></code></p>
- <div class="dynheader">
- Inheritance diagram for QwtSeriesData< T >:</div>
- <div class="dyncontent">
- <div class="center"><img src="class_qwt_series_data__inherit__graph.png" border="0" usemap="#a_qwt_series_data_3_01_t_01_4_inherit__map" alt="Inheritance graph"/></div>
- <map name="_qwt_series_data_3_01_t_01_4_inherit__map" id="a_qwt_series_data_3_01_t_01_4_inherit__map">
- <area shape="rect" title="Abstract interface for iterating over samples." alt="" coords="21,5,164,32"/>
- <area shape="rect" href="class_qwt_array_series_data.html" title="Template class for data, that is organized as QVector." alt="" coords="5,80,180,107"/>
- </map>
- <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
- Public Member Functions</h2></td></tr>
- <tr class="memitem:a3f075340d18fb112a342d74716eb8d9c"><td class="memItemLeft" align="right" valign="top"><a id="a3f075340d18fb112a342d74716eb8d9c"></a>
-  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_series_data.html#a3f075340d18fb112a342d74716eb8d9c">QwtSeriesData</a> ()</td></tr>
- <tr class="memdesc:a3f075340d18fb112a342d74716eb8d9c"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br /></td></tr>
- <tr class="separator:a3f075340d18fb112a342d74716eb8d9c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a841a56f909879d599a385b9c3d046745"><td class="memItemLeft" align="right" valign="top"><a id="a841a56f909879d599a385b9c3d046745"></a>
- virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_series_data.html#a841a56f909879d599a385b9c3d046745">~QwtSeriesData</a> ()</td></tr>
- <tr class="memdesc:a841a56f909879d599a385b9c3d046745"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
- <tr class="separator:a841a56f909879d599a385b9c3d046745"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a3cfe5b26fc55a887ac85b0103ae80a3e"><td class="memItemLeft" align="right" valign="top">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_series_data.html#a3cfe5b26fc55a887ac85b0103ae80a3e">size</a> () const =0</td></tr>
- <tr class="separator:a3cfe5b26fc55a887ac85b0103ae80a3e"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae8650d16c07c58f01897ab48658a3266"><td class="memItemLeft" align="right" valign="top">virtual T </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_series_data.html#ae8650d16c07c58f01897ab48658a3266">sample</a> (size_t i) const =0</td></tr>
- <tr class="separator:ae8650d16c07c58f01897ab48658a3266"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aedb969ba51a27d88d26ad7f7cb1c2c7f"><td class="memItemLeft" align="right" valign="top">virtual QRectF </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_series_data.html#aedb969ba51a27d88d26ad7f7cb1c2c7f">boundingRect</a> () const =0</td></tr>
- <tr class="separator:aedb969ba51a27d88d26ad7f7cb1c2c7f"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a391b4601a7454b2f9582fbc2662d108e"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_series_data.html#a391b4601a7454b2f9582fbc2662d108e">setRectOfInterest</a> (const QRectF &rect)</td></tr>
- <tr class="separator:a391b4601a7454b2f9582fbc2662d108e"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
- Protected Attributes</h2></td></tr>
- <tr class="memitem:a24fbbcb0baa0c728117d2e6764d00414"><td class="memItemLeft" align="right" valign="top"><a id="a24fbbcb0baa0c728117d2e6764d00414"></a>
- QRectF </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_series_data.html#a24fbbcb0baa0c728117d2e6764d00414">d_boundingRect</a></td></tr>
- <tr class="memdesc:a24fbbcb0baa0c728117d2e6764d00414"><td class="mdescLeft"> </td><td class="mdescRight">Can be used to cache a calculated bounding rectangle. <br /></td></tr>
- <tr class="separator:a24fbbcb0baa0c728117d2e6764d00414"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><h3>template<typename T><br />
- class QwtSeriesData< T ></h3>
- <p>Abstract interface for iterating over samples. </p>
- <p>Qwt offers several implementations of the <a class="el" href="class_qwt_series_data.html" title="Abstract interface for iterating over samples.">QwtSeriesData</a> API, but in situations, where data of an application specific format needs to be displayed, without having to copy it, it is recommended to implement an individual data access.</p>
- <p>A subclass of <a class="el" href="class_qwt_series_data.html">QwtSeriesData<QPointF></a> must implement:</p>
- <ul>
- <li><a class="el" href="class_qwt_series_data.html#a3cfe5b26fc55a887ac85b0103ae80a3e">size()</a><br />
- Should return number of data points.</li>
- <li><a class="el" href="class_qwt_series_data.html#ae8650d16c07c58f01897ab48658a3266">sample()</a><br />
- Should return values x and y values of the sample at specific position as QPointF object.</li>
- <li><a class="el" href="class_qwt_series_data.html#aedb969ba51a27d88d26ad7f7cb1c2c7f">boundingRect()</a><br />
- Should return the bounding rectangle of the data series. It is used for autoscaling and might help certain algorithms for displaying the data. You can use qwtBoundingRect() for an implementation but often it is possible to implement a more efficient algorithm depending on the characteristics of the series. The member d_boundingRect is intended for caching the calculated rectangle. </li>
- </ul>
- </div><h2 class="groupheader">Member Function Documentation</h2>
- <a id="aedb969ba51a27d88d26ad7f7cb1c2c7f"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aedb969ba51a27d88d26ad7f7cb1c2c7f">◆ </a></span>boundingRect()</h2>
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename T > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">virtual QRectF <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< T >::boundingRect </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Calculate the bounding rect of all samples</p>
- <p>The bounding rect is necessary for autoscaling and can be used for a couple of painting optimizations.</p>
- <p>qwtBoundingRect(...) offers slow implementations iterating over the samples. For large sets it is recommended to implement something faster f.e. by caching the bounding rectangle.</p>
- <dl class="section return"><dt>Returns</dt><dd>Bounding rectangle </dd></dl>
- </div>
- </div>
- <a id="ae8650d16c07c58f01897ab48658a3266"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ae8650d16c07c58f01897ab48658a3266">◆ </a></span>sample()</h2>
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename T > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">virtual T <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< T >::sample </td>
- <td>(</td>
- <td class="paramtype">size_t </td>
- <td class="paramname"><em>i</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Return a sample </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">i</td><td>Index </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Sample at position i </dd></dl>
- <p>Implemented in <a class="el" href="class_qwt_array_series_data.html#a370320fa49b8056656b61f4df79b778b">QwtArraySeriesData< T ></a>, <a class="el" href="class_qwt_array_series_data.html#a370320fa49b8056656b61f4df79b778b">QwtArraySeriesData< QwtIntervalSample ></a>, <a class="el" href="class_qwt_array_series_data.html#a370320fa49b8056656b61f4df79b778b">QwtArraySeriesData< QwtOHLCSample ></a>, <a class="el" href="class_qwt_array_series_data.html#a370320fa49b8056656b61f4df79b778b">QwtArraySeriesData< QPointF ></a>, <a class="el" href="class_qwt_array_series_data.html#a370320fa49b8056656b61f4df79b778b">QwtArraySeriesData< QwtPoint3D ></a>, <a class="el" href="class_qwt_array_series_data.html#a370320fa49b8056656b61f4df79b778b">QwtArraySeriesData< QwtSetSample ></a>, <a class="el" href="class_qwt_synthetic_point_data.html#ac8be76b9c09c80fec51c978ad020aaec">QwtSyntheticPointData</a>, <a class="el" href="class_qwt_c_pointer_data.html#a7e6e149f5eadd13dd9ed5e1343f09527">QwtCPointerData</a>, and <a class="el" href="class_qwt_point_array_data.html#a10885ad1783151831a11f1cc659a98c5">QwtPointArrayData</a>.</p>
- </div>
- </div>
- <a id="a391b4601a7454b2f9582fbc2662d108e"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a391b4601a7454b2f9582fbc2662d108e">◆ </a></span>setRectOfInterest()</h2>
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename T > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< T >::setRectOfInterest </td>
- <td>(</td>
- <td class="paramtype">const QRectF & </td>
- <td class="paramname"><em>rect</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set a the "rect of interest"</p>
- <p><a class="el" href="class_qwt_plot_series_item.html" title="Base class for plot items representing a series of samples.">QwtPlotSeriesItem</a> defines the current area of the plot canvas as "rectangle of interest" ( <a class="el" href="class_qwt_plot_series_item.html#a890792d0f44e341812b5283c249608b2" title="Update the item to changes of the axes scale division.">QwtPlotSeriesItem::updateScaleDiv()</a> ). It can be used to implement different levels of details.</p>
- <p>The default implementation does nothing.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">rect</td><td>Rectangle of interest </td></tr>
- </table>
- </dd>
- </dl>
- <p>Reimplemented in <a class="el" href="class_qwt_synthetic_point_data.html#a39cc8512e7d8beecde003f7781174b84">QwtSyntheticPointData</a>.</p>
- </div>
- </div>
- <a id="a3cfe5b26fc55a887ac85b0103ae80a3e"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a3cfe5b26fc55a887ac85b0103ae80a3e">◆ </a></span>size()</h2>
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<typename T > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">virtual size_t <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< T >::size </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>Number of samples </dd></dl>
- <p>Implemented in <a class="el" href="class_qwt_array_series_data.html#ab6cf4d74d9c429bd0479572659534cce">QwtArraySeriesData< T ></a>, <a class="el" href="class_qwt_array_series_data.html#ab6cf4d74d9c429bd0479572659534cce">QwtArraySeriesData< QwtIntervalSample ></a>, <a class="el" href="class_qwt_array_series_data.html#ab6cf4d74d9c429bd0479572659534cce">QwtArraySeriesData< QwtOHLCSample ></a>, <a class="el" href="class_qwt_array_series_data.html#ab6cf4d74d9c429bd0479572659534cce">QwtArraySeriesData< QPointF ></a>, <a class="el" href="class_qwt_array_series_data.html#ab6cf4d74d9c429bd0479572659534cce">QwtArraySeriesData< QwtPoint3D ></a>, and <a class="el" href="class_qwt_array_series_data.html#ab6cf4d74d9c429bd0479572659534cce">QwtArraySeriesData< QwtSetSample ></a>.</p>
- </div>
- </div>
- </div><!-- contents -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="navelem"><a class="el" href="class_qwt_series_data.html">QwtSeriesData</a></li>
- <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
- </ul>
- </div>
- </body>
- </html>
|