1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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"/>
<title>Qwt User's Guide: QwtData Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Qwt User's Guide <span id="projectnumber">5.2.2</span></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pro-methods">Protected Member Functions</a> </div>
<div class="headertitle">
<h1>QwtData Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="QwtData" -->
<p><a class="el" href="class_qwt_data.html" title="QwtData defines an interface to any type of curve data.">QwtData</a> defines an interface to any type of curve data.
<a href="#_details">More...</a></p>
<p><code>#include <<a class="el" href="qwt__data_8h_source.html">qwt_data.h</a>></code></p>
<div class="dynheader">
Inheritance diagram for QwtData:</div>
<div class="dyncontent">
<div class="center"><img src="class_qwt_data__inherit__graph.png" border="0" usemap="#_qwt_data_inherit__map" alt="Inheritance graph"/></div>
<map name="_qwt_data_inherit__map" id="_qwt_data_inherit__map">
<area shape="rect" id="node3" href="class_qwt_array_data.html" title="Data class containing two QwtArray<double> objects." alt="" coords="5,86,107,117"/><area shape="rect" id="node5" href="class_qwt_c_pointer_data.html" title="Data class containing two pointers to memory blocks of doubles." alt="" coords="131,86,251,117"/><area shape="rect" id="node7" href="class_qwt_polygon_f_data.html" title="Data class containing a single QwtArray<QwtDoublePoint> object." alt="" coords="275,86,400,117"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="class_qwt_data-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QwtDoubleRect </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_data.html#ad72b6842ce6af1f61f9643786d63a91f">boundingRect</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_qwt_data.html">QwtData</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_data.html#a8531a1add1f0b2d12809f90f97fd80c9">copy</a> () const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_data.html#ade45c6c6d06b5fb4d1332b49168a008b">QwtData</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_data.html#a6028c06e7e72de98fb7a8a3ec6acdf47">size</a> () const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_data.html#a922401ada56fc6dd3ccbeb1cfcdcfe28">x</a> (size_t i) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_data.html#a6a160842c98ddd98a65fd229776c324c">y</a> (size_t i) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_data.html#a6c813cff34e61a74f3a146177424f473">~QwtData</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_data.html">QwtData</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_data.html#a3615d59935a028b66202ab5fcde3ec31">operator=</a> (const <a class="el" href="class_qwt_data.html">QwtData</a> &)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_qwt_data.html" title="QwtData defines an interface to any type of curve data.">QwtData</a> defines an interface to any type of curve data. </p>
<p>Classes, derived from <a class="el" href="class_qwt_data.html" title="QwtData defines an interface to any type of curve data.">QwtData</a> may:</p>
<ul>
<li>store the data in almost any type of container</li>
<li>calculate the data on the fly instead of storing it </li>
</ul>
</div><hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="ade45c6c6d06b5fb4d1332b49168a008b"></a><!-- doxytag: member="QwtData::QwtData" ref="ade45c6c6d06b5fb4d1332b49168a008b" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QwtData::QwtData </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructor. </p>
</div>
</div>
<a class="anchor" id="a6c813cff34e61a74f3a146177424f473"></a><!-- doxytag: member="QwtData::~QwtData" ref="a6c813cff34e61a74f3a146177424f473" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QwtData::~QwtData </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Destructor. </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad72b6842ce6af1f61f9643786d63a91f"></a><!-- doxytag: member="QwtData::boundingRect" ref="ad72b6842ce6af1f61f9643786d63a91f" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QwtDoubleRect QwtData::boundingRect </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<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>
<dl class="warning"><dt><b>Warning:</b></dt><dd>This is an slow implementation iterating over all points. It is intended to be overloaded by derived classes. In case of auto scaling <a class="el" href="class_qwt_data.html#ad72b6842ce6af1f61f9643786d63a91f">boundingRect()</a> is called for every replot, so it might be worth to implement a cache, or use x(0), x(<a class="el" href="class_qwt_data.html#a6028c06e7e72de98fb7a8a3ec6acdf47">size()</a> - 1) for ordered data ... </dd></dl>
<p>Reimplemented in <a class="el" href="class_qwt_array_data.html#a0cb028fcbd48980839eab90c3fdac2d5">QwtArrayData</a>, and <a class="el" href="class_qwt_c_pointer_data.html#afa08cb9715db81f68bcf87f8a37a71ea">QwtCPointerData</a>.</p>
</div>
</div>
<a class="anchor" id="a8531a1add1f0b2d12809f90f97fd80c9"></a><!-- doxytag: member="QwtData::copy" ref="a8531a1add1f0b2d12809f90f97fd80c9" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="class_qwt_data.html">QwtData</a>* QwtData::copy </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to a copy (virtual copy constructor) </dd></dl>
<p>Implemented in <a class="el" href="class_qwt_polygon_f_data.html#a3e8e8809e6bbb8efb8bbed5b8044644f">QwtPolygonFData</a>, <a class="el" href="class_qwt_array_data.html#a9afcbf6cbd1f080b97c74ce1607d8456">QwtArrayData</a>, and <a class="el" href="class_qwt_c_pointer_data.html#a02a09662881df362369bf078842d1380">QwtCPointerData</a>.</p>
</div>
</div>
<a class="anchor" id="a3615d59935a028b66202ab5fcde3ec31"></a><!-- doxytag: member="QwtData::operator=" ref="a3615d59935a028b66202ab5fcde3ec31" args="(const QwtData &)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_qwt_data.html">QwtData</a>& QwtData::operator= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="class_qwt_data.html">QwtData</a> & </td>
<td class="paramname"></td><td>)</td>
<td><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Assignment operator (virtualized) </p>
</div>
</div>
<a class="anchor" id="a6028c06e7e72de98fb7a8a3ec6acdf47"></a><!-- doxytag: member="QwtData::size" ref="a6028c06e7e72de98fb7a8a3ec6acdf47" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual size_t QwtData::size </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>Size of the data set </dd></dl>
<p>Implemented in <a class="el" href="class_qwt_polygon_f_data.html#a3a002042c6c0b0bf35e7172c37a6c1b2">QwtPolygonFData</a>, <a class="el" href="class_qwt_array_data.html#ae7d5991e85c8d32c8945e67dc3bd88db">QwtArrayData</a>, and <a class="el" href="class_qwt_c_pointer_data.html#a780b9ae434856509cef9bbe954f03a3e">QwtCPointerData</a>.</p>
</div>
</div>
<a class="anchor" id="a922401ada56fc6dd3ccbeb1cfcdcfe28"></a><!-- doxytag: member="QwtData::x" ref="a922401ada56fc6dd3ccbeb1cfcdcfe28" args="(size_t i) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual double QwtData::x </td>
<td>(</td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>i</em></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return the x value of data point i </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">i</td><td>Index </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>x X value of data point i </dd></dl>
<p>Implemented in <a class="el" href="class_qwt_polygon_f_data.html#aca74b3b767c5fd2567215583d3712425">QwtPolygonFData</a>, <a class="el" href="class_qwt_array_data.html#a12d08694fd95fd5ad568ffc07d6f1103">QwtArrayData</a>, and <a class="el" href="class_qwt_c_pointer_data.html#a178b1e84039edee9eadd5a849559c882">QwtCPointerData</a>.</p>
</div>
</div>
<a class="anchor" id="a6a160842c98ddd98a65fd229776c324c"></a><!-- doxytag: member="QwtData::y" ref="a6a160842c98ddd98a65fd229776c324c" args="(size_t i) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual double QwtData::y </td>
<td>(</td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>i</em></td><td>)</td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return the y value of data point i </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">i</td><td>Index </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>y Y value of data point i </dd></dl>
<p>Implemented in <a class="el" href="class_qwt_polygon_f_data.html#a3b762f31fd970ec7ce9706930f33c1aa">QwtPolygonFData</a>, <a class="el" href="class_qwt_array_data.html#a4ff85108ee8735fb1be9905dc6af22a6">QwtArrayData</a>, and <a class="el" href="class_qwt_c_pointer_data.html#a792eaf93b84f8ec97c4e742ec6ff08de">QwtCPointerData</a>.</p>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated by 
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>
|