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 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419
|
<!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"/>
<meta name="author" content="Emanuel Eichhammer" />
<meta name="copyright" content="(C) 2011-2016 Emanuel Eichhammer" />
<title>QCPPlottableInterface1D Class Reference</title>
<link href="qcp.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top">
<a class="headerLink" href="index.html">Main Page</a> ·
<a class="headerLink" href="classoverview.html">Class Overview</a> ·
<a class="headerLink" href="hierarchy.html">Hierarchy</a> ·
<a class="headerLink" href="annotated.html">All Classes</a> ·
<a class="headerLink" href="pages.html">Special Pages</a>
<!-- Generated by Doxygen 1.8.12 -->
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Functions</a> </div>
<div class="headertitle">
<div class="title">QCPPlottableInterface1D Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
</div><!--header-->
<div class="contents">
<p>Defines an abstract interface for one-dimensional plottables.
<a href="classQCPPlottableInterface1D.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for QCPPlottableInterface1D:</div>
<div class="dyncontent">
<div class="center"><img src="classQCPPlottableInterface1D__inherit__graph.png" border="0" usemap="#QCPPlottableInterface1D_inherit__map" alt="Inheritance graph"/></div>
<map name="QCPPlottableInterface1D_inherit__map" id="QCPPlottableInterface1D_inherit__map">
<area shape="rect" id="node2" href="classQCPAbstractPlottable1D.html" title="A template base class for plottables with one-dimensional data. " alt="" coords="223,5,379,41"/>
<area shape="rect" id="node3" href="classQCPAbstractPlottable1D.html" title="QCPAbstractPlottable1D\l\< QCPBarsData \>" alt="" coords="223,65,379,101"/>
<area shape="rect" id="node5" href="classQCPAbstractPlottable1D.html" title="QCPAbstractPlottable1D\l\< QCPCurveData \>" alt="" coords="223,125,379,161"/>
<area shape="rect" id="node7" href="classQCPAbstractPlottable1D.html" title="QCPAbstractPlottable1D\l\< QCPFinancialData \>" alt="" coords="223,185,379,221"/>
<area shape="rect" id="node9" href="classQCPAbstractPlottable1D.html" title="QCPAbstractPlottable1D\l\< QCPGraphData \>" alt="" coords="223,245,379,281"/>
<area shape="rect" id="node11" href="classQCPAbstractPlottable1D.html" title="QCPAbstractPlottable1D\l\< QCPStatisticalBoxData \>" alt="" coords="214,305,389,341"/>
<area shape="rect" id="node13" href="classQCPErrorBars.html" title="A plottable that adds a set of error bars to other plottables. " alt="" coords="250,365,353,389"/>
<area shape="rect" id="node4" href="classQCPBars.html" title="A plottable representing a bar chart in a plot. " alt="" coords="462,71,535,95"/>
<area shape="rect" id="node6" href="classQCPCurve.html" title="A plottable representing a parametric curve in a plot. " alt="" coords="459,131,538,155"/>
<area shape="rect" id="node8" href="classQCPFinancial.html" title="A plottable representing a financial stock chart. " alt="" coords="451,191,546,215"/>
<area shape="rect" id="node10" href="classQCPGraph.html" title="A plottable representing a graph in a plot. " alt="" coords="458,251,539,275"/>
<area shape="rect" id="node12" href="classQCPStatisticalBox.html" title="A plottable representing a single statistical box in a plot. " alt="" coords="437,311,560,335"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Functions</h2></td></tr>
<tr class="memitem:a058a22c770ef4d5a0e878a7f02183da9"><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPPlottableInterface1D.html#a058a22c770ef4d5a0e878a7f02183da9">dataCount</a> () const =0</td></tr>
<tr class="separator:a058a22c770ef4d5a0e878a7f02183da9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2bd60daaac046945fead558cbd83cf73"><td class="memItemLeft" align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPPlottableInterface1D.html#a2bd60daaac046945fead558cbd83cf73">dataMainKey</a> (int index) const =0</td></tr>
<tr class="separator:a2bd60daaac046945fead558cbd83cf73"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afdc92f9f01e7e35f2e96b2ea9dc14ae7"><td class="memItemLeft" align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPPlottableInterface1D.html#afdc92f9f01e7e35f2e96b2ea9dc14ae7">dataSortKey</a> (int index) const =0</td></tr>
<tr class="separator:afdc92f9f01e7e35f2e96b2ea9dc14ae7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af6330919e8023277d08c958a6074fc76"><td class="memItemLeft" align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPPlottableInterface1D.html#af6330919e8023277d08c958a6074fc76">dataMainValue</a> (int index) const =0</td></tr>
<tr class="separator:af6330919e8023277d08c958a6074fc76"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9ca7fcf14d885a200879768679b19be9"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classQCPRange.html">QCPRange</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPPlottableInterface1D.html#a9ca7fcf14d885a200879768679b19be9">dataValueRange</a> (int index) const =0</td></tr>
<tr class="separator:a9ca7fcf14d885a200879768679b19be9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a78911838cfbcfd2d8df9ad2fdbfb8e93"><td class="memItemLeft" align="right" valign="top">virtual QPointF </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPPlottableInterface1D.html#a78911838cfbcfd2d8df9ad2fdbfb8e93">dataPixelPosition</a> (int index) const =0</td></tr>
<tr class="separator:a78911838cfbcfd2d8df9ad2fdbfb8e93"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a229e65e7ab968dd6cd0e259fa504b79d"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPPlottableInterface1D.html#a229e65e7ab968dd6cd0e259fa504b79d">sortKeyIsMainKey</a> () const =0</td></tr>
<tr class="separator:a229e65e7ab968dd6cd0e259fa504b79d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a67093e4ccf490ff5f7750640941ff34c"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classQCPDataSelection.html">QCPDataSelection</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPPlottableInterface1D.html#a67093e4ccf490ff5f7750640941ff34c">selectTestRect</a> (const QRectF &rect, bool onlySelectable) const =0</td></tr>
<tr class="separator:a67093e4ccf490ff5f7750640941ff34c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5b95783271306a4de97be54eac1e7d13"><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPPlottableInterface1D.html#a5b95783271306a4de97be54eac1e7d13">findBegin</a> (double sortKey, bool expandedRange=true) const =0</td></tr>
<tr class="separator:a5b95783271306a4de97be54eac1e7d13"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5deced1016bc55a41a2339619045b295"><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPPlottableInterface1D.html#a5deced1016bc55a41a2339619045b295">findEnd</a> (double sortKey, bool expandedRange=true) const =0</td></tr>
<tr class="separator:a5deced1016bc55a41a2339619045b295"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Defines an abstract interface for one-dimensional plottables. </p>
<p>This class contains only pure virtual methods which define a common interface to the data of one-dimensional plottables.</p>
<p>For example, it is implemented by the template class <a class="el" href="classQCPAbstractPlottable1D.html">QCPAbstractPlottable1D</a> (the preferred base class for one-dimensional plottables). So if you use that template class as base class of your one-dimensional plottable, you won't have to care about implementing the 1d interface yourself.</p>
<p>If your plottable doesn't derive from <a class="el" href="classQCPAbstractPlottable1D.html">QCPAbstractPlottable1D</a> but still wants to provide a 1d interface (e.g. like <a class="el" href="classQCPErrorBars.html">QCPErrorBars</a> does), you should inherit from both <a class="el" href="classQCPAbstractPlottable.html">QCPAbstractPlottable</a> and <a class="el" href="classQCPPlottableInterface1D.html">QCPPlottableInterface1D</a> and accordingly reimplement the pure virtual methods of the 1d interface, matching your data container. Also, reimplement <a class="el" href="classQCPAbstractPlottable.html#a81fd9fd5c4f429c074785e2eb238a8e7">QCPAbstractPlottable::interface1D</a> to return the <code>this</code> pointer.</p>
<p>If you have a <a class="el" href="classQCPAbstractPlottable.html">QCPAbstractPlottable</a> pointer, you can check whether it implements this interface by calling <a class="el" href="classQCPAbstractPlottable.html#a81fd9fd5c4f429c074785e2eb238a8e7">QCPAbstractPlottable::interface1D</a> and testing it for a non-zero return value. If it indeed implements this interface, you may use it to access the plottable's data without needing to know the exact type of the plottable or its data point type. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a058a22c770ef4d5a0e878a7f02183da9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a058a22c770ef4d5a0e878a7f02183da9">§ </a></span>dataCount()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int QCPPlottableInterface1D::dataCount </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>Returns the number of data points of the plottable. </p>
<p>Implemented in <a class="el" href="classQCPErrorBars.html#ad8811b034a17cb4ef898cbcc8da29bd2">QCPErrorBars</a>, <a class="el" href="classQCPAbstractPlottable1D.html#a354545da303458283df3f7948a7a768b">QCPAbstractPlottable1D< DataType ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a354545da303458283df3f7948a7a768b">QCPAbstractPlottable1D< QCPFinancialData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a354545da303458283df3f7948a7a768b">QCPAbstractPlottable1D< QCPStatisticalBoxData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a354545da303458283df3f7948a7a768b">QCPAbstractPlottable1D< QCPGraphData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a354545da303458283df3f7948a7a768b">QCPAbstractPlottable1D< QCPBarsData ></a>, and <a class="el" href="classQCPAbstractPlottable1D.html#a354545da303458283df3f7948a7a768b">QCPAbstractPlottable1D< QCPCurveData ></a>.</p>
</div>
</div>
<a id="a2bd60daaac046945fead558cbd83cf73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2bd60daaac046945fead558cbd83cf73">§ </a></span>dataMainKey()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">double QCPPlottableInterface1D::dataMainKey </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</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>Returns the main key of the data point at the given <em>index</em>.</p>
<p>What the main key is, is defined by the plottable's data type. See the <a class="el" href="classQCPDataContainer.html#qcpdatacontainer-datatype">QCPDataContainer DataType</a> documentation for details about this naming convention. </p>
<p>Implemented in <a class="el" href="classQCPErrorBars.html#ae3931213f76cd34a824c42c22a1dca74">QCPErrorBars</a>, <a class="el" href="classQCPAbstractPlottable1D.html#ab14ab428595856bf76e04499017fa8dc">QCPAbstractPlottable1D< DataType ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ab14ab428595856bf76e04499017fa8dc">QCPAbstractPlottable1D< QCPFinancialData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ab14ab428595856bf76e04499017fa8dc">QCPAbstractPlottable1D< QCPStatisticalBoxData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ab14ab428595856bf76e04499017fa8dc">QCPAbstractPlottable1D< QCPGraphData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ab14ab428595856bf76e04499017fa8dc">QCPAbstractPlottable1D< QCPBarsData ></a>, and <a class="el" href="classQCPAbstractPlottable1D.html#ab14ab428595856bf76e04499017fa8dc">QCPAbstractPlottable1D< QCPCurveData ></a>.</p>
</div>
</div>
<a id="afdc92f9f01e7e35f2e96b2ea9dc14ae7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afdc92f9f01e7e35f2e96b2ea9dc14ae7">§ </a></span>dataSortKey()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">double QCPPlottableInterface1D::dataSortKey </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</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>Returns the sort key of the data point at the given <em>index</em>.</p>
<p>What the sort key is, is defined by the plottable's data type. See the <a class="el" href="classQCPDataContainer.html#qcpdatacontainer-datatype">QCPDataContainer DataType</a> documentation for details about this naming convention. </p>
<p>Implemented in <a class="el" href="classQCPErrorBars.html#a1ef91328ad7dde84695958139d5f40cf">QCPErrorBars</a>, <a class="el" href="classQCPAbstractPlottable1D.html#a6fce4e684f33a31c45928899b5d9ab4b">QCPAbstractPlottable1D< DataType ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a6fce4e684f33a31c45928899b5d9ab4b">QCPAbstractPlottable1D< QCPFinancialData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a6fce4e684f33a31c45928899b5d9ab4b">QCPAbstractPlottable1D< QCPStatisticalBoxData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a6fce4e684f33a31c45928899b5d9ab4b">QCPAbstractPlottable1D< QCPGraphData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a6fce4e684f33a31c45928899b5d9ab4b">QCPAbstractPlottable1D< QCPBarsData ></a>, and <a class="el" href="classQCPAbstractPlottable1D.html#a6fce4e684f33a31c45928899b5d9ab4b">QCPAbstractPlottable1D< QCPCurveData ></a>.</p>
</div>
</div>
<a id="af6330919e8023277d08c958a6074fc76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6330919e8023277d08c958a6074fc76">§ </a></span>dataMainValue()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">double QCPPlottableInterface1D::dataMainValue </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</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>Returns the main value of the data point at the given <em>index</em>.</p>
<p>What the main value is, is defined by the plottable's data type. See the <a class="el" href="classQCPDataContainer.html#qcpdatacontainer-datatype">QCPDataContainer DataType</a> documentation for details about this naming convention. </p>
<p>Implemented in <a class="el" href="classQCPErrorBars.html#a88cd90280366b44c2159774bfb7c473a">QCPErrorBars</a>, <a class="el" href="classQCPAbstractPlottable1D.html#a0f913bb0889ca7cb574657a078fc8cff">QCPAbstractPlottable1D< DataType ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a0f913bb0889ca7cb574657a078fc8cff">QCPAbstractPlottable1D< QCPFinancialData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a0f913bb0889ca7cb574657a078fc8cff">QCPAbstractPlottable1D< QCPStatisticalBoxData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a0f913bb0889ca7cb574657a078fc8cff">QCPAbstractPlottable1D< QCPGraphData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a0f913bb0889ca7cb574657a078fc8cff">QCPAbstractPlottable1D< QCPBarsData ></a>, and <a class="el" href="classQCPAbstractPlottable1D.html#a0f913bb0889ca7cb574657a078fc8cff">QCPAbstractPlottable1D< QCPCurveData ></a>.</p>
</div>
</div>
<a id="a9ca7fcf14d885a200879768679b19be9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ca7fcf14d885a200879768679b19be9">§ </a></span>dataValueRange()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classQCPRange.html">QCPRange</a> QCPPlottableInterface1D::dataValueRange </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</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>Returns the value range of the data point at the given <em>index</em>.</p>
<p>What the value range is, is defined by the plottable's data type. See the <a class="el" href="classQCPDataContainer.html#qcpdatacontainer-datatype">QCPDataContainer DataType</a> documentation for details about this naming convention. </p>
<p>Implemented in <a class="el" href="classQCPErrorBars.html#a09b99cf293b6041ae8d5c52cf8dd599c">QCPErrorBars</a>, <a class="el" href="classQCPAbstractPlottable1D.html#ac6201b01aee550ef0a240183781d1f9a">QCPAbstractPlottable1D< DataType ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ac6201b01aee550ef0a240183781d1f9a">QCPAbstractPlottable1D< QCPFinancialData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ac6201b01aee550ef0a240183781d1f9a">QCPAbstractPlottable1D< QCPStatisticalBoxData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ac6201b01aee550ef0a240183781d1f9a">QCPAbstractPlottable1D< QCPGraphData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ac6201b01aee550ef0a240183781d1f9a">QCPAbstractPlottable1D< QCPBarsData ></a>, and <a class="el" href="classQCPAbstractPlottable1D.html#ac6201b01aee550ef0a240183781d1f9a">QCPAbstractPlottable1D< QCPCurveData ></a>.</p>
</div>
</div>
<a id="a78911838cfbcfd2d8df9ad2fdbfb8e93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78911838cfbcfd2d8df9ad2fdbfb8e93">§ </a></span>dataPixelPosition()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">QPointF QCPPlottableInterface1D::dataPixelPosition </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>index</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>Returns the pixel position on the widget surface at which the data point at the given <em>index</em> appears.</p>
<p>Usually this corresponds to the point of <a class="el" href="classQCPPlottableInterface1D.html#a2bd60daaac046945fead558cbd83cf73">dataMainKey</a>/<a class="el" href="classQCPPlottableInterface1D.html#af6330919e8023277d08c958a6074fc76">dataMainValue</a>, in pixel coordinates. However, depending on the plottable, this might be a different apparent position than just a coord-to-pixel transform of those values. For example, <a class="el" href="classQCPBars.html">QCPBars</a> apparent data values can be shifted depending on their stacking, bar grouping or configured base value. </p>
<p>Implemented in <a class="el" href="classQCPBars.html#aaf50fee4e30a2135e6c78c0f706d0678">QCPBars</a>, <a class="el" href="classQCPErrorBars.html#a7397bc40751c9c6e2ea188895b2152f8">QCPErrorBars</a>, <a class="el" href="classQCPAbstractPlottable1D.html#a14cf167457cda163575e6eec2a0b178d">QCPAbstractPlottable1D< DataType ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a14cf167457cda163575e6eec2a0b178d">QCPAbstractPlottable1D< QCPFinancialData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a14cf167457cda163575e6eec2a0b178d">QCPAbstractPlottable1D< QCPStatisticalBoxData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a14cf167457cda163575e6eec2a0b178d">QCPAbstractPlottable1D< QCPGraphData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a14cf167457cda163575e6eec2a0b178d">QCPAbstractPlottable1D< QCPBarsData ></a>, and <a class="el" href="classQCPAbstractPlottable1D.html#a14cf167457cda163575e6eec2a0b178d">QCPAbstractPlottable1D< QCPCurveData ></a>.</p>
</div>
</div>
<a id="a229e65e7ab968dd6cd0e259fa504b79d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a229e65e7ab968dd6cd0e259fa504b79d">§ </a></span>sortKeyIsMainKey()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool QCPPlottableInterface1D::sortKeyIsMainKey </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>Returns whether the sort key (<a class="el" href="classQCPPlottableInterface1D.html#afdc92f9f01e7e35f2e96b2ea9dc14ae7">dataSortKey</a>) is identical to the main key (<a class="el" href="classQCPPlottableInterface1D.html#a2bd60daaac046945fead558cbd83cf73">dataMainKey</a>).</p>
<p>What the sort and main keys are, is defined by the plottable's data type. See the <a class="el" href="classQCPDataContainer.html#qcpdatacontainer-datatype">QCPDataContainer DataType</a> documentation for details about this naming convention. </p>
<p>Implemented in <a class="el" href="classQCPErrorBars.html#aa00fcef7b0cb5c54bafe32ab4b16e674">QCPErrorBars</a>, <a class="el" href="classQCPAbstractPlottable1D.html#a022e8905f5a667d8379493d6a037e79f">QCPAbstractPlottable1D< DataType ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a022e8905f5a667d8379493d6a037e79f">QCPAbstractPlottable1D< QCPFinancialData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a022e8905f5a667d8379493d6a037e79f">QCPAbstractPlottable1D< QCPStatisticalBoxData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a022e8905f5a667d8379493d6a037e79f">QCPAbstractPlottable1D< QCPGraphData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#a022e8905f5a667d8379493d6a037e79f">QCPAbstractPlottable1D< QCPBarsData ></a>, and <a class="el" href="classQCPAbstractPlottable1D.html#a022e8905f5a667d8379493d6a037e79f">QCPAbstractPlottable1D< QCPCurveData ></a>.</p>
</div>
</div>
<a id="a67093e4ccf490ff5f7750640941ff34c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67093e4ccf490ff5f7750640941ff34c">§ </a></span>selectTestRect()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classQCPDataSelection.html">QCPDataSelection</a> QCPPlottableInterface1D::selectTestRect </td>
<td>(</td>
<td class="paramtype">const QRectF & </td>
<td class="paramname"><em>rect</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>onlySelectable</em> </td>
</tr>
<tr>
<td></td>
<td>)</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>Returns a data selection containing all the data points of this plottable which are contained (or hit by) <em>rect</em>. This is used mainly in the selection rect interaction for data selection (<a class="el" href="dataselection.html">data selection mechanism</a>).</p>
<p>If <em>onlySelectable</em> is true, an empty <a class="el" href="classQCPDataSelection.html" title="Describes a data set by holding multiple QCPDataRange instances. ">QCPDataSelection</a> is returned if this plottable is not selectable (i.e. if <a class="el" href="classQCPAbstractPlottable.html#ac238d6e910f976f1f30d41c2bca44ac3">QCPAbstractPlottable::setSelectable</a> is <a class="el" href="namespaceQCP.html#ac6cb9db26a564b27feda362a438db038aa64628e338a2dd1e6f0dc84dec0b63fe">QCP::stNone</a>).</p>
<dl class="section note"><dt>Note</dt><dd><em>rect</em> must be a normalized rect (positive or zero width and height). This is especially important when using the rect of <a class="el" href="classQCPSelectionRect.html#a15a43542e1f7b953a44c260b419e6d2c">QCPSelectionRect::accepted</a>, which is not necessarily normalized. Use <code>QRect::normalized()</code> when passing a rect which might not be normalized. </dd></dl>
<p>Implemented in <a class="el" href="classQCPBars.html#abecc6fda984974bb97c74d6858444d1a">QCPBars</a>, <a class="el" href="classQCPFinancial.html#a1ab1bff011a0da688fb2fc788c2f88e1">QCPFinancial</a>, <a class="el" href="classQCPErrorBars.html#ac32f9e729cb205ca56821f9b663472c0">QCPErrorBars</a>, <a class="el" href="classQCPStatisticalBox.html#af033682d9c04dab6672bfcfa484e6324">QCPStatisticalBox</a>, <a class="el" href="classQCPAbstractPlottable1D.html#ac385c38a79e419ed3600c2ee398fd216">QCPAbstractPlottable1D< DataType ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ac385c38a79e419ed3600c2ee398fd216">QCPAbstractPlottable1D< QCPFinancialData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ac385c38a79e419ed3600c2ee398fd216">QCPAbstractPlottable1D< QCPStatisticalBoxData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ac385c38a79e419ed3600c2ee398fd216">QCPAbstractPlottable1D< QCPGraphData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ac385c38a79e419ed3600c2ee398fd216">QCPAbstractPlottable1D< QCPBarsData ></a>, and <a class="el" href="classQCPAbstractPlottable1D.html#ac385c38a79e419ed3600c2ee398fd216">QCPAbstractPlottable1D< QCPCurveData ></a>.</p>
</div>
</div>
<a id="a5b95783271306a4de97be54eac1e7d13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b95783271306a4de97be54eac1e7d13">§ </a></span>findBegin()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int QCPPlottableInterface1D::findBegin </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>sortKey</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>expandedRange</em> = <code>true</code> </td>
</tr>
<tr>
<td></td>
<td>)</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>Returns the index of the data point with a (sort-)key that is equal to, just below, or just above <em>sortKey</em>. If <em>expandedRange</em> is true, the data point just below <em>sortKey</em> will be considered, otherwise the one just above.</p>
<p>This can be used in conjunction with <a class="el" href="classQCPPlottableInterface1D.html#a5deced1016bc55a41a2339619045b295">findEnd</a> to iterate over data points within a given key range, including or excluding the bounding data points that are just beyond the specified range.</p>
<p>If <em>expandedRange</em> is true but there are no data points below <em>sortKey</em>, 0 is returned.</p>
<p>If the container is empty, returns 0 (in that case, <a class="el" href="classQCPPlottableInterface1D.html#a5deced1016bc55a41a2339619045b295">findEnd</a> will also return 0, so a loop using these methods will not iterate over the index 0).</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classQCPPlottableInterface1D.html#a5deced1016bc55a41a2339619045b295">findEnd</a>, <a class="el" href="classQCPDataContainer.html#a2ad8a5399072d99a242d3a6d2d7e278a">QCPDataContainer::findBegin</a> </dd></dl>
<p>Implemented in <a class="el" href="classQCPErrorBars.html#a5c74b510f1d7254263ec18cd3a359a07">QCPErrorBars</a>, <a class="el" href="classQCPAbstractPlottable1D.html#ae6ead74a0d6a17954e1857f361b9ccf2">QCPAbstractPlottable1D< DataType ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ae6ead74a0d6a17954e1857f361b9ccf2">QCPAbstractPlottable1D< QCPFinancialData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ae6ead74a0d6a17954e1857f361b9ccf2">QCPAbstractPlottable1D< QCPStatisticalBoxData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ae6ead74a0d6a17954e1857f361b9ccf2">QCPAbstractPlottable1D< QCPGraphData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ae6ead74a0d6a17954e1857f361b9ccf2">QCPAbstractPlottable1D< QCPBarsData ></a>, and <a class="el" href="classQCPAbstractPlottable1D.html#ae6ead74a0d6a17954e1857f361b9ccf2">QCPAbstractPlottable1D< QCPCurveData ></a>.</p>
</div>
</div>
<a id="a5deced1016bc55a41a2339619045b295"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5deced1016bc55a41a2339619045b295">§ </a></span>findEnd()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int QCPPlottableInterface1D::findEnd </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>sortKey</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>expandedRange</em> = <code>true</code> </td>
</tr>
<tr>
<td></td>
<td>)</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>Returns the index one after the data point with a (sort-)key that is equal to, just above, or just below <em>sortKey</em>. If <em>expandedRange</em> is true, the data point just above <em>sortKey</em> will be considered, otherwise the one just below.</p>
<p>This can be used in conjunction with <a class="el" href="classQCPPlottableInterface1D.html#a5b95783271306a4de97be54eac1e7d13">findBegin</a> to iterate over data points within a given key range, including the bounding data points that are just below and above the specified range.</p>
<p>If <em>expandedRange</em> is true but there are no data points above <em>sortKey</em>, the index just above the highest data point is returned.</p>
<p>If the container is empty, returns 0.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classQCPPlottableInterface1D.html#a5b95783271306a4de97be54eac1e7d13">findBegin</a>, <a class="el" href="classQCPDataContainer.html#afb8b8f23cc2b7234a793a25ce79fe48f">QCPDataContainer::findEnd</a> </dd></dl>
<p>Implemented in <a class="el" href="classQCPErrorBars.html#a64629f13bb290d41dd8f1b37346bfdd4">QCPErrorBars</a>, <a class="el" href="classQCPAbstractPlottable1D.html#ad913df7f02add35150779dce3913aeae">QCPAbstractPlottable1D< DataType ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ad913df7f02add35150779dce3913aeae">QCPAbstractPlottable1D< QCPFinancialData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ad913df7f02add35150779dce3913aeae">QCPAbstractPlottable1D< QCPStatisticalBoxData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ad913df7f02add35150779dce3913aeae">QCPAbstractPlottable1D< QCPGraphData ></a>, <a class="el" href="classQCPAbstractPlottable1D.html#ad913df7f02add35150779dce3913aeae">QCPAbstractPlottable1D< QCPBarsData ></a>, and <a class="el" href="classQCPAbstractPlottable1D.html#ad913df7f02add35150779dce3913aeae">QCPAbstractPlottable1D< QCPCurveData ></a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/plottable1d.h</li>
<li>src/plottable1d.cpp</li>
</ul>
</div><!-- contents -->
</body>
</html>
|