class_qwt_series_data.html
16.5 KB
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
<!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: QwtSeriesData< T > Class Template 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">6.0.1</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-attribs">Protected Attributes</a> </div>
<div class="headertitle">
<h1>QwtSeriesData< T > Class Template Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="QwtSeriesData" -->
<p>Abstract interface for iterating over samples.
<a href="#_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="#_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="_qwt_series_data_3_01_t_01_4_inherit__map">
<area shape="rect" id="node3" href="class_qwt_array_series_data.html" title="Template class for data, that is organized as QVector." alt="" coords="363,156,533,185"/><area shape="rect" id="node21" href="class_qwt_series_data.html" title="QwtSeriesData\< QwtIntervalSample \>" alt="" coords="328,73,568,103"/><area shape="rect" id="node24" href="class_qwt_series_data.html" title="QwtSeriesData\< QPointF \>" alt="" coords="357,323,539,352"/><area shape="rect" id="node33" href="class_qwt_series_data.html" title="QwtSeriesData\< QwtSetSample \>" alt="" coords="339,239,557,268"/><area shape="rect" id="node36" href="class_qwt_series_data.html" title="QwtSeriesData\< QwtPoint3D \>" alt="" coords="347,5,549,35"/><area shape="rect" id="node5" href="class_qwt_array_series_data.html" title="QwtArraySeriesData\< QwtIntervalSample \>" alt="" coords="751,113,1020,143"/><area shape="rect" id="node9" href="class_qwt_array_series_data.html" title="QwtArraySeriesData\< QPointF \>" alt="" coords="780,248,991,277"/><area shape="rect" id="node13" href="class_qwt_array_series_data.html" title="QwtArraySeriesData\< QwtPoint3D \>" alt="" coords="769,29,1001,59"/><area shape="rect" id="node17" href="class_qwt_array_series_data.html" title="QwtArraySeriesData\< QwtSetSample \>" alt="" coords="760,176,1011,205"/><area shape="rect" id="node7" href="class_qwt_interval_series_data.html" title="Interface for iterating over an array of intervals." alt="" coords="1075,113,1224,143"/><area shape="rect" id="node11" href="class_qwt_point_series_data.html" title="Interface for iterating over an array of points." alt="" coords="1080,248,1219,277"/><area shape="rect" id="node15" href="class_qwt_point3_d_series_data.html" title="Interface for iterating over an array of 3D points." alt="" coords="1072,29,1227,59"/><area shape="rect" id="node19" href="class_qwt_set_series_data.html" title="Interface for iterating over an array of samples." alt="" coords="1085,176,1213,205"/><area shape="rect" id="node27" href="class_qwt_c_pointer_data.html" title="Data class containing two pointers to memory blocks of doubles." alt="" coords="824,365,947,395"/><area shape="rect" id="node29" href="class_qwt_point_array_data.html" title="Interface for iterating over two QVector<double> objects." alt="" coords="819,419,952,448"/><area shape="rect" id="node31" href="class_qwt_synthetic_point_data.html" title="Synthetic point data." alt="" coords="807,312,964,341"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="class_qwt_series_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 QRectF </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_series_data.html#aedb969ba51a27d88d26ad7f7cb1c2c7f">boundingRect</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_series_data.html#a3f075340d18fb112a342d74716eb8d9c">QwtSeriesData</a> ()</td></tr>
<tr><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><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_series_data.html#a81466c72589c03310543d17e1f1d0ab7">setRectOfInterest</a> (const QRectF &)</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_series_data.html#a3cfe5b26fc55a887ac85b0103ae80a3e">size</a> () 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_series_data.html#a841a56f909879d599a385b9c3d046745">~QwtSeriesData</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QRectF </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_series_data.html#a24fbbcb0baa0c728117d2e6764d00414">d_boundingRect</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>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>
</div><hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a3f075340d18fb112a342d74716eb8d9c"></a><!-- doxytag: member="QwtSeriesData::QwtSeriesData" ref="a3f075340d18fb112a342d74716eb8d9c" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename T > </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< T >::<a class="el" href="class_qwt_series_data.html">QwtSeriesData</a> </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="a841a56f909879d599a385b9c3d046745"></a><!-- doxytag: member="QwtSeriesData::~QwtSeriesData" ref="a841a56f909879d599a385b9c3d046745" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename T > </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< T >::~<a class="el" href="class_qwt_series_data.html">QwtSeriesData</a> </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="aedb969ba51a27d88d26ad7f7cb1c2c7f"></a><!-- doxytag: member="QwtSeriesData::boundingRect" ref="aedb969ba51a27d88d26ad7f7cb1c2c7f" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename T> </div>
<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<code> [pure virtual]</code></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 rect. </p>
<p>Implemented in <a class="el" href="class_qwt_point_series_data.html#ad5cf93cd9f518be6b0d910982cabd96d">QwtPointSeriesData</a>, <a class="el" href="class_qwt_point3_d_series_data.html#a94ea1834516a2a484712723b5c9625ca">QwtPoint3DSeriesData</a>, <a class="el" href="class_qwt_interval_series_data.html#afd9a41faed021eddcc1a9a36d15350d2">QwtIntervalSeriesData</a>, <a class="el" href="class_qwt_set_series_data.html#a63aef8f3405883ab886b06cd27aabe7c">QwtSetSeriesData</a>, <a class="el" href="class_qwt_point_array_data.html#a2d8b421115ba860e9d12a2266eeaef3b">QwtPointArrayData</a>, <a class="el" href="class_qwt_c_pointer_data.html#aecc3e98a3b2c4350212fa7b9e97110aa">QwtCPointerData</a>, and <a class="el" href="class_qwt_synthetic_point_data.html#a89296d373856825047f48e86d7731b0a">QwtSyntheticPointData</a>.</p>
</div>
</div>
<a class="anchor" id="ae8650d16c07c58f01897ab48658a3266"></a><!-- doxytag: member="QwtSeriesData::sample" ref="ae8650d16c07c58f01897ab48658a3266" args="(size_t i) const =0" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename T> </div>
<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<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Return a sample </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>Sample at position i </dd></dl>
<p>Implemented in <a class="el" href="class_qwt_array_series_data.html#af10504cdd3e506ab6b5502b1f17535d0">QwtArraySeriesData< T ></a>, <a class="el" href="class_qwt_point_array_data.html#ad2fa2b92a88d216fb4a74cb4b6ccbb9f">QwtPointArrayData</a>, <a class="el" href="class_qwt_c_pointer_data.html#a5e01b287eca7d0c4b52bbf514c5244d2">QwtCPointerData</a>, <a class="el" href="class_qwt_synthetic_point_data.html#a70d3ed6bfd764878f1709ab6b55e2f0e">QwtSyntheticPointData</a>, <a class="el" href="class_qwt_array_series_data.html#af10504cdd3e506ab6b5502b1f17535d0">QwtArraySeriesData< QwtIntervalSample ></a>, <a class="el" href="class_qwt_array_series_data.html#af10504cdd3e506ab6b5502b1f17535d0">QwtArraySeriesData< QPointF ></a>, <a class="el" href="class_qwt_array_series_data.html#af10504cdd3e506ab6b5502b1f17535d0">QwtArraySeriesData< QwtPoint3D ></a>, and <a class="el" href="class_qwt_array_series_data.html#af10504cdd3e506ab6b5502b1f17535d0">QwtArraySeriesData< QwtSetSample ></a>.</p>
</div>
</div>
<a class="anchor" id="a81466c72589c03310543d17e1f1d0ab7"></a><!-- doxytag: member="QwtSeriesData::setRectOfInterest" ref="a81466c72589c03310543d17e1f1d0ab7" args="(const QRectF &)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename T > </div>
<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"></td><td>)</td>
<td><code> [virtual]</code></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="Class template for plot items representing a series of samples.">QwtPlotSeriesItem</a> defines the current area of the plot canvas as "rect of interest" ( <a class="el" href="class_qwt_plot_series_item.html#a5c40b692a48718b71bed27a1802c50d0">QwtPlotSeriesItem::updateScaleDiv()</a> ). It can be used to implement different levels of details.</p>
<p>The default implementation does nothing. </p>
<p>Reimplemented in <a class="el" href="class_qwt_synthetic_point_data.html#a39cc8512e7d8beecde003f7781174b84">QwtSyntheticPointData</a>.</p>
</div>
</div>
<a class="anchor" id="a3cfe5b26fc55a887ac85b0103ae80a3e"></a><!-- doxytag: member="QwtSeriesData::size" ref="a3cfe5b26fc55a887ac85b0103ae80a3e" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename T> </div>
<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<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of samples </dd></dl>
<p>Implemented in <a class="el" href="class_qwt_array_series_data.html#a52c123dcc321a03ccd18c2c138318025">QwtArraySeriesData< T ></a>, <a class="el" href="class_qwt_point_array_data.html#a2222b2ad6346dc6357a412fc50ec8f56">QwtPointArrayData</a>, <a class="el" href="class_qwt_c_pointer_data.html#a780b9ae434856509cef9bbe954f03a3e">QwtCPointerData</a>, <a class="el" href="class_qwt_synthetic_point_data.html#a61b2cc26e1b5fa4a64e29273cf3e1599">QwtSyntheticPointData</a>, <a class="el" href="class_qwt_array_series_data.html#a52c123dcc321a03ccd18c2c138318025">QwtArraySeriesData< QwtIntervalSample ></a>, <a class="el" href="class_qwt_array_series_data.html#a52c123dcc321a03ccd18c2c138318025">QwtArraySeriesData< QPointF ></a>, <a class="el" href="class_qwt_array_series_data.html#a52c123dcc321a03ccd18c2c138318025">QwtArraySeriesData< QwtPoint3D ></a>, and <a class="el" href="class_qwt_array_series_data.html#a52c123dcc321a03ccd18c2c138318025">QwtArraySeriesData< QwtSetSample ></a>.</p>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a24fbbcb0baa0c728117d2e6764d00414"></a><!-- doxytag: member="QwtSeriesData::d_boundingRect" ref="a24fbbcb0baa0c728117d2e6764d00414" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename T> </div>
<table class="memname">
<tr>
<td class="memname">QRectF <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< T >::<a class="el" href="class_qwt_series_data.html#a24fbbcb0baa0c728117d2e6764d00414">d_boundingRect</a><code> [mutable, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Can be used to cache a calculated bounding rectangle. </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>