1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>Qwt User's Guide: QwtData Class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.5.0 -->
10
<li><a href="index.html"><span>Main Page</span></a></li>
11
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
12
<li><a href="files.html"><span>Files</span></a></li>
13
<li><a href="pages.html"><span>Related Pages</span></a></li>
17
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
18
<li><a href="annotated.html"><span>Class List</span></a></li>
19
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
20
<li><a href="functions.html"><span>Class Members</span></a></li>
22
<h1>QwtData Class Reference</h1><!-- doxytag: class="QwtData" -->Inheritance diagram for QwtData:<p><center><img src="class_qwt_data__inherit__graph.png" border="0" usemap="#_qwt_data__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_data__inherit__map">
24
<area href="class_qwt_array_data.html" shape="rect" coords="7,83,113,107" alt="">
25
<area href="class_qwt_c_pointer_data.html" shape="rect" coords="137,83,263,107" alt="">
26
<area href="class_qwt_polygon_f_data.html" shape="rect" coords="287,83,417,107" alt="">
28
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_data-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
29
<a class="el" href="class_qwt_data.html">QwtData</a> defines an interface to any type of curve data.
31
Classes, derived from <a class="el" href="class_qwt_data.html">QwtData</a> may:<ul>
32
<li>store the data in almost any type of container</li><li>calculate the data on the fly instead of storing it </li></ul>
37
Definition at line <a class="el" href="qwt__data_8h-source.html#l00047">47</a> of file <a class="el" href="qwt__data_8h-source.html">qwt_data.h</a>.<table border="0" cellpadding="0" cellspacing="0">
39
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
40
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_data.html#de45c6c6d06b5fb4d1332b49168a008b">QwtData</a> ()</td></tr>
42
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_data.html#6c813cff34e61a74f3a146177424f473">~QwtData</a> ()</td></tr>
44
<tr><td class="memItemLeft" nowrap 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#39987f55268032342b727eb30f05577a">copy</a> () const=0</td></tr>
46
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_data.html#3083c0e562f2cb35379fa264a9ca8014">size</a> () const=0</td></tr>
48
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_data.html#e226ee3042742e8ddbb36365893c9ebd">x</a> (size_t i) const=0</td></tr>
50
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_data.html#76295574f256ed4378217f5c88d68b50">y</a> (size_t i) const=0</td></tr>
52
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_data.html#67ac4f55f4f40ced54b0fe970d410cf7">boundingRect</a> () const</td></tr>
54
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
55
<tr><td class="memItemLeft" nowrap 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#3615d59935a028b66202ab5fcde3ec31">operator=</a> (const <a class="el" href="class_qwt_data.html">QwtData</a> &)</td></tr>
58
<hr><h2>Constructor & Destructor Documentation</h2>
59
<a class="anchor" name="de45c6c6d06b5fb4d1332b49168a008b"></a><!-- doxytag: member="QwtData::QwtData" ref="de45c6c6d06b5fb4d1332b49168a008b" args="()" -->
61
<div class="memproto">
62
<table class="memname">
64
<td class="memname">QwtData::QwtData </td>
66
<td class="paramname"> </td>
67
<td> ) </td>
68
<td width="100%"></td>
79
Definition at line <a class="el" href="qwt__data_8cpp-source.html#l00014">14</a> of file <a class="el" href="qwt__data_8cpp-source.html">qwt_data.cpp</a>.
82
<a class="anchor" name="6c813cff34e61a74f3a146177424f473"></a><!-- doxytag: member="QwtData::~QwtData" ref="6c813cff34e61a74f3a146177424f473" args="()" -->
84
<div class="memproto">
85
<table class="memname">
87
<td class="memname">QwtData::~QwtData </td>
89
<td class="paramname"> </td>
90
<td> ) </td>
91
<td width="100%"><code> [virtual]</code></td>
102
Definition at line <a class="el" href="qwt__data_8cpp-source.html#l00019">19</a> of file <a class="el" href="qwt__data_8cpp-source.html">qwt_data.cpp</a>.
105
<hr><h2>Member Function Documentation</h2>
106
<a class="anchor" name="39987f55268032342b727eb30f05577a"></a><!-- doxytag: member="QwtData::copy" ref="39987f55268032342b727eb30f05577a" args="() const=0" -->
107
<div class="memitem">
108
<div class="memproto">
109
<table class="memname">
111
<td class="memname">virtual <a class="el" href="class_qwt_data.html">QwtData</a>* QwtData::copy </td>
113
<td class="paramname"> </td>
114
<td> ) </td>
115
<td width="100%"> const<code> [pure virtual]</code></td>
122
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Pointer to a copy (virtual copy constructor) </dd></dl>
127
Implemented in <a class="el" href="class_qwt_polygon_f_data.html#f0a94ffbbb3c7f295e3a8ce33a91d521">QwtPolygonFData</a>, <a class="el" href="class_qwt_array_data.html#7c3e0ac159a2b178f457dfc35fff7d34">QwtArrayData</a>, and <a class="el" href="class_qwt_c_pointer_data.html#2d61a1ee08d993ecff482c3a817c9f23">QwtCPointerData</a>.
129
Referenced by <a class="el" href="qwt__plot__curve_8cpp-source.html#l00409">QwtPlotCurve::setData()</a>.
132
<a class="anchor" name="3083c0e562f2cb35379fa264a9ca8014"></a><!-- doxytag: member="QwtData::size" ref="3083c0e562f2cb35379fa264a9ca8014" args="() const=0" -->
133
<div class="memitem">
134
<div class="memproto">
135
<table class="memname">
137
<td class="memname">virtual size_t QwtData::size </td>
139
<td class="paramname"> </td>
140
<td> ) </td>
141
<td width="100%"> const<code> [pure virtual]</code></td>
148
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Size of the data set </dd></dl>
153
Implemented in <a class="el" href="class_qwt_polygon_f_data.html#6d9445d563921450a75d4f5fbbce35de">QwtPolygonFData</a>, <a class="el" href="class_qwt_array_data.html#8bd01194139625b3824f42562b26e3f9">QwtArrayData</a>, and <a class="el" href="class_qwt_c_pointer_data.html#a8f1b8d366e873bbeac9f1edb21e5ced">QwtCPointerData</a>.
155
Referenced by <a class="el" href="qwt__data_8cpp-source.html#l00034">boundingRect()</a>, and <a class="el" href="qwt__plot__curve_8cpp-source.html#l01185">QwtPlotCurve::dataSize()</a>.
158
<a class="anchor" name="e226ee3042742e8ddbb36365893c9ebd"></a><!-- doxytag: member="QwtData::x" ref="e226ee3042742e8ddbb36365893c9ebd" args="(size_t i) const=0" -->
159
<div class="memitem">
160
<div class="memproto">
161
<table class="memname">
163
<td class="memname">virtual double QwtData::x </td>
165
<td class="paramtype">size_t </td>
166
<td class="paramname"> <em>i</em> </td>
167
<td> ) </td>
168
<td width="100%"> const<code> [pure virtual]</code></td>
175
Return the x value of data point i <dl compact><dt><b>Parameters:</b></dt><dd>
176
<table border="0" cellspacing="2" cellpadding="0">
177
<tr><td valign="top"></td><td valign="top"><em>i</em> </td><td>Index </td></tr>
180
<dl class="return" compact><dt><b>Returns:</b></dt><dd>x X value of data point i </dd></dl>
183
Implemented in <a class="el" href="class_qwt_polygon_f_data.html#7b1d8e8daa6a3927a0a8c65d3191bbb5">QwtPolygonFData</a>, <a class="el" href="class_qwt_array_data.html#21c38a3eb30779ab8044a67cf66c69ba">QwtArrayData</a>, and <a class="el" href="class_qwt_c_pointer_data.html#7567731113558126d13825baa230bed0">QwtCPointerData</a>.
185
Referenced by <a class="el" href="qwt__data_8cpp-source.html#l00034">boundingRect()</a>, and <a class="el" href="qwt__plot__curve_8h-source.html#l00232">QwtPlotCurve::x()</a>.
188
<a class="anchor" name="76295574f256ed4378217f5c88d68b50"></a><!-- doxytag: member="QwtData::y" ref="76295574f256ed4378217f5c88d68b50" args="(size_t i) const=0" -->
189
<div class="memitem">
190
<div class="memproto">
191
<table class="memname">
193
<td class="memname">virtual double QwtData::y </td>
195
<td class="paramtype">size_t </td>
196
<td class="paramname"> <em>i</em> </td>
197
<td> ) </td>
198
<td width="100%"> const<code> [pure virtual]</code></td>
205
Return the y value of data point i <dl compact><dt><b>Parameters:</b></dt><dd>
206
<table border="0" cellspacing="2" cellpadding="0">
207
<tr><td valign="top"></td><td valign="top"><em>i</em> </td><td>Index </td></tr>
210
<dl class="return" compact><dt><b>Returns:</b></dt><dd>y Y value of data point i </dd></dl>
213
Implemented in <a class="el" href="class_qwt_polygon_f_data.html#defbb0b25c5e3f6f965808ee0ae6c4e1">QwtPolygonFData</a>, <a class="el" href="class_qwt_array_data.html#db47c5cb8fc2c8547f2fb6069e266dc6">QwtArrayData</a>, and <a class="el" href="class_qwt_c_pointer_data.html#1e81ea4a4695c0bd9c0f0a3ed12c7f95">QwtCPointerData</a>.
215
Referenced by <a class="el" href="qwt__data_8cpp-source.html#l00034">boundingRect()</a>, and <a class="el" href="qwt__plot__curve_8h-source.html#l00241">QwtPlotCurve::y()</a>.
218
<a class="anchor" name="67ac4f55f4f40ced54b0fe970d410cf7"></a><!-- doxytag: member="QwtData::boundingRect" ref="67ac4f55f4f40ced54b0fe970d410cf7" args="() const" -->
219
<div class="memitem">
220
<div class="memproto">
221
<table class="memname">
223
<td class="memname"><a class="el" href="qwt__double__rect_8h.html#0c0dc4d33592fac4ad94734d8e9c4152">QwtDoubleRect</a> QwtData::boundingRect </td>
225
<td class="paramname"> </td>
226
<td> ) </td>
227
<td width="100%"> const<code> [virtual]</code></td>
234
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>
235
<dl class="warning" compact><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#67ac4f55f4f40ced54b0fe970d410cf7">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#3083c0e562f2cb35379fa264a9ca8014">size()</a> - 1) for ordered data ... </dd></dl>
238
Reimplemented in <a class="el" href="class_qwt_array_data.html#8b768da7b7da1581ba3923f94a735035">QwtArrayData</a>, and <a class="el" href="class_qwt_c_pointer_data.html#48a6ef2a79c86d19f5b8f05a03c409d7">QwtCPointerData</a>.
240
Definition at line <a class="el" href="qwt__data_8cpp-source.html#l00034">34</a> of file <a class="el" href="qwt__data_8cpp-source.html">qwt_data.cpp</a>.
242
References <a class="el" href="class_qwt_data.html#3083c0e562f2cb35379fa264a9ca8014">size()</a>, <a class="el" href="class_qwt_data.html#e226ee3042742e8ddbb36365893c9ebd">x()</a>, and <a class="el" href="class_qwt_data.html#76295574f256ed4378217f5c88d68b50">y()</a>.
244
Referenced by <a class="el" href="qwt__plot__curve_8cpp-source.html#l00442">QwtPlotCurve::boundingRect()</a>.
247
<a class="anchor" name="3615d59935a028b66202ab5fcde3ec31"></a><!-- doxytag: member="QwtData::operator=" ref="3615d59935a028b66202ab5fcde3ec31" args="(const QwtData &)" -->
248
<div class="memitem">
249
<div class="memproto">
250
<table class="memname">
252
<td class="memname"><a class="el" href="class_qwt_data.html">QwtData</a>& QwtData::operator= </td>
254
<td class="paramtype">const <a class="el" href="class_qwt_data.html">QwtData</a> & </td>
255
<td class="paramname"> </td>
256
<td> ) </td>
257
<td width="100%"><code> [protected]</code></td>
264
Assignment operator (virtualized)
267
<hr size="1"><address style="align: right;"><small>Generated on Sat May 24 18:48:01 2008 for Qwt User's Guide by
268
<a href="http://www.doxygen.org/index.html">
269
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>