File: class_qwt_polygon_f_data.html

package info (click to toggle)
qwt5 5.2.2-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 13,340 kB
  • sloc: cpp: 32,645; makefile: 23; sh: 4
file content (255 lines) | stat: -rw-r--r-- 12,410 bytes parent folder | download
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
<!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&#39;s Guide: QwtPolygonFData 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&#160;<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&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<h1>QwtPolygonFData Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="QwtPolygonFData" --><!-- doxytag: inherits="QwtData" -->
<p>Data class containing a single QwtArray&lt;QwtDoublePoint&gt; object.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="qwt__data_8h_source.html">qwt_data.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for QwtPolygonFData:</div>
<div class="dyncontent">
<div class="center"><img src="class_qwt_polygon_f_data__inherit__graph.png" border="0" usemap="#_qwt_polygon_f_data_inherit__map" alt="Inheritance graph"/></div>
<map name="_qwt_polygon_f_data_inherit__map" id="_qwt_polygon_f_data_inherit__map">
<area shape="rect" id="node2" href="class_qwt_data.html" title="QwtData defines an interface to any type of curve data." alt="" coords="32,6,104,37"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_qwt_polygon_f_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&#160;</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> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_polygon_f_data.html#a3e8e8809e6bbb8efb8bbed5b8044644f">copy</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const QPolygonF &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_polygon_f_data.html#aff992f94f70260e02402b4b0445e3ab7">data</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_polygon_f_data.html">QwtPolygonFData</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_polygon_f_data.html#ac51e4686c8cdb2cbdf09750acc15ecca">operator=</a> (const <a class="el" href="class_qwt_polygon_f_data.html">QwtPolygonFData</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_polygon_f_data.html#a83f9b6797ac8c3ca2f5847bdc957d419">QwtPolygonFData</a> (const QPolygonF &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_polygon_f_data.html#a3a002042c6c0b0bf35e7172c37a6c1b2">size</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_polygon_f_data.html#aca74b3b767c5fd2567215583d3712425">x</a> (size_t i) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_polygon_f_data.html#a3b762f31fd970ec7ce9706930f33c1aa">y</a> (size_t i) const </td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Data class containing a single QwtArray&lt;QwtDoublePoint&gt; object. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a83f9b6797ac8c3ca2f5847bdc957d419"></a><!-- doxytag: member="QwtPolygonFData::QwtPolygonFData" ref="a83f9b6797ac8c3ca2f5847bdc957d419" args="(const QPolygonF &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QwtPolygonFData::QwtPolygonFData </td>
          <td>(</td>
          <td class="paramtype">const QPolygonF &amp;&#160;</td>
          <td class="paramname"><em>polygon</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">polygon</td><td>Polygon data </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_curve.html#a1dc2caaddb1733703b5fcfbe19f29fe8">QwtPlotCurve::setData()</a> </dd></dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad72b6842ce6af1f61f9643786d63a91f"></a><!-- doxytag: member="QwtPolygonFData::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, inherited]</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="a3e8e8809e6bbb8efb8bbed5b8044644f"></a><!-- doxytag: member="QwtPolygonFData::copy" ref="a3e8e8809e6bbb8efb8bbed5b8044644f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_qwt_data.html">QwtData</a> * QwtPolygonFData::copy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [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>Implements <a class="el" href="class_qwt_data.html#a8531a1add1f0b2d12809f90f97fd80c9">QwtData</a>.</p>

</div>
</div>
<a class="anchor" id="aff992f94f70260e02402b4b0445e3ab7"></a><!-- doxytag: member="QwtPolygonFData::data" ref="aff992f94f70260e02402b4b0445e3ab7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const QPolygonF &amp; QwtPolygonFData::data </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>Point array </dd></dl>

</div>
</div>
<a class="anchor" id="ac51e4686c8cdb2cbdf09750acc15ecca"></a><!-- doxytag: member="QwtPolygonFData::operator=" ref="ac51e4686c8cdb2cbdf09750acc15ecca" args="(const QwtPolygonFData &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_qwt_polygon_f_data.html">QwtPolygonFData</a> &amp; QwtPolygonFData::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qwt_polygon_f_data.html">QwtPolygonFData</a> &amp;&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Assignment. </p>

</div>
</div>
<a class="anchor" id="a3a002042c6c0b0bf35e7172c37a6c1b2"></a><!-- doxytag: member="QwtPolygonFData::size" ref="a3a002042c6c0b0bf35e7172c37a6c1b2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t QwtPolygonFData::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [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>Implements <a class="el" href="class_qwt_data.html#a6028c06e7e72de98fb7a8a3ec6acdf47">QwtData</a>.</p>

</div>
</div>
<a class="anchor" id="aca74b3b767c5fd2567215583d3712425"></a><!-- doxytag: member="QwtPolygonFData::x" ref="aca74b3b767c5fd2567215583d3712425" args="(size_t i) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double QwtPolygonFData::x </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const<code> [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>Implements <a class="el" href="class_qwt_data.html#a922401ada56fc6dd3ccbeb1cfcdcfe28">QwtData</a>.</p>

</div>
</div>
<a class="anchor" id="a3b762f31fd970ec7ce9706930f33c1aa"></a><!-- doxytag: member="QwtPolygonFData::y" ref="a3b762f31fd970ec7ce9706930f33c1aa" args="(size_t i) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double QwtPolygonFData::y </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const<code> [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>Implements <a class="el" href="class_qwt_data.html#a6a160842c98ddd98a65fd229776c324c">QwtData</a>.</p>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>