classQCPAbstractPlottable.html 109 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta name="author" content="Emanuel Eichhammer" />
  6. <meta name="copyright" content="(C) 2013-2015 Emanuel Eichhammer" />
  7. <title>QCPAbstractPlottable Class Reference</title>
  8. <link href="qt.css" rel="stylesheet" type="text/css"/>
  9. </head>
  10. <body>
  11. <div id="top">
  12. <a class="headerLink" href="index.html">Main Page</a> &middot;
  13. <a class="headerLink" href="classoverview.html">Class Overview</a> &middot;
  14. <a class="headerLink" href="hierarchy.html">Hierarchy</a> &middot;
  15. <a class="headerLink" href="annotated.html">All Classes</a> &middot;
  16. <a class="headerLink" href="pages.html">Special Pages</a>
  17. <!-- Generated by Doxygen 1.8.6 -->
  18. </div><!-- top -->
  19. <div class="header">
  20. <div class="summary">
  21. <a href="#pub-methods">Public Functions</a> &#124;
  22. <a href="#signals">Signals</a> &#124;
  23. <a href="#pro-types">Protected Types</a> &#124;
  24. <a href="#pro-methods">Protected Functions</a> </div>
  25. <div class="headertitle">
  26. <div class="title">QCPAbstractPlottable Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
  27. </div><!--header-->
  28. <div class="contents">
  29. <p>The abstract base class for all data representing objects in a plot.
  30. <a href="classQCPAbstractPlottable.html#details">More...</a></p>
  31. <div class="dynheader">
  32. Inheritance diagram for QCPAbstractPlottable:</div>
  33. <div class="dyncontent">
  34. <div class="center"><img src="classQCPAbstractPlottable__inherit__graph.png" border="0" usemap="#QCPAbstractPlottable_inherit__map" alt="Inheritance graph"/></div>
  35. <map name="QCPAbstractPlottable_inherit__map" id="QCPAbstractPlottable_inherit__map">
  36. <area shape="rect" id="node3" href="classQCPBars.html" title="A plottable representing a bar chart in a plot. " alt="" coords="5,149,77,173"/><area shape="rect" id="node4" href="classQCPColorMap.html" title="A plottable representing a two&#45;dimensional color map in a plot. " alt="" coords="103,149,201,173"/><area shape="rect" id="node5" href="classQCPCurve.html" title="A plottable representing a parametric curve in a plot. " alt="" coords="226,149,304,173"/><area shape="rect" id="node6" href="classQCPFinancial.html" title="A plottable representing a financial stock chart. " alt="" coords="329,149,423,173"/><area shape="rect" id="node7" href="classQCPGraph.html" title="A plottable representing a graph in a plot. " alt="" coords="447,149,528,173"/><area shape="rect" id="node8" href="classQCPStatisticalBox.html" title="A plottable representing a single statistical box in a plot. " alt="" coords="553,149,676,173"/><area shape="rect" id="node2" href="classQCPLayerable.html" title="Base class for all drawable objects. " alt="" coords="269,5,371,29"/></map>
  37. </div>
  38. <table class="memberdecls">
  39. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  40. Public Functions</h2></td></tr>
  41. <tr class="memitem:af78a036e40db6f53a31abadc5323715a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#af78a036e40db6f53a31abadc5323715a">QCPAbstractPlottable</a> (<a class="el" href="classQCPAxis.html">QCPAxis</a> *keyAxis, <a class="el" href="classQCPAxis.html">QCPAxis</a> *valueAxis)</td></tr>
  42. <tr class="separator:af78a036e40db6f53a31abadc5323715a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  43. <tr class="memitem:a1affc1972938e4364a9325e4e4e4dcea"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1affc1972938e4364a9325e4e4e4dcea"></a>
  44. QString&#160;</td><td class="memItemRight" valign="bottom"><b>name</b> () const </td></tr>
  45. <tr class="separator:a1affc1972938e4364a9325e4e4e4dcea"><td class="memSeparator" colspan="2">&#160;</td></tr>
  46. <tr class="memitem:a68d1c358db03faae376ec47c589abf27"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a68d1c358db03faae376ec47c589abf27"></a>
  47. bool&#160;</td><td class="memItemRight" valign="bottom"><b>antialiasedFill</b> () const </td></tr>
  48. <tr class="separator:a68d1c358db03faae376ec47c589abf27"><td class="memSeparator" colspan="2">&#160;</td></tr>
  49. <tr class="memitem:aefc379bcc011660a5371ecc6088a97eb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aefc379bcc011660a5371ecc6088a97eb"></a>
  50. bool&#160;</td><td class="memItemRight" valign="bottom"><b>antialiasedScatters</b> () const </td></tr>
  51. <tr class="separator:aefc379bcc011660a5371ecc6088a97eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  52. <tr class="memitem:a630cfb27ff99ab4373b09631748fcf4a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a630cfb27ff99ab4373b09631748fcf4a"></a>
  53. bool&#160;</td><td class="memItemRight" valign="bottom"><b>antialiasedErrorBars</b> () const </td></tr>
  54. <tr class="separator:a630cfb27ff99ab4373b09631748fcf4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  55. <tr class="memitem:a41d060007cc6b3037c9c04d22d0c0398"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a41d060007cc6b3037c9c04d22d0c0398"></a>
  56. QPen&#160;</td><td class="memItemRight" valign="bottom"><b>pen</b> () const </td></tr>
  57. <tr class="separator:a41d060007cc6b3037c9c04d22d0c0398"><td class="memSeparator" colspan="2">&#160;</td></tr>
  58. <tr class="memitem:a006065572c5add883a944ea4cda699f3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a006065572c5add883a944ea4cda699f3"></a>
  59. QPen&#160;</td><td class="memItemRight" valign="bottom"><b>selectedPen</b> () const </td></tr>
  60. <tr class="separator:a006065572c5add883a944ea4cda699f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  61. <tr class="memitem:aa74cdceb9c7286ef116fbfa58e0326e7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa74cdceb9c7286ef116fbfa58e0326e7"></a>
  62. QBrush&#160;</td><td class="memItemRight" valign="bottom"><b>brush</b> () const </td></tr>
  63. <tr class="separator:aa74cdceb9c7286ef116fbfa58e0326e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  64. <tr class="memitem:a403745791879916431adc872b49207e5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a403745791879916431adc872b49207e5"></a>
  65. QBrush&#160;</td><td class="memItemRight" valign="bottom"><b>selectedBrush</b> () const </td></tr>
  66. <tr class="separator:a403745791879916431adc872b49207e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  67. <tr class="memitem:a72c7a09c22963f2c943f07112b311103"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a72c7a09c22963f2c943f07112b311103"></a>
  68. <a class="el" href="classQCPAxis.html">QCPAxis</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>keyAxis</b> () const </td></tr>
  69. <tr class="separator:a72c7a09c22963f2c943f07112b311103"><td class="memSeparator" colspan="2">&#160;</td></tr>
  70. <tr class="memitem:a3106f9d34d330a6097a8ec5905e5b519"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3106f9d34d330a6097a8ec5905e5b519"></a>
  71. <a class="el" href="classQCPAxis.html">QCPAxis</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>valueAxis</b> () const </td></tr>
  72. <tr class="separator:a3106f9d34d330a6097a8ec5905e5b519"><td class="memSeparator" colspan="2">&#160;</td></tr>
  73. <tr class="memitem:af895574da1ec0d050711b6c9deda296a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af895574da1ec0d050711b6c9deda296a"></a>
  74. bool&#160;</td><td class="memItemRight" valign="bottom"><b>selectable</b> () const </td></tr>
  75. <tr class="separator:af895574da1ec0d050711b6c9deda296a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  76. <tr class="memitem:ab901903adcb0e29467d63de72340ab29"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab901903adcb0e29467d63de72340ab29"></a>
  77. bool&#160;</td><td class="memItemRight" valign="bottom"><b>selected</b> () const </td></tr>
  78. <tr class="separator:ab901903adcb0e29467d63de72340ab29"><td class="memSeparator" colspan="2">&#160;</td></tr>
  79. <tr class="memitem:ab79c7ba76bc7fa89a4b3580e12149f1f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#ab79c7ba76bc7fa89a4b3580e12149f1f">setName</a> (const QString &amp;name)</td></tr>
  80. <tr class="separator:ab79c7ba76bc7fa89a4b3580e12149f1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:a089d6b5577120239b55c39ed27c39536"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a089d6b5577120239b55c39ed27c39536">setAntialiasedFill</a> (bool enabled)</td></tr>
  82. <tr class="separator:a089d6b5577120239b55c39ed27c39536"><td class="memSeparator" colspan="2">&#160;</td></tr>
  83. <tr class="memitem:a2f03f067ede2ed4da6f7d0e4777a3f02"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a2f03f067ede2ed4da6f7d0e4777a3f02">setAntialiasedScatters</a> (bool enabled)</td></tr>
  84. <tr class="separator:a2f03f067ede2ed4da6f7d0e4777a3f02"><td class="memSeparator" colspan="2">&#160;</td></tr>
  85. <tr class="memitem:a757beb744b96cf1855cca5ab9d3ecf52"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a757beb744b96cf1855cca5ab9d3ecf52">setAntialiasedErrorBars</a> (bool enabled)</td></tr>
  86. <tr class="separator:a757beb744b96cf1855cca5ab9d3ecf52"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:ab74b09ae4c0e7e13142fe4b5bf46cac7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#ab74b09ae4c0e7e13142fe4b5bf46cac7">setPen</a> (const QPen &amp;pen)</td></tr>
  88. <tr class="separator:ab74b09ae4c0e7e13142fe4b5bf46cac7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  89. <tr class="memitem:a6911603cad23ab0469b108224517516f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a6911603cad23ab0469b108224517516f">setSelectedPen</a> (const QPen &amp;pen)</td></tr>
  90. <tr class="separator:a6911603cad23ab0469b108224517516f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  91. <tr class="memitem:a7a4b92144dca6453a1f0f210e27edc74"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a7a4b92144dca6453a1f0f210e27edc74">setBrush</a> (const QBrush &amp;brush)</td></tr>
  92. <tr class="separator:a7a4b92144dca6453a1f0f210e27edc74"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:ae8c816874089f7a44001e8618e81a9dc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#ae8c816874089f7a44001e8618e81a9dc">setSelectedBrush</a> (const QBrush &amp;brush)</td></tr>
  94. <tr class="separator:ae8c816874089f7a44001e8618e81a9dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  95. <tr class="memitem:a8524fa2994c63c0913ebd9bb2ffa3920"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a8524fa2994c63c0913ebd9bb2ffa3920">setKeyAxis</a> (<a class="el" href="classQCPAxis.html">QCPAxis</a> *axis)</td></tr>
  96. <tr class="separator:a8524fa2994c63c0913ebd9bb2ffa3920"><td class="memSeparator" colspan="2">&#160;</td></tr>
  97. <tr class="memitem:a71626a07367e241ec62ad2c34baf21cb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a71626a07367e241ec62ad2c34baf21cb">setValueAxis</a> (<a class="el" href="classQCPAxis.html">QCPAxis</a> *axis)</td></tr>
  98. <tr class="separator:a71626a07367e241ec62ad2c34baf21cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:a22c69299eb5569e0f6bf084877a37dc4"><td class="memItemLeft" align="right" valign="top">Q_SLOT void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a22c69299eb5569e0f6bf084877a37dc4">setSelectable</a> (bool selectable)</td></tr>
  100. <tr class="separator:a22c69299eb5569e0f6bf084877a37dc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  101. <tr class="memitem:afbd5428c2952f59d952e11ab5cd79176"><td class="memItemLeft" align="right" valign="top">Q_SLOT void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#afbd5428c2952f59d952e11ab5cd79176">setSelected</a> (bool selected)</td></tr>
  102. <tr class="separator:afbd5428c2952f59d952e11ab5cd79176"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:a86e5b8fd4b6ff4f4084e7ea4c573fc53"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a86e5b8fd4b6ff4f4084e7ea4c573fc53">clearData</a> ()=0</td></tr>
  104. <tr class="separator:a86e5b8fd4b6ff4f4084e7ea4c573fc53"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:a38efe9641d972992a3d44204bc80ec1d"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a38efe9641d972992a3d44204bc80ec1d">selectTest</a> (const QPointF &amp;pos, bool onlySelectable, QVariant *details=0) const =0</td></tr>
  106. <tr class="separator:a38efe9641d972992a3d44204bc80ec1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:a70f8cabfd808f7d5204b9f18c45c13f5"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a70f8cabfd808f7d5204b9f18c45c13f5">addToLegend</a> ()</td></tr>
  108. <tr class="separator:a70f8cabfd808f7d5204b9f18c45c13f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:aa1f350e510326d012b9a9c9249736c83"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#aa1f350e510326d012b9a9c9249736c83">removeFromLegend</a> () const </td></tr>
  110. <tr class="separator:aa1f350e510326d012b9a9c9249736c83"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:a7e8fc3be43c27ccacd70a7bf9d74a5cd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a7e8fc3be43c27ccacd70a7bf9d74a5cd">rescaleAxes</a> (bool onlyEnlarge=false) const </td></tr>
  112. <tr class="separator:a7e8fc3be43c27ccacd70a7bf9d74a5cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="memitem:a1acecfcca3e7fcda00fcbaa3c886386f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a1acecfcca3e7fcda00fcbaa3c886386f">rescaleKeyAxis</a> (bool onlyEnlarge=false) const </td></tr>
  114. <tr class="separator:a1acecfcca3e7fcda00fcbaa3c886386f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:abfd0805eb1d955c0111a990246658324"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#abfd0805eb1d955c0111a990246658324">rescaleValueAxis</a> (bool onlyEnlarge=false) const </td></tr>
  116. <tr class="separator:abfd0805eb1d955c0111a990246658324"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="inherit_header pub_methods_classQCPLayerable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classQCPLayerable')"><img src="closed.png" alt="-"/>&#160;Public Functions inherited from <a class="el" href="classQCPLayerable.html">QCPLayerable</a></td></tr>
  118. <tr class="memitem:a74c0fa237f29bf0e49565013fc5d1ec0 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#a74c0fa237f29bf0e49565013fc5d1ec0">QCPLayerable</a> (<a class="el" href="classQCustomPlot.html">QCustomPlot</a> *plot, QString targetLayer=QString(), <a class="el" href="classQCPLayerable.html">QCPLayerable</a> *<a class="el" href="classQCPLayerable.html#a98d79f5b716d45eac4347befe546d0ec">parentLayerable</a>=0)</td></tr>
  119. <tr class="separator:a74c0fa237f29bf0e49565013fc5d1ec0 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:a10a3cc92e0fa63e4a929e61d34e275a7 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a10a3cc92e0fa63e4a929e61d34e275a7"></a>
  121. bool&#160;</td><td class="memItemRight" valign="bottom"><b>visible</b> () const </td></tr>
  122. <tr class="separator:a10a3cc92e0fa63e4a929e61d34e275a7 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:ab7e0e94461566093d36ffc0f5312b109 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab7e0e94461566093d36ffc0f5312b109"></a>
  124. <a class="el" href="classQCustomPlot.html">QCustomPlot</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>parentPlot</b> () const </td></tr>
  125. <tr class="separator:ab7e0e94461566093d36ffc0f5312b109 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:a98d79f5b716d45eac4347befe546d0ec inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQCPLayerable.html">QCPLayerable</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#a98d79f5b716d45eac4347befe546d0ec">parentLayerable</a> () const </td></tr>
  127. <tr class="separator:a98d79f5b716d45eac4347befe546d0ec inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:aea67e8c19145e70d68c286a36f6b8300 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aea67e8c19145e70d68c286a36f6b8300"></a>
  129. <a class="el" href="classQCPLayer.html">QCPLayer</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>layer</b> () const </td></tr>
  130. <tr class="separator:aea67e8c19145e70d68c286a36f6b8300 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:aef5cb4aa899ed9dc9384fd614560291e inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aef5cb4aa899ed9dc9384fd614560291e"></a>
  132. bool&#160;</td><td class="memItemRight" valign="bottom"><b>antialiased</b> () const </td></tr>
  133. <tr class="separator:aef5cb4aa899ed9dc9384fd614560291e inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:a3bed99ddc396b48ce3ebfdc0418744f8 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#a3bed99ddc396b48ce3ebfdc0418744f8">setVisible</a> (bool on)</td></tr>
  135. <tr class="separator:a3bed99ddc396b48ce3ebfdc0418744f8 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:ab0d0da6d2de45a118886d2c8e16d5a54 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">Q_SLOT bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#ab0d0da6d2de45a118886d2c8e16d5a54">setLayer</a> (<a class="el" href="classQCPLayer.html">QCPLayer</a> *layer)</td></tr>
  137. <tr class="separator:ab0d0da6d2de45a118886d2c8e16d5a54 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:ab25a0e7b897993b44447caee0f142083 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#ab25a0e7b897993b44447caee0f142083">setLayer</a> (const QString &amp;layerName)</td></tr>
  139. <tr class="separator:ab25a0e7b897993b44447caee0f142083 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. <tr class="memitem:a4fd43e89be4a553ead41652565ff0581 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#a4fd43e89be4a553ead41652565ff0581">setAntialiased</a> (bool enabled)</td></tr>
  141. <tr class="separator:a4fd43e89be4a553ead41652565ff0581 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  142. <tr class="memitem:a30809f7455e9794bca7b6c737622fa63 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#a30809f7455e9794bca7b6c737622fa63">realVisibility</a> () const </td></tr>
  143. <tr class="separator:a30809f7455e9794bca7b6c737622fa63 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. </table><table class="memberdecls">
  145. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
  146. Signals</h2></td></tr>
  147. <tr class="memitem:a3af66432b1dca93b28e00e78a8c7c1d9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a3af66432b1dca93b28e00e78a8c7c1d9">selectionChanged</a> (bool selected)</td></tr>
  148. <tr class="separator:a3af66432b1dca93b28e00e78a8c7c1d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. <tr class="memitem:a0059caa3f3581f3959660fef8cbb71c4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a0059caa3f3581f3959660fef8cbb71c4">selectableChanged</a> (bool selectable)</td></tr>
  150. <tr class="separator:a0059caa3f3581f3959660fef8cbb71c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="inherit_header signals_classQCPLayerable"><td colspan="2" onclick="javascript:toggleInherit('signals_classQCPLayerable')"><img src="closed.png" alt="-"/>&#160;Signals inherited from <a class="el" href="classQCPLayerable.html">QCPLayerable</a></td></tr>
  152. <tr class="memitem:abbf8657cedea73ac1c3499b521c90eba inherit signals_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#abbf8657cedea73ac1c3499b521c90eba">layerChanged</a> (<a class="el" href="classQCPLayer.html">QCPLayer</a> *newLayer)</td></tr>
  153. <tr class="separator:abbf8657cedea73ac1c3499b521c90eba inherit signals_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  154. </table><table class="memberdecls">
  155. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-types"></a>
  156. Protected Types</h2></td></tr>
  157. <tr class="memitem:a661743478a1d3c09d28ec2711d7653d8"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8">SignDomain</a> </td></tr>
  158. <tr class="separator:a661743478a1d3c09d28ec2711d7653d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. </table><table class="memberdecls">
  160. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
  161. Protected Functions</h2></td></tr>
  162. <tr class="memitem:ac01960b0827913922f5364d559c124ed"><td class="memItemLeft" align="right" valign="top">virtual QRect&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#ac01960b0827913922f5364d559c124ed">clipRect</a> () const </td></tr>
  163. <tr class="separator:ac01960b0827913922f5364d559c124ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
  164. <tr class="memitem:acbab5e30dcd04fd302b4a5902ac2c482"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#acbab5e30dcd04fd302b4a5902ac2c482">draw</a> (<a class="el" href="classQCPPainter.html">QCPPainter</a> *painter)=0</td></tr>
  165. <tr class="separator:acbab5e30dcd04fd302b4a5902ac2c482"><td class="memSeparator" colspan="2">&#160;</td></tr>
  166. <tr class="memitem:a5eef607bcc2aee8bfe2380a8710f6c64"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespaceQCP.html#a2ad6bb6281c7c2d593d4277b44c2b037">QCP::Interaction</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a5eef607bcc2aee8bfe2380a8710f6c64">selectionCategory</a> () const </td></tr>
  167. <tr class="separator:a5eef607bcc2aee8bfe2380a8710f6c64"><td class="memSeparator" colspan="2">&#160;</td></tr>
  168. <tr class="memitem:a76e9d6cc7972dc1528f526d163766aca"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a76e9d6cc7972dc1528f526d163766aca">applyDefaultAntialiasingHint</a> (<a class="el" href="classQCPPainter.html">QCPPainter</a> *painter) const </td></tr>
  169. <tr class="separator:a76e9d6cc7972dc1528f526d163766aca"><td class="memSeparator" colspan="2">&#160;</td></tr>
  170. <tr class="memitem:a16aaad02456aa23a759efd1ac90c79bf"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a16aaad02456aa23a759efd1ac90c79bf">selectEvent</a> (QMouseEvent *event, bool additive, const QVariant &amp;details, bool *selectionStateChanged)</td></tr>
  171. <tr class="separator:a16aaad02456aa23a759efd1ac90c79bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
  172. <tr class="memitem:a6fa0d0f95560ea8b01ee13f296dab2b1"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a6fa0d0f95560ea8b01ee13f296dab2b1">deselectEvent</a> (bool *selectionStateChanged)</td></tr>
  173. <tr class="separator:a6fa0d0f95560ea8b01ee13f296dab2b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  174. <tr class="memitem:a9a450783fd9ed539e589999fd390cdf7"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a9a450783fd9ed539e589999fd390cdf7">drawLegendIcon</a> (<a class="el" href="classQCPPainter.html">QCPPainter</a> *painter, const QRectF &amp;rect) const =0</td></tr>
  175. <tr class="separator:a9a450783fd9ed539e589999fd390cdf7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  176. <tr class="memitem:a345d702b2e7e12c8cfdddff65ba85e8c"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classQCPRange.html">QCPRange</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a345d702b2e7e12c8cfdddff65ba85e8c">getKeyRange</a> (bool &amp;foundRange, <a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8">SignDomain</a> inSignDomain=<a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8a082b98cfb91a7363a3b5cd17b0c1cd60">sdBoth</a>) const =0</td></tr>
  177. <tr class="separator:a345d702b2e7e12c8cfdddff65ba85e8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  178. <tr class="memitem:aa3331b415b5939fe4df60b78831b2799"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classQCPRange.html">QCPRange</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#aa3331b415b5939fe4df60b78831b2799">getValueRange</a> (bool &amp;foundRange, <a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8">SignDomain</a> inSignDomain=<a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8a082b98cfb91a7363a3b5cd17b0c1cd60">sdBoth</a>) const =0</td></tr>
  179. <tr class="separator:aa3331b415b5939fe4df60b78831b2799"><td class="memSeparator" colspan="2">&#160;</td></tr>
  180. <tr class="memitem:ade710a776104b14c1c835168ce1bfc5c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#ade710a776104b14c1c835168ce1bfc5c">coordsToPixels</a> (double key, double value, double &amp;x, double &amp;y) const </td></tr>
  181. <tr class="separator:ade710a776104b14c1c835168ce1bfc5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  182. <tr class="memitem:a9fd1c9df8391781f05b0be22fbe91e13"><td class="memItemLeft" align="right" valign="top">const QPointF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a9fd1c9df8391781f05b0be22fbe91e13">coordsToPixels</a> (double key, double value) const </td></tr>
  183. <tr class="separator:a9fd1c9df8391781f05b0be22fbe91e13"><td class="memSeparator" colspan="2">&#160;</td></tr>
  184. <tr class="memitem:a10408828446e9e0681c46d65120f382e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a10408828446e9e0681c46d65120f382e">pixelsToCoords</a> (double x, double y, double &amp;key, double &amp;value) const </td></tr>
  185. <tr class="separator:a10408828446e9e0681c46d65120f382e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  186. <tr class="memitem:a3e2c361cfcdfd5d803ada4d333a07e15"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a3e2c361cfcdfd5d803ada4d333a07e15">pixelsToCoords</a> (const QPointF &amp;pixelPos, double &amp;key, double &amp;value) const </td></tr>
  187. <tr class="separator:a3e2c361cfcdfd5d803ada4d333a07e15"><td class="memSeparator" colspan="2">&#160;</td></tr>
  188. <tr class="memitem:a19276ed2382a3a06464417b8788b1451"><td class="memItemLeft" align="right" valign="top">QPen&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a19276ed2382a3a06464417b8788b1451">mainPen</a> () const </td></tr>
  189. <tr class="separator:a19276ed2382a3a06464417b8788b1451"><td class="memSeparator" colspan="2">&#160;</td></tr>
  190. <tr class="memitem:ae74c123832da180c17e22203e748d9b7"><td class="memItemLeft" align="right" valign="top">QBrush&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#ae74c123832da180c17e22203e748d9b7">mainBrush</a> () const </td></tr>
  191. <tr class="separator:ae74c123832da180c17e22203e748d9b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  192. <tr class="memitem:ac08a480155895e674dbfe5a5670e0ff3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#ac08a480155895e674dbfe5a5670e0ff3">applyFillAntialiasingHint</a> (<a class="el" href="classQCPPainter.html">QCPPainter</a> *painter) const </td></tr>
  193. <tr class="separator:ac08a480155895e674dbfe5a5670e0ff3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  194. <tr class="memitem:a753272ee225a62827e90c3e1e78de4b1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a753272ee225a62827e90c3e1e78de4b1">applyScattersAntialiasingHint</a> (<a class="el" href="classQCPPainter.html">QCPPainter</a> *painter) const </td></tr>
  195. <tr class="separator:a753272ee225a62827e90c3e1e78de4b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  196. <tr class="memitem:af687bfe6160255960558eb71f1f81e73"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#af687bfe6160255960558eb71f1f81e73">applyErrorBarsAntialiasingHint</a> (<a class="el" href="classQCPPainter.html">QCPPainter</a> *painter) const </td></tr>
  197. <tr class="separator:af687bfe6160255960558eb71f1f81e73"><td class="memSeparator" colspan="2">&#160;</td></tr>
  198. <tr class="memitem:a5ea1cab44ca912dcdc96ed81ec5bed5d"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPAbstractPlottable.html#a5ea1cab44ca912dcdc96ed81ec5bed5d">distSqrToLine</a> (const QPointF &amp;start, const QPointF &amp;end, const QPointF &amp;point) const </td></tr>
  199. <tr class="separator:a5ea1cab44ca912dcdc96ed81ec5bed5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  200. <tr class="inherit_header pro_methods_classQCPLayerable"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classQCPLayerable')"><img src="closed.png" alt="-"/>&#160;Protected Functions inherited from <a class="el" href="classQCPLayerable.html">QCPLayerable</a></td></tr>
  201. <tr class="memitem:ab20b7dbd8e0249ed61adb9622c427382 inherit pro_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#ab20b7dbd8e0249ed61adb9622c427382">parentPlotInitialized</a> (<a class="el" href="classQCustomPlot.html">QCustomPlot</a> *parentPlot)</td></tr>
  202. <tr class="separator:ab20b7dbd8e0249ed61adb9622c427382 inherit pro_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  203. <tr class="memitem:a8cbe5a0c9a5674249982f5ca5f8e02bc inherit pro_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#a8cbe5a0c9a5674249982f5ca5f8e02bc">initializeParentPlot</a> (<a class="el" href="classQCustomPlot.html">QCustomPlot</a> *parentPlot)</td></tr>
  204. <tr class="separator:a8cbe5a0c9a5674249982f5ca5f8e02bc inherit pro_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  205. <tr class="memitem:aa23c893671f1f6744ac235cf2204cf3a inherit pro_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#aa23c893671f1f6744ac235cf2204cf3a">setParentLayerable</a> (<a class="el" href="classQCPLayerable.html">QCPLayerable</a> *<a class="el" href="classQCPLayerable.html#a98d79f5b716d45eac4347befe546d0ec">parentLayerable</a>)</td></tr>
  206. <tr class="separator:aa23c893671f1f6744ac235cf2204cf3a inherit pro_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  207. <tr class="memitem:af94484cfb7cbbddb7de522e9be71d9a4 inherit pro_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#af94484cfb7cbbddb7de522e9be71d9a4">moveToLayer</a> (<a class="el" href="classQCPLayer.html">QCPLayer</a> *layer, bool prepend)</td></tr>
  208. <tr class="separator:af94484cfb7cbbddb7de522e9be71d9a4 inherit pro_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  209. <tr class="memitem:a62bd552d1a45aa9accb24b310542279e inherit pro_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#a62bd552d1a45aa9accb24b310542279e">applyAntialiasingHint</a> (<a class="el" href="classQCPPainter.html">QCPPainter</a> *painter, bool localAntialiased, <a class="el" href="namespaceQCP.html#ae55dbe315d41fe80f29ba88100843a0c">QCP::AntialiasedElement</a> overrideElement) const </td></tr>
  210. <tr class="separator:a62bd552d1a45aa9accb24b310542279e inherit pro_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  211. </table>
  212. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  213. <div class="textblock"><p>The abstract base class for all data representing objects in a plot. </p>
  214. <p>It defines a very basic interface like name, pen, brush, visibility etc. Since this class is abstract, it can't be instantiated. Use one of the subclasses or create a subclass yourself to create new ways of displaying data (see "Creating own plottables" below).</p>
  215. <p>All further specifics are in the subclasses, for example: </p>
  216. <ul>
  217. <li>A normal graph with possibly a line, scatter points and error bars: <a class="el" href="classQCPGraph.html">QCPGraph</a> (typically created with <a class="el" href="classQCustomPlot.html#a6fb2873d35a8a8089842d81a70a54167">QCustomPlot::addGraph</a>) </li>
  218. <li>A parametric curve: <a class="el" href="classQCPCurve.html">QCPCurve</a> </li>
  219. <li>A bar chart: <a class="el" href="classQCPBars.html">QCPBars</a> </li>
  220. <li>A statistical box plot: <a class="el" href="classQCPStatisticalBox.html">QCPStatisticalBox</a> </li>
  221. <li>A color encoded two-dimensional map: <a class="el" href="classQCPColorMap.html">QCPColorMap</a> </li>
  222. <li>An OHLC/Candlestick chart: <a class="el" href="classQCPFinancial.html">QCPFinancial</a></li>
  223. </ul>
  224. <h1><a class="anchor" id="plottables-subclassing"></a>
  225. Creating own plottables</h1>
  226. <p>To create an own plottable, you implement a subclass of <a class="el" href="classQCPAbstractPlottable.html" title="The abstract base class for all data representing objects in a plot. ">QCPAbstractPlottable</a>. These are the pure virtual functions, you must implement: </p>
  227. <ul>
  228. <li><a class="el" href="classQCPAbstractPlottable.html#a86e5b8fd4b6ff4f4084e7ea4c573fc53">clearData</a> </li>
  229. <li><a class="el" href="classQCPAbstractPlottable.html#a38efe9641d972992a3d44204bc80ec1d">selectTest</a> </li>
  230. <li><a class="el" href="classQCPAbstractPlottable.html#acbab5e30dcd04fd302b4a5902ac2c482">draw</a> </li>
  231. <li><a class="el" href="classQCPAbstractPlottable.html#a9a450783fd9ed539e589999fd390cdf7">drawLegendIcon</a> </li>
  232. <li><a class="el" href="classQCPAbstractPlottable.html#a345d702b2e7e12c8cfdddff65ba85e8c">getKeyRange</a> </li>
  233. <li><a class="el" href="classQCPAbstractPlottable.html#aa3331b415b5939fe4df60b78831b2799">getValueRange</a></li>
  234. </ul>
  235. <p>See the documentation of those functions for what they need to do.</p>
  236. <p>For drawing your plot, you can use the <a class="el" href="classQCPAbstractPlottable.html#ade710a776104b14c1c835168ce1bfc5c">coordsToPixels</a> functions to translate a point in plot coordinates to pixel coordinates. This function is quite convenient, because it takes the orientation of the key and value axes into account for you (x and y are swapped when the key axis is vertical and the value axis horizontal). If you are worried about performance (i.e. you need to translate many points in a loop like <a class="el" href="classQCPGraph.html" title="A plottable representing a graph in a plot. ">QCPGraph</a>), you can directly use <a class="el" href="classQCPAxis.html#a985ae693b842fb0422b4390fe36d299a">QCPAxis::coordToPixel</a>. However, you must then take care about the orientation of the axis yourself.</p>
  237. <p>Here are some important members you inherit from <a class="el" href="classQCPAbstractPlottable.html" title="The abstract base class for all data representing objects in a plot. ">QCPAbstractPlottable</a>: </p>
  238. <table class="doxtable">
  239. <tr>
  240. <td><a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a> *<b>mParentPlot</b> </td><td>A pointer to the parent <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a> instance. The parent plot is inferred from the axes that are passed in the constructor. </td></tr>
  241. <tr>
  242. <td>QString <b>mName</b> </td><td>The name of the plottable. </td></tr>
  243. <tr>
  244. <td>QPen <b>mPen</b> </td><td>The generic pen of the plottable. You should use this pen for the most prominent data representing lines in the plottable (e.g <a class="el" href="classQCPGraph.html" title="A plottable representing a graph in a plot. ">QCPGraph</a> uses this pen for its graph lines and scatters) </td></tr>
  245. <tr>
  246. <td>QPen <b>mSelectedPen</b> </td><td>The generic pen that should be used when the plottable is selected (hint: <a class="el" href="classQCPAbstractPlottable.html#a19276ed2382a3a06464417b8788b1451">mainPen</a> gives you the right pen, depending on selection state). </td></tr>
  247. <tr>
  248. <td>QBrush <b>mBrush</b> </td><td>The generic brush of the plottable. You should use this brush for the most prominent fillable structures in the plottable (e.g. <a class="el" href="classQCPGraph.html" title="A plottable representing a graph in a plot. ">QCPGraph</a> uses this brush to control filling under the graph) </td></tr>
  249. <tr>
  250. <td>QBrush <b>mSelectedBrush</b> </td><td>The generic brush that should be used when the plottable is selected (hint: <a class="el" href="classQCPAbstractPlottable.html#ae74c123832da180c17e22203e748d9b7">mainBrush</a> gives you the right brush, depending on selection state). </td></tr>
  251. <tr>
  252. <td>QPointer&lt;QCPAxis&gt;<b>mKeyAxis</b>, <b>mValueAxis</b> </td><td>The key and value axes this plottable is attached to. Call their <a class="el" href="classQCPAxis.html#a985ae693b842fb0422b4390fe36d299a">QCPAxis::coordToPixel</a> functions to translate coordinates to pixels in either the key or value dimension. Make sure to check whether the pointer is null before using it. If one of the axes is null, don't draw the plottable. </td></tr>
  253. <tr>
  254. <td>bool <b>mSelected</b> </td><td>indicates whether the plottable is selected or not. </td></tr>
  255. </table>
  256. </div><h2 class="groupheader">Member Enumeration Documentation</h2>
  257. <a class="anchor" id="a661743478a1d3c09d28ec2711d7653d8"></a>
  258. <div class="memitem">
  259. <div class="memproto">
  260. <table class="mlabels">
  261. <tr>
  262. <td class="mlabels-left">
  263. <table class="memname">
  264. <tr>
  265. <td class="memname">enum <a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8">QCPAbstractPlottable::SignDomain</a></td>
  266. </tr>
  267. </table>
  268. </td>
  269. <td class="mlabels-right">
  270. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  271. </tr>
  272. </table>
  273. </div><div class="memdoc">
  274. <p>Represents negative and positive sign domain for passing to <a class="el" href="classQCPAbstractPlottable.html#a345d702b2e7e12c8cfdddff65ba85e8c">getKeyRange</a> and <a class="el" href="classQCPAbstractPlottable.html#aa3331b415b5939fe4df60b78831b2799">getValueRange</a>. </p>
  275. <table class="fieldtable">
  276. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="a661743478a1d3c09d28ec2711d7653d8a0fc9a70796ef60ad18ddd18056e6dc63"></a>sdNegative</em>&#160;</td><td class="fielddoc">
  277. <p>The negative sign domain, i.e. numbers smaller than zero. </p>
  278. </td></tr>
  279. <tr><td class="fieldname"><em><a class="anchor" id="a661743478a1d3c09d28ec2711d7653d8a082b98cfb91a7363a3b5cd17b0c1cd60"></a>sdBoth</em>&#160;</td><td class="fielddoc">
  280. <p>Both sign domains, including zero, i.e. all (rational) numbers. </p>
  281. </td></tr>
  282. <tr><td class="fieldname"><em><a class="anchor" id="a661743478a1d3c09d28ec2711d7653d8a02951859f243a4d24e779cfbb5471030"></a>sdPositive</em>&#160;</td><td class="fielddoc">
  283. <p>The positive sign domain, i.e. numbers greater than zero. </p>
  284. </td></tr>
  285. </table>
  286. </div>
  287. </div>
  288. <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  289. <a class="anchor" id="af78a036e40db6f53a31abadc5323715a"></a>
  290. <div class="memitem">
  291. <div class="memproto">
  292. <table class="memname">
  293. <tr>
  294. <td class="memname">QCPAbstractPlottable::QCPAbstractPlottable </td>
  295. <td>(</td>
  296. <td class="paramtype"><a class="el" href="classQCPAxis.html">QCPAxis</a> *&#160;</td>
  297. <td class="paramname"><em>keyAxis</em>, </td>
  298. </tr>
  299. <tr>
  300. <td class="paramkey"></td>
  301. <td></td>
  302. <td class="paramtype"><a class="el" href="classQCPAxis.html">QCPAxis</a> *&#160;</td>
  303. <td class="paramname"><em>valueAxis</em>&#160;</td>
  304. </tr>
  305. <tr>
  306. <td></td>
  307. <td>)</td>
  308. <td></td><td></td>
  309. </tr>
  310. </table>
  311. </div><div class="memdoc">
  312. <p>Constructs an abstract plottable which uses <em>keyAxis</em> as its key axis ("x") and <em>valueAxis</em> as its value axis ("y"). <em>keyAxis</em> and <em>valueAxis</em> must reside in the same <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a> instance and have perpendicular orientations. If either of these restrictions is violated, a corresponding message is printed to the debug output (qDebug), the construction is not aborted, though.</p>
  313. <p>Since <a class="el" href="classQCPAbstractPlottable.html" title="The abstract base class for all data representing objects in a plot. ">QCPAbstractPlottable</a> is an abstract class that defines the basic interface to plottables, it can't be directly instantiated.</p>
  314. <p>You probably want one of the subclasses like <a class="el" href="classQCPGraph.html">QCPGraph</a> or <a class="el" href="classQCPCurve.html">QCPCurve</a> instead. </p>
  315. </div>
  316. </div>
  317. <h2 class="groupheader">Member Function Documentation</h2>
  318. <a class="anchor" id="ab79c7ba76bc7fa89a4b3580e12149f1f"></a>
  319. <div class="memitem">
  320. <div class="memproto">
  321. <table class="memname">
  322. <tr>
  323. <td class="memname">void QCPAbstractPlottable::setName </td>
  324. <td>(</td>
  325. <td class="paramtype">const QString &amp;&#160;</td>
  326. <td class="paramname"><em>name</em></td><td>)</td>
  327. <td></td>
  328. </tr>
  329. </table>
  330. </div><div class="memdoc">
  331. <p>The name is the textual representation of this plottable as it is displayed in the legend (<a class="el" href="classQCPLegend.html">QCPLegend</a>). It may contain any UTF-8 characters, including newlines. </p>
  332. </div>
  333. </div>
  334. <a class="anchor" id="a089d6b5577120239b55c39ed27c39536"></a>
  335. <div class="memitem">
  336. <div class="memproto">
  337. <table class="memname">
  338. <tr>
  339. <td class="memname">void QCPAbstractPlottable::setAntialiasedFill </td>
  340. <td>(</td>
  341. <td class="paramtype">bool&#160;</td>
  342. <td class="paramname"><em>enabled</em></td><td>)</td>
  343. <td></td>
  344. </tr>
  345. </table>
  346. </div><div class="memdoc">
  347. <p>Sets whether fills of this plottable are drawn antialiased or not.</p>
  348. <p>Note that this setting may be overridden by <a class="el" href="classQCustomPlot.html#af6f91e5eab1be85f67c556e98c3745e8">QCustomPlot::setAntialiasedElements</a> and <a class="el" href="classQCustomPlot.html#ae10d685b5eabea2999fb8775ca173c24">QCustomPlot::setNotAntialiasedElements</a>. </p>
  349. </div>
  350. </div>
  351. <a class="anchor" id="a2f03f067ede2ed4da6f7d0e4777a3f02"></a>
  352. <div class="memitem">
  353. <div class="memproto">
  354. <table class="memname">
  355. <tr>
  356. <td class="memname">void QCPAbstractPlottable::setAntialiasedScatters </td>
  357. <td>(</td>
  358. <td class="paramtype">bool&#160;</td>
  359. <td class="paramname"><em>enabled</em></td><td>)</td>
  360. <td></td>
  361. </tr>
  362. </table>
  363. </div><div class="memdoc">
  364. <p>Sets whether the scatter symbols of this plottable are drawn antialiased or not.</p>
  365. <p>Note that this setting may be overridden by <a class="el" href="classQCustomPlot.html#af6f91e5eab1be85f67c556e98c3745e8">QCustomPlot::setAntialiasedElements</a> and <a class="el" href="classQCustomPlot.html#ae10d685b5eabea2999fb8775ca173c24">QCustomPlot::setNotAntialiasedElements</a>. </p>
  366. </div>
  367. </div>
  368. <a class="anchor" id="a757beb744b96cf1855cca5ab9d3ecf52"></a>
  369. <div class="memitem">
  370. <div class="memproto">
  371. <table class="memname">
  372. <tr>
  373. <td class="memname">void QCPAbstractPlottable::setAntialiasedErrorBars </td>
  374. <td>(</td>
  375. <td class="paramtype">bool&#160;</td>
  376. <td class="paramname"><em>enabled</em></td><td>)</td>
  377. <td></td>
  378. </tr>
  379. </table>
  380. </div><div class="memdoc">
  381. <p>Sets whether the error bars of this plottable are drawn antialiased or not.</p>
  382. <p>Note that this setting may be overridden by <a class="el" href="classQCustomPlot.html#af6f91e5eab1be85f67c556e98c3745e8">QCustomPlot::setAntialiasedElements</a> and <a class="el" href="classQCustomPlot.html#ae10d685b5eabea2999fb8775ca173c24">QCustomPlot::setNotAntialiasedElements</a>. </p>
  383. </div>
  384. </div>
  385. <a class="anchor" id="ab74b09ae4c0e7e13142fe4b5bf46cac7"></a>
  386. <div class="memitem">
  387. <div class="memproto">
  388. <table class="memname">
  389. <tr>
  390. <td class="memname">void QCPAbstractPlottable::setPen </td>
  391. <td>(</td>
  392. <td class="paramtype">const QPen &amp;&#160;</td>
  393. <td class="paramname"><em>pen</em></td><td>)</td>
  394. <td></td>
  395. </tr>
  396. </table>
  397. </div><div class="memdoc">
  398. <p>The pen is used to draw basic lines that make up the plottable representation in the plot.</p>
  399. <p>For example, the <a class="el" href="classQCPGraph.html">QCPGraph</a> subclass draws its graph lines with this pen.</p>
  400. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#a7a4b92144dca6453a1f0f210e27edc74">setBrush</a> </dd></dl>
  401. </div>
  402. </div>
  403. <a class="anchor" id="a6911603cad23ab0469b108224517516f"></a>
  404. <div class="memitem">
  405. <div class="memproto">
  406. <table class="memname">
  407. <tr>
  408. <td class="memname">void QCPAbstractPlottable::setSelectedPen </td>
  409. <td>(</td>
  410. <td class="paramtype">const QPen &amp;&#160;</td>
  411. <td class="paramname"><em>pen</em></td><td>)</td>
  412. <td></td>
  413. </tr>
  414. </table>
  415. </div><div class="memdoc">
  416. <p>When the plottable is selected, this pen is used to draw basic lines instead of the normal pen set via <a class="el" href="classQCPAbstractPlottable.html#ab74b09ae4c0e7e13142fe4b5bf46cac7">setPen</a>.</p>
  417. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#afbd5428c2952f59d952e11ab5cd79176">setSelected</a>, <a class="el" href="classQCPAbstractPlottable.html#a22c69299eb5569e0f6bf084877a37dc4">setSelectable</a>, <a class="el" href="classQCPAbstractPlottable.html#ae8c816874089f7a44001e8618e81a9dc">setSelectedBrush</a>, <a class="el" href="classQCPAbstractPlottable.html#a38efe9641d972992a3d44204bc80ec1d">selectTest</a> </dd></dl>
  418. </div>
  419. </div>
  420. <a class="anchor" id="a7a4b92144dca6453a1f0f210e27edc74"></a>
  421. <div class="memitem">
  422. <div class="memproto">
  423. <table class="memname">
  424. <tr>
  425. <td class="memname">void QCPAbstractPlottable::setBrush </td>
  426. <td>(</td>
  427. <td class="paramtype">const QBrush &amp;&#160;</td>
  428. <td class="paramname"><em>brush</em></td><td>)</td>
  429. <td></td>
  430. </tr>
  431. </table>
  432. </div><div class="memdoc">
  433. <p>The brush is used to draw basic fills of the plottable representation in the plot. The Fill can be a color, gradient or texture, see the usage of QBrush.</p>
  434. <p>For example, the <a class="el" href="classQCPGraph.html">QCPGraph</a> subclass draws the fill under the graph with this brush, when it's not set to Qt::NoBrush.</p>
  435. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#ab74b09ae4c0e7e13142fe4b5bf46cac7">setPen</a> </dd></dl>
  436. </div>
  437. </div>
  438. <a class="anchor" id="ae8c816874089f7a44001e8618e81a9dc"></a>
  439. <div class="memitem">
  440. <div class="memproto">
  441. <table class="memname">
  442. <tr>
  443. <td class="memname">void QCPAbstractPlottable::setSelectedBrush </td>
  444. <td>(</td>
  445. <td class="paramtype">const QBrush &amp;&#160;</td>
  446. <td class="paramname"><em>brush</em></td><td>)</td>
  447. <td></td>
  448. </tr>
  449. </table>
  450. </div><div class="memdoc">
  451. <p>When the plottable is selected, this brush is used to draw fills instead of the normal brush set via <a class="el" href="classQCPAbstractPlottable.html#a7a4b92144dca6453a1f0f210e27edc74">setBrush</a>.</p>
  452. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#afbd5428c2952f59d952e11ab5cd79176">setSelected</a>, <a class="el" href="classQCPAbstractPlottable.html#a22c69299eb5569e0f6bf084877a37dc4">setSelectable</a>, <a class="el" href="classQCPAbstractPlottable.html#a6911603cad23ab0469b108224517516f">setSelectedPen</a>, <a class="el" href="classQCPAbstractPlottable.html#a38efe9641d972992a3d44204bc80ec1d">selectTest</a> </dd></dl>
  453. </div>
  454. </div>
  455. <a class="anchor" id="a8524fa2994c63c0913ebd9bb2ffa3920"></a>
  456. <div class="memitem">
  457. <div class="memproto">
  458. <table class="memname">
  459. <tr>
  460. <td class="memname">void QCPAbstractPlottable::setKeyAxis </td>
  461. <td>(</td>
  462. <td class="paramtype"><a class="el" href="classQCPAxis.html">QCPAxis</a> *&#160;</td>
  463. <td class="paramname"><em>axis</em></td><td>)</td>
  464. <td></td>
  465. </tr>
  466. </table>
  467. </div><div class="memdoc">
  468. <p>The key axis of a plottable can be set to any axis of a <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a>, as long as it is orthogonal to the plottable's value axis. This function performs no checks to make sure this is the case. The typical mathematical choice is to use the x-axis (<a class="el" href="classQCustomPlot.html#a9a79cd0158a4c7f30cbc702f0fd800e4">QCustomPlot::xAxis</a>) as key axis and the y-axis (<a class="el" href="classQCustomPlot.html#af6fea5679725b152c14facd920b19367">QCustomPlot::yAxis</a>) as value axis.</p>
  469. <p>Normally, the key and value axes are set in the constructor of the plottable (or <a class="el" href="classQCustomPlot.html#a6fb2873d35a8a8089842d81a70a54167">QCustomPlot::addGraph</a> when working with QCPGraphs through the dedicated graph interface).</p>
  470. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#a71626a07367e241ec62ad2c34baf21cb">setValueAxis</a> </dd></dl>
  471. </div>
  472. </div>
  473. <a class="anchor" id="a71626a07367e241ec62ad2c34baf21cb"></a>
  474. <div class="memitem">
  475. <div class="memproto">
  476. <table class="memname">
  477. <tr>
  478. <td class="memname">void QCPAbstractPlottable::setValueAxis </td>
  479. <td>(</td>
  480. <td class="paramtype"><a class="el" href="classQCPAxis.html">QCPAxis</a> *&#160;</td>
  481. <td class="paramname"><em>axis</em></td><td>)</td>
  482. <td></td>
  483. </tr>
  484. </table>
  485. </div><div class="memdoc">
  486. <p>The value axis of a plottable can be set to any axis of a <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a>, as long as it is orthogonal to the plottable's key axis. This function performs no checks to make sure this is the case. The typical mathematical choice is to use the x-axis (<a class="el" href="classQCustomPlot.html#a9a79cd0158a4c7f30cbc702f0fd800e4">QCustomPlot::xAxis</a>) as key axis and the y-axis (<a class="el" href="classQCustomPlot.html#af6fea5679725b152c14facd920b19367">QCustomPlot::yAxis</a>) as value axis.</p>
  487. <p>Normally, the key and value axes are set in the constructor of the plottable (or <a class="el" href="classQCustomPlot.html#a6fb2873d35a8a8089842d81a70a54167">QCustomPlot::addGraph</a> when working with QCPGraphs through the dedicated graph interface).</p>
  488. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#a8524fa2994c63c0913ebd9bb2ffa3920">setKeyAxis</a> </dd></dl>
  489. </div>
  490. </div>
  491. <a class="anchor" id="a22c69299eb5569e0f6bf084877a37dc4"></a>
  492. <div class="memitem">
  493. <div class="memproto">
  494. <table class="memname">
  495. <tr>
  496. <td class="memname">void QCPAbstractPlottable::setSelectable </td>
  497. <td>(</td>
  498. <td class="paramtype">bool&#160;</td>
  499. <td class="paramname"><em>selectable</em></td><td>)</td>
  500. <td></td>
  501. </tr>
  502. </table>
  503. </div><div class="memdoc">
  504. <p>Sets whether the user can (de-)select this plottable by clicking on the <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a> surface. (When <a class="el" href="classQCustomPlot.html#a5ee1e2f6ae27419deca53e75907c27e5">QCustomPlot::setInteractions</a> contains iSelectPlottables.)</p>
  505. <p>However, even when <em>selectable</em> was set to false, it is possible to set the selection manually, by calling <a class="el" href="classQCPAbstractPlottable.html#afbd5428c2952f59d952e11ab5cd79176">setSelected</a> directly.</p>
  506. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#afbd5428c2952f59d952e11ab5cd79176">setSelected</a> </dd></dl>
  507. </div>
  508. </div>
  509. <a class="anchor" id="afbd5428c2952f59d952e11ab5cd79176"></a>
  510. <div class="memitem">
  511. <div class="memproto">
  512. <table class="memname">
  513. <tr>
  514. <td class="memname">void QCPAbstractPlottable::setSelected </td>
  515. <td>(</td>
  516. <td class="paramtype">bool&#160;</td>
  517. <td class="paramname"><em>selected</em></td><td>)</td>
  518. <td></td>
  519. </tr>
  520. </table>
  521. </div><div class="memdoc">
  522. <p>Sets whether this plottable is selected or not. When selected, it uses a different pen and brush to draw its lines and fills, see <a class="el" href="classQCPAbstractPlottable.html#a6911603cad23ab0469b108224517516f">setSelectedPen</a> and <a class="el" href="classQCPAbstractPlottable.html#ae8c816874089f7a44001e8618e81a9dc">setSelectedBrush</a>.</p>
  523. <p>The entire selection mechanism for plottables is handled automatically when <a class="el" href="classQCustomPlot.html#a5ee1e2f6ae27419deca53e75907c27e5">QCustomPlot::setInteractions</a> contains iSelectPlottables. You only need to call this function when you wish to change the selection state manually.</p>
  524. <p>This function can change the selection state even when <a class="el" href="classQCPAbstractPlottable.html#a22c69299eb5569e0f6bf084877a37dc4">setSelectable</a> was set to false.</p>
  525. <p>emits the <a class="el" href="classQCPAbstractPlottable.html#a3af66432b1dca93b28e00e78a8c7c1d9">selectionChanged</a> signal when <em>selected</em> is different from the previous selection state.</p>
  526. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#a22c69299eb5569e0f6bf084877a37dc4">setSelectable</a>, <a class="el" href="classQCPAbstractPlottable.html#a38efe9641d972992a3d44204bc80ec1d">selectTest</a> </dd></dl>
  527. </div>
  528. </div>
  529. <a class="anchor" id="a86e5b8fd4b6ff4f4084e7ea4c573fc53"></a>
  530. <div class="memitem">
  531. <div class="memproto">
  532. <table class="mlabels">
  533. <tr>
  534. <td class="mlabels-left">
  535. <table class="memname">
  536. <tr>
  537. <td class="memname">void QCPAbstractPlottable::clearData </td>
  538. <td>(</td>
  539. <td class="paramname"></td><td>)</td>
  540. <td></td>
  541. </tr>
  542. </table>
  543. </td>
  544. <td class="mlabels-right">
  545. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  546. </tr>
  547. </table>
  548. </div><div class="memdoc">
  549. <p>Clears all data in the plottable. </p>
  550. <p>Implemented in <a class="el" href="classQCPBars.html#a11dbbd707132f07f862dff13c5789c2b">QCPBars</a>, <a class="el" href="classQCPGraph.html#ad4e94a4e44e5e76fbec81a72a977157d">QCPGraph</a>, <a class="el" href="classQCPColorMap.html#a0545dce5383766885912331705a8e099">QCPColorMap</a>, <a class="el" href="classQCPFinancial.html#a11fd49928c33e55e27b7319c6927864a">QCPFinancial</a>, <a class="el" href="classQCPCurve.html#ae0462c61dbfbac07db0736ec64110241">QCPCurve</a>, and <a class="el" href="classQCPStatisticalBox.html#a19112994449df0c20287858436cc68e3">QCPStatisticalBox</a>.</p>
  551. </div>
  552. </div>
  553. <a class="anchor" id="a38efe9641d972992a3d44204bc80ec1d"></a>
  554. <div class="memitem">
  555. <div class="memproto">
  556. <table class="mlabels">
  557. <tr>
  558. <td class="mlabels-left">
  559. <table class="memname">
  560. <tr>
  561. <td class="memname">virtual double QCPAbstractPlottable::selectTest </td>
  562. <td>(</td>
  563. <td class="paramtype">const QPointF &amp;&#160;</td>
  564. <td class="paramname"><em>pos</em>, </td>
  565. </tr>
  566. <tr>
  567. <td class="paramkey"></td>
  568. <td></td>
  569. <td class="paramtype">bool&#160;</td>
  570. <td class="paramname"><em>onlySelectable</em>, </td>
  571. </tr>
  572. <tr>
  573. <td class="paramkey"></td>
  574. <td></td>
  575. <td class="paramtype">QVariant *&#160;</td>
  576. <td class="paramname"><em>details</em> = <code>0</code>&#160;</td>
  577. </tr>
  578. <tr>
  579. <td></td>
  580. <td>)</td>
  581. <td></td><td> const</td>
  582. </tr>
  583. </table>
  584. </td>
  585. <td class="mlabels-right">
  586. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  587. </tr>
  588. </table>
  589. </div><div class="memdoc">
  590. <p>This function is used to decide whether a click hits a layerable object or not.</p>
  591. <p><em>pos</em> is a point in pixel coordinates on the <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a> surface. This function returns the shortest pixel distance of this point to the object. If the object is either invisible or the distance couldn't be determined, -1.0 is returned. Further, if <em>onlySelectable</em> is true and the object is not selectable, -1.0 is returned, too.</p>
  592. <p>If the object is represented not by single lines but by an area like a <a class="el" href="classQCPItemText.html">QCPItemText</a> or the bars of a <a class="el" href="classQCPBars.html">QCPBars</a> plottable, a click inside the area should also be considered a hit. In these cases this function thus returns a constant value greater zero but still below the parent plot's selection tolerance. (typically the selectionTolerance multiplied by 0.99).</p>
  593. <p>Providing a constant value for area objects allows selecting line objects even when they are obscured by such area objects, by clicking close to the lines (i.e. closer than 0.99*selectionTolerance).</p>
  594. <p>The actual setting of the selection state is not done by this function. This is handled by the parent <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a> when the mouseReleaseEvent occurs, and the finally selected object is notified via the selectEvent/deselectEvent methods.</p>
  595. <p><em>details</em> is an optional output parameter. Every layerable subclass may place any information in <em>details</em>. This information will be passed to <a class="el" href="classQCPAbstractPlottable.html#a16aaad02456aa23a759efd1ac90c79bf">selectEvent</a> when the parent <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a> decides on the basis of this selectTest call, that the object was successfully selected. The subsequent call to <a class="el" href="classQCPAbstractPlottable.html#a16aaad02456aa23a759efd1ac90c79bf">selectEvent</a> will carry the <em>details</em>. This is useful for multi-part objects (like <a class="el" href="classQCPAxis.html" title="Manages a single axis inside a QCustomPlot. ">QCPAxis</a>). This way, a possibly complex calculation to decide which part was clicked is only done once in <a class="el" href="classQCPAbstractPlottable.html#a38efe9641d972992a3d44204bc80ec1d">selectTest</a>. The result (i.e. the actually clicked part) can then be placed in <em>details</em>. So in the subsequent <a class="el" href="classQCPAbstractPlottable.html#a16aaad02456aa23a759efd1ac90c79bf">selectEvent</a>, the decision which part was selected doesn't have to be done a second time for a single selection operation.</p>
  596. <p>You may pass 0 as <em>details</em> to indicate that you are not interested in those selection details.</p>
  597. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#a16aaad02456aa23a759efd1ac90c79bf">selectEvent</a>, <a class="el" href="classQCPAbstractPlottable.html#a6fa0d0f95560ea8b01ee13f296dab2b1">deselectEvent</a>, <a class="el" href="classQCustomPlot.html#a5ee1e2f6ae27419deca53e75907c27e5">QCustomPlot::setInteractions</a> </dd></dl>
  598. <p>Reimplemented from <a class="el" href="classQCPLayerable.html#a4001c4d0dfec55598efa4d531f2179a9">QCPLayerable</a>.</p>
  599. <p>Implemented in <a class="el" href="classQCPBars.html#a0d37a9feb1d0baf73ce6e809db214445">QCPBars</a>, <a class="el" href="classQCPGraph.html#abc9ff375aabcf2d21cca33d6baf85772">QCPGraph</a>, <a class="el" href="classQCPColorMap.html#a4088dc7bcbe9bba605c84a912ba660ff">QCPColorMap</a>, <a class="el" href="classQCPFinancial.html#adf6cff00a55f775487d375fe4df5e95b">QCPFinancial</a>, <a class="el" href="classQCPCurve.html#a5af9949e725704811bbc81ecd5970b8e">QCPCurve</a>, and <a class="el" href="classQCPStatisticalBox.html#a7d3ac843dc48a085740fdfc4319a89cc">QCPStatisticalBox</a>.</p>
  600. </div>
  601. </div>
  602. <a class="anchor" id="a70f8cabfd808f7d5204b9f18c45c13f5"></a>
  603. <div class="memitem">
  604. <div class="memproto">
  605. <table class="mlabels">
  606. <tr>
  607. <td class="mlabels-left">
  608. <table class="memname">
  609. <tr>
  610. <td class="memname">bool QCPAbstractPlottable::addToLegend </td>
  611. <td>(</td>
  612. <td class="paramname"></td><td>)</td>
  613. <td></td>
  614. </tr>
  615. </table>
  616. </td>
  617. <td class="mlabels-right">
  618. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  619. </tr>
  620. </table>
  621. </div><div class="memdoc">
  622. <p>Adds this plottable to the legend of the parent <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a> (<a class="el" href="classQCustomPlot.html#a4eadcd237dc6a09938b68b16877fa6af">QCustomPlot::legend</a>).</p>
  623. <p>Normally, a <a class="el" href="classQCPPlottableLegendItem.html" title="A legend item representing a plottable with an icon and the plottable name. ">QCPPlottableLegendItem</a> is created and inserted into the legend. If the plottable needs a more specialized representation in the legend, this function will take this into account and instead create the specialized subclass of <a class="el" href="classQCPAbstractLegendItem.html" title="The abstract base class for all entries in a QCPLegend. ">QCPAbstractLegendItem</a>.</p>
  624. <p>Returns true on success, i.e. when the legend exists and a legend item associated with this plottable isn't already in the legend.</p>
  625. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#aa1f350e510326d012b9a9c9249736c83">removeFromLegend</a>, <a class="el" href="classQCPLegend.html#a3ab274de52d2951faea45a6d975e6b3f">QCPLegend::addItem</a> </dd></dl>
  626. </div>
  627. </div>
  628. <a class="anchor" id="aa1f350e510326d012b9a9c9249736c83"></a>
  629. <div class="memitem">
  630. <div class="memproto">
  631. <table class="mlabels">
  632. <tr>
  633. <td class="mlabels-left">
  634. <table class="memname">
  635. <tr>
  636. <td class="memname">bool QCPAbstractPlottable::removeFromLegend </td>
  637. <td>(</td>
  638. <td class="paramname"></td><td>)</td>
  639. <td> const</td>
  640. </tr>
  641. </table>
  642. </td>
  643. <td class="mlabels-right">
  644. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  645. </tr>
  646. </table>
  647. </div><div class="memdoc">
  648. <p>Removes the plottable from the legend of the parent <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a>. This means the <a class="el" href="classQCPAbstractLegendItem.html" title="The abstract base class for all entries in a QCPLegend. ">QCPAbstractLegendItem</a> (usually a <a class="el" href="classQCPPlottableLegendItem.html" title="A legend item representing a plottable with an icon and the plottable name. ">QCPPlottableLegendItem</a>) that is associated with this plottable is removed.</p>
  649. <p>Returns true on success, i.e. if the legend exists and a legend item associated with this plottable was found and removed.</p>
  650. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#a70f8cabfd808f7d5204b9f18c45c13f5">addToLegend</a>, <a class="el" href="classQCPLegend.html#ac91595c3eaa746fe6321d2eb952c63bb">QCPLegend::removeItem</a> </dd></dl>
  651. </div>
  652. </div>
  653. <a class="anchor" id="a7e8fc3be43c27ccacd70a7bf9d74a5cd"></a>
  654. <div class="memitem">
  655. <div class="memproto">
  656. <table class="memname">
  657. <tr>
  658. <td class="memname">void QCPAbstractPlottable::rescaleAxes </td>
  659. <td>(</td>
  660. <td class="paramtype">bool&#160;</td>
  661. <td class="paramname"><em>onlyEnlarge</em> = <code>false</code></td><td>)</td>
  662. <td> const</td>
  663. </tr>
  664. </table>
  665. </div><div class="memdoc">
  666. <p>Rescales the key and value axes associated with this plottable to contain all displayed data, so the whole plottable is visible. If the scaling of an axis is logarithmic, rescaleAxes will make sure not to rescale to an illegal range i.e. a range containing different signs and/or zero. Instead it will stay in the current sign domain and ignore all parts of the plottable that lie outside of that domain.</p>
  667. <p><em>onlyEnlarge</em> makes sure the ranges are only expanded, never reduced. So it's possible to show multiple plottables in their entirety by multiple calls to rescaleAxes where the first call has <em>onlyEnlarge</em> set to false (the default), and all subsequent set to true.</p>
  668. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#a1acecfcca3e7fcda00fcbaa3c886386f">rescaleKeyAxis</a>, <a class="el" href="classQCPAbstractPlottable.html#abfd0805eb1d955c0111a990246658324">rescaleValueAxis</a>, <a class="el" href="classQCustomPlot.html#ad86528f2cee6c7e446dea4a6e8839935">QCustomPlot::rescaleAxes</a>, <a class="el" href="classQCPAxis.html#a499345f02ebce4b23d8ccec96e58daa9">QCPAxis::rescale</a> </dd></dl>
  669. </div>
  670. </div>
  671. <a class="anchor" id="a1acecfcca3e7fcda00fcbaa3c886386f"></a>
  672. <div class="memitem">
  673. <div class="memproto">
  674. <table class="memname">
  675. <tr>
  676. <td class="memname">void QCPAbstractPlottable::rescaleKeyAxis </td>
  677. <td>(</td>
  678. <td class="paramtype">bool&#160;</td>
  679. <td class="paramname"><em>onlyEnlarge</em> = <code>false</code></td><td>)</td>
  680. <td> const</td>
  681. </tr>
  682. </table>
  683. </div><div class="memdoc">
  684. <p>Rescales the key axis of the plottable so the whole plottable is visible.</p>
  685. <p>See <a class="el" href="classQCPAbstractPlottable.html#a7e8fc3be43c27ccacd70a7bf9d74a5cd">rescaleAxes</a> for detailed behaviour. </p>
  686. </div>
  687. </div>
  688. <a class="anchor" id="abfd0805eb1d955c0111a990246658324"></a>
  689. <div class="memitem">
  690. <div class="memproto">
  691. <table class="memname">
  692. <tr>
  693. <td class="memname">void QCPAbstractPlottable::rescaleValueAxis </td>
  694. <td>(</td>
  695. <td class="paramtype">bool&#160;</td>
  696. <td class="paramname"><em>onlyEnlarge</em> = <code>false</code></td><td>)</td>
  697. <td> const</td>
  698. </tr>
  699. </table>
  700. </div><div class="memdoc">
  701. <p>Rescales the value axis of the plottable so the whole plottable is visible.</p>
  702. <p>Returns true if the axis was actually scaled. This might not be the case if this plottable has an invalid range, e.g. because it has no data points.</p>
  703. <p>See <a class="el" href="classQCPAbstractPlottable.html#a7e8fc3be43c27ccacd70a7bf9d74a5cd">rescaleAxes</a> for detailed behaviour. </p>
  704. </div>
  705. </div>
  706. <a class="anchor" id="a3af66432b1dca93b28e00e78a8c7c1d9"></a>
  707. <div class="memitem">
  708. <div class="memproto">
  709. <table class="mlabels">
  710. <tr>
  711. <td class="mlabels-left">
  712. <table class="memname">
  713. <tr>
  714. <td class="memname">void QCPAbstractPlottable::selectionChanged </td>
  715. <td>(</td>
  716. <td class="paramtype">bool&#160;</td>
  717. <td class="paramname"><em>selected</em></td><td>)</td>
  718. <td></td>
  719. </tr>
  720. </table>
  721. </td>
  722. <td class="mlabels-right">
  723. <span class="mlabels"><span class="mlabel">signal</span></span> </td>
  724. </tr>
  725. </table>
  726. </div><div class="memdoc">
  727. <p>This signal is emitted when the selection state of this plottable has changed, either by user interaction or by a direct call to <a class="el" href="classQCPAbstractPlottable.html#afbd5428c2952f59d952e11ab5cd79176">setSelected</a>. </p>
  728. </div>
  729. </div>
  730. <a class="anchor" id="a0059caa3f3581f3959660fef8cbb71c4"></a>
  731. <div class="memitem">
  732. <div class="memproto">
  733. <table class="mlabels">
  734. <tr>
  735. <td class="mlabels-left">
  736. <table class="memname">
  737. <tr>
  738. <td class="memname">void QCPAbstractPlottable::selectableChanged </td>
  739. <td>(</td>
  740. <td class="paramtype">bool&#160;</td>
  741. <td class="paramname"><em>selectable</em></td><td>)</td>
  742. <td></td>
  743. </tr>
  744. </table>
  745. </td>
  746. <td class="mlabels-right">
  747. <span class="mlabels"><span class="mlabel">signal</span></span> </td>
  748. </tr>
  749. </table>
  750. </div><div class="memdoc">
  751. <p>This signal is emitted when the selectability of this plottable has changed.</p>
  752. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#a22c69299eb5569e0f6bf084877a37dc4">setSelectable</a> </dd></dl>
  753. </div>
  754. </div>
  755. <a class="anchor" id="ac01960b0827913922f5364d559c124ed"></a>
  756. <div class="memitem">
  757. <div class="memproto">
  758. <table class="mlabels">
  759. <tr>
  760. <td class="mlabels-left">
  761. <table class="memname">
  762. <tr>
  763. <td class="memname">QRect QCPAbstractPlottable::clipRect </td>
  764. <td>(</td>
  765. <td class="paramname"></td><td>)</td>
  766. <td> const</td>
  767. </tr>
  768. </table>
  769. </td>
  770. <td class="mlabels-right">
  771. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  772. </tr>
  773. </table>
  774. </div><div class="memdoc">
  775. <p>Returns the clipping rectangle of this layerable object. By default, this is the viewport of the parent <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a>. Specific subclasses may reimplement this function to provide different clipping rects.</p>
  776. <p>The returned clipping rect is set on the painter before the draw function of the respective object is called. </p>
  777. <p>Reimplemented from <a class="el" href="classQCPLayerable.html#a07a8f746640c3704b09910df297afcba">QCPLayerable</a>.</p>
  778. </div>
  779. </div>
  780. <a class="anchor" id="acbab5e30dcd04fd302b4a5902ac2c482"></a>
  781. <div class="memitem">
  782. <div class="memproto">
  783. <table class="mlabels">
  784. <tr>
  785. <td class="mlabels-left">
  786. <table class="memname">
  787. <tr>
  788. <td class="memname">virtual void QCPAbstractPlottable::draw </td>
  789. <td>(</td>
  790. <td class="paramtype"><a class="el" href="classQCPPainter.html">QCPPainter</a> *&#160;</td>
  791. <td class="paramname"><em>painter</em></td><td>)</td>
  792. <td></td>
  793. </tr>
  794. </table>
  795. </td>
  796. <td class="mlabels-right">
  797. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span> </td>
  798. </tr>
  799. </table>
  800. </div><div class="memdoc">
  801. <p>This function draws the layerable with the specified <em>painter</em>. It is only called by <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a>, if the layerable is visible (<a class="el" href="classQCPLayerable.html#a3bed99ddc396b48ce3ebfdc0418744f8">setVisible</a>).</p>
  802. <p>Before this function is called, the painter's antialiasing state is set via <a class="el" href="classQCPAbstractPlottable.html#a76e9d6cc7972dc1528f526d163766aca">applyDefaultAntialiasingHint</a>, see the documentation there. Further, the clipping rectangle was set to <a class="el" href="classQCPAbstractPlottable.html#ac01960b0827913922f5364d559c124ed">clipRect</a>. </p>
  803. <p>Implements <a class="el" href="classQCPLayerable.html#aecf2f7087482d4b6a78cb2770e5ed12d">QCPLayerable</a>.</p>
  804. <p>Implemented in <a class="el" href="classQCPBars.html#a42b894e34dac799f90ff3700706b31df">QCPBars</a>, <a class="el" href="classQCPGraph.html#a659218cc62c2a7786213d9dd429c1c8d">QCPGraph</a>, <a class="el" href="classQCPColorMap.html#a3b0f45a3177be9522d5e9b8cd8ae122d">QCPColorMap</a>, <a class="el" href="classQCPFinancial.html#ad71a59a1b42616594831e04e52c92120">QCPFinancial</a>, <a class="el" href="classQCPCurve.html#a2361302d2fc6ec669849bd3bca00c4b2">QCPCurve</a>, and <a class="el" href="classQCPStatisticalBox.html#a753b62761217dd6b92f8a29e286a1317">QCPStatisticalBox</a>.</p>
  805. </div>
  806. </div>
  807. <a class="anchor" id="a5eef607bcc2aee8bfe2380a8710f6c64"></a>
  808. <div class="memitem">
  809. <div class="memproto">
  810. <table class="mlabels">
  811. <tr>
  812. <td class="mlabels-left">
  813. <table class="memname">
  814. <tr>
  815. <td class="memname"><a class="el" href="namespaceQCP.html#a2ad6bb6281c7c2d593d4277b44c2b037">QCP::Interaction</a> QCPAbstractPlottable::selectionCategory </td>
  816. <td>(</td>
  817. <td class="paramname"></td><td>)</td>
  818. <td> const</td>
  819. </tr>
  820. </table>
  821. </td>
  822. <td class="mlabels-right">
  823. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  824. </tr>
  825. </table>
  826. </div><div class="memdoc">
  827. <p>Returns the selection category this layerable shall belong to. The selection category is used in conjunction with <a class="el" href="classQCustomPlot.html#a5ee1e2f6ae27419deca53e75907c27e5">QCustomPlot::setInteractions</a> to control which objects are selectable and which aren't.</p>
  828. <p>Subclasses that don't fit any of the normal <a class="el" href="namespaceQCP.html#a2ad6bb6281c7c2d593d4277b44c2b037">QCP::Interaction</a> values can use <a class="el" href="namespaceQCP.html#a2ad6bb6281c7c2d593d4277b44c2b037af67a50bc26147a13b551b3a625374949">QCP::iSelectOther</a>. This is what the default implementation returns.</p>
  829. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCustomPlot.html#a5ee1e2f6ae27419deca53e75907c27e5">QCustomPlot::setInteractions</a> </dd></dl>
  830. <p>Reimplemented from <a class="el" href="classQCPLayerable.html#aa4035e586b7f317a06ba7e74e242a5ea">QCPLayerable</a>.</p>
  831. </div>
  832. </div>
  833. <a class="anchor" id="a76e9d6cc7972dc1528f526d163766aca"></a>
  834. <div class="memitem">
  835. <div class="memproto">
  836. <table class="mlabels">
  837. <tr>
  838. <td class="mlabels-left">
  839. <table class="memname">
  840. <tr>
  841. <td class="memname">void QCPAbstractPlottable::applyDefaultAntialiasingHint </td>
  842. <td>(</td>
  843. <td class="paramtype"><a class="el" href="classQCPPainter.html">QCPPainter</a> *&#160;</td>
  844. <td class="paramname"><em>painter</em></td><td>)</td>
  845. <td> const</td>
  846. </tr>
  847. </table>
  848. </td>
  849. <td class="mlabels-right">
  850. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  851. </tr>
  852. </table>
  853. </div><div class="memdoc">
  854. <p>A convenience function to easily set the QPainter::Antialiased hint on the provided <em>painter</em> before drawing plottable lines.</p>
  855. <p>This is the antialiasing state the painter passed to the <a class="el" href="classQCPAbstractPlottable.html#acbab5e30dcd04fd302b4a5902ac2c482">draw</a> method is in by default.</p>
  856. <p>This function takes into account the local setting of the antialiasing flag as well as the overrides set with <a class="el" href="classQCustomPlot.html#af6f91e5eab1be85f67c556e98c3745e8">QCustomPlot::setAntialiasedElements</a> and <a class="el" href="classQCustomPlot.html#ae10d685b5eabea2999fb8775ca173c24">QCustomPlot::setNotAntialiasedElements</a>.</p>
  857. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLayerable.html#a4fd43e89be4a553ead41652565ff0581">setAntialiased</a>, <a class="el" href="classQCPAbstractPlottable.html#ac08a480155895e674dbfe5a5670e0ff3">applyFillAntialiasingHint</a>, <a class="el" href="classQCPAbstractPlottable.html#a753272ee225a62827e90c3e1e78de4b1">applyScattersAntialiasingHint</a>, <a class="el" href="classQCPAbstractPlottable.html#af687bfe6160255960558eb71f1f81e73">applyErrorBarsAntialiasingHint</a> </dd></dl>
  858. <p>Implements <a class="el" href="classQCPLayerable.html#afdf83ddc6a265cbf4c89fe99d3d93473">QCPLayerable</a>.</p>
  859. </div>
  860. </div>
  861. <a class="anchor" id="a16aaad02456aa23a759efd1ac90c79bf"></a>
  862. <div class="memitem">
  863. <div class="memproto">
  864. <table class="mlabels">
  865. <tr>
  866. <td class="mlabels-left">
  867. <table class="memname">
  868. <tr>
  869. <td class="memname">void QCPAbstractPlottable::selectEvent </td>
  870. <td>(</td>
  871. <td class="paramtype">QMouseEvent *&#160;</td>
  872. <td class="paramname"><em>event</em>, </td>
  873. </tr>
  874. <tr>
  875. <td class="paramkey"></td>
  876. <td></td>
  877. <td class="paramtype">bool&#160;</td>
  878. <td class="paramname"><em>additive</em>, </td>
  879. </tr>
  880. <tr>
  881. <td class="paramkey"></td>
  882. <td></td>
  883. <td class="paramtype">const QVariant &amp;&#160;</td>
  884. <td class="paramname"><em>details</em>, </td>
  885. </tr>
  886. <tr>
  887. <td class="paramkey"></td>
  888. <td></td>
  889. <td class="paramtype">bool *&#160;</td>
  890. <td class="paramname"><em>selectionStateChanged</em>&#160;</td>
  891. </tr>
  892. <tr>
  893. <td></td>
  894. <td>)</td>
  895. <td></td><td></td>
  896. </tr>
  897. </table>
  898. </td>
  899. <td class="mlabels-right">
  900. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  901. </tr>
  902. </table>
  903. </div><div class="memdoc">
  904. <p>This event is called when the layerable shall be selected, as a consequence of a click by the user. Subclasses should react to it by setting their selection state appropriately. The default implementation does nothing.</p>
  905. <p><em>event</em> is the mouse event that caused the selection. <em>additive</em> indicates, whether the user was holding the multi-select-modifier while performing the selection (see <a class="el" href="classQCustomPlot.html#a8fc96e3b5138a06759a2a90c166df516">QCustomPlot::setMultiSelectModifier</a>). if <em>additive</em> is true, the selection state must be toggled (i.e. become selected when unselected and unselected when selected).</p>
  906. <p>Every selectEvent is preceded by a call to <a class="el" href="classQCPAbstractPlottable.html#a38efe9641d972992a3d44204bc80ec1d">selectTest</a>, which has returned positively (i.e. returned a value greater than 0 and less than the selection tolerance of the parent <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a>). The <em>details</em> data you output from <a class="el" href="classQCPAbstractPlottable.html#a38efe9641d972992a3d44204bc80ec1d">selectTest</a> is fed back via <em>details</em> here. You may use it to transport any kind of information from the selectTest to the possibly subsequent selectEvent. Usually <em>details</em> is used to transfer which part was clicked, if it is a layerable that has multiple individually selectable parts (like <a class="el" href="classQCPAxis.html" title="Manages a single axis inside a QCustomPlot. ">QCPAxis</a>). This way selectEvent doesn't need to do the calculation again to find out which part was actually clicked.</p>
  907. <p><em>selectionStateChanged</em> is an output parameter. If the pointer is non-null, this function must set the value either to true or false, depending on whether the selection state of this layerable was actually changed. For layerables that only are selectable as a whole and not in parts, this is simple: if <em>additive</em> is true, <em>selectionStateChanged</em> must also be set to true, because the selection toggles. If <em>additive</em> is false, <em>selectionStateChanged</em> is only set to true, if the layerable was previously unselected and now is switched to the selected state.</p>
  908. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#a38efe9641d972992a3d44204bc80ec1d">selectTest</a>, <a class="el" href="classQCPAbstractPlottable.html#a6fa0d0f95560ea8b01ee13f296dab2b1">deselectEvent</a> </dd></dl>
  909. <p>Reimplemented from <a class="el" href="classQCPLayerable.html#a7498c2d0d081cf7cad0fb3bb93aa0e91">QCPLayerable</a>.</p>
  910. </div>
  911. </div>
  912. <a class="anchor" id="a6fa0d0f95560ea8b01ee13f296dab2b1"></a>
  913. <div class="memitem">
  914. <div class="memproto">
  915. <table class="mlabels">
  916. <tr>
  917. <td class="mlabels-left">
  918. <table class="memname">
  919. <tr>
  920. <td class="memname">void QCPAbstractPlottable::deselectEvent </td>
  921. <td>(</td>
  922. <td class="paramtype">bool *&#160;</td>
  923. <td class="paramname"><em>selectionStateChanged</em></td><td>)</td>
  924. <td></td>
  925. </tr>
  926. </table>
  927. </td>
  928. <td class="mlabels-right">
  929. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  930. </tr>
  931. </table>
  932. </div><div class="memdoc">
  933. <p>This event is called when the layerable shall be deselected, either as consequence of a user interaction or a call to <a class="el" href="classQCustomPlot.html#a9d4808ab925b003054085246c92a257c">QCustomPlot::deselectAll</a>. Subclasses should react to it by unsetting their selection appropriately.</p>
  934. <p>just as in <a class="el" href="classQCPAbstractPlottable.html#a16aaad02456aa23a759efd1ac90c79bf">selectEvent</a>, the output parameter <em>selectionStateChanged</em> (if non-null), must return true or false when the selection state of this layerable has changed or not changed, respectively.</p>
  935. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#a38efe9641d972992a3d44204bc80ec1d">selectTest</a>, <a class="el" href="classQCPAbstractPlottable.html#a16aaad02456aa23a759efd1ac90c79bf">selectEvent</a> </dd></dl>
  936. <p>Reimplemented from <a class="el" href="classQCPLayerable.html#ae546370644a5551c76af739afc008bee">QCPLayerable</a>.</p>
  937. </div>
  938. </div>
  939. <a class="anchor" id="a9a450783fd9ed539e589999fd390cdf7"></a>
  940. <div class="memitem">
  941. <div class="memproto">
  942. <table class="mlabels">
  943. <tr>
  944. <td class="mlabels-left">
  945. <table class="memname">
  946. <tr>
  947. <td class="memname">void QCPAbstractPlottable::drawLegendIcon </td>
  948. <td>(</td>
  949. <td class="paramtype"><a class="el" href="classQCPPainter.html">QCPPainter</a> *&#160;</td>
  950. <td class="paramname"><em>painter</em>, </td>
  951. </tr>
  952. <tr>
  953. <td class="paramkey"></td>
  954. <td></td>
  955. <td class="paramtype">const QRectF &amp;&#160;</td>
  956. <td class="paramname"><em>rect</em>&#160;</td>
  957. </tr>
  958. <tr>
  959. <td></td>
  960. <td>)</td>
  961. <td></td><td> const</td>
  962. </tr>
  963. </table>
  964. </td>
  965. <td class="mlabels-right">
  966. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span> </td>
  967. </tr>
  968. </table>
  969. </div><div class="memdoc">
  970. <p>called by <a class="el" href="classQCPLegend.html#a4462151bf875ca85fa3815457c683fdc">QCPLegend::draw</a> (via <a class="el" href="classQCPPlottableLegendItem.html#a68a781c3de4f9959fdf82075052d43aa">QCPPlottableLegendItem::draw</a>) to create a graphical representation of this plottable inside <em>rect</em>, next to the plottable name.</p>
  971. <p>The passed <em>painter</em> has its cliprect set to <em>rect</em>, so painting outside of <em>rect</em> won't appear outside the legend icon border. </p>
  972. <p>Implemented in <a class="el" href="classQCPBars.html#ad4fb35d2ab7d2aa460a6612aff3e7a15">QCPBars</a>, <a class="el" href="classQCPGraph.html#a32115df0e940cf8ca7b687873c2d02ee">QCPGraph</a>, <a class="el" href="classQCPColorMap.html#a7d5eee89f6b8eaf2f11f1d94e32215b2">QCPColorMap</a>, <a class="el" href="classQCPFinancial.html#aca85e8435b092cc8c3e5de65fcfb22c8">QCPFinancial</a>, <a class="el" href="classQCPCurve.html#aaee24451e0044d1debfa1fee92c58d7b">QCPCurve</a>, and <a class="el" href="classQCPStatisticalBox.html#a51764ed423fa02d3ef63f6848851ec33">QCPStatisticalBox</a>.</p>
  973. </div>
  974. </div>
  975. <a class="anchor" id="a345d702b2e7e12c8cfdddff65ba85e8c"></a>
  976. <div class="memitem">
  977. <div class="memproto">
  978. <table class="mlabels">
  979. <tr>
  980. <td class="mlabels-left">
  981. <table class="memname">
  982. <tr>
  983. <td class="memname"><a class="el" href="classQCPRange.html">QCPRange</a> QCPAbstractPlottable::getKeyRange </td>
  984. <td>(</td>
  985. <td class="paramtype">bool &amp;&#160;</td>
  986. <td class="paramname"><em>foundRange</em>, </td>
  987. </tr>
  988. <tr>
  989. <td class="paramkey"></td>
  990. <td></td>
  991. <td class="paramtype"><a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8">SignDomain</a>&#160;</td>
  992. <td class="paramname"><em>inSignDomain</em> = <code><a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8a082b98cfb91a7363a3b5cd17b0c1cd60">sdBoth</a></code>&#160;</td>
  993. </tr>
  994. <tr>
  995. <td></td>
  996. <td>)</td>
  997. <td></td><td> const</td>
  998. </tr>
  999. </table>
  1000. </td>
  1001. <td class="mlabels-right">
  1002. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span> </td>
  1003. </tr>
  1004. </table>
  1005. </div><div class="memdoc">
  1006. <p>called by rescaleAxes functions to get the full data key bounds. For logarithmic plots, one can set <em>inSignDomain</em> to either <a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8a0fc9a70796ef60ad18ddd18056e6dc63">sdNegative</a> or <a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8a02951859f243a4d24e779cfbb5471030">sdPositive</a> in order to restrict the returned range to that sign domain. E.g. when only negative range is wanted, set <em>inSignDomain</em> to <a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8a0fc9a70796ef60ad18ddd18056e6dc63">sdNegative</a> and all positive points will be ignored for range calculation. For no restriction, just set <em>inSignDomain</em> to <a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8a082b98cfb91a7363a3b5cd17b0c1cd60">sdBoth</a> (default). <em>foundRange</em> is an output parameter that indicates whether a range could be found or not. If this is false, you shouldn't use the returned range (e.g. no points in data).</p>
  1007. <p>Note that <em>foundRange</em> is not the same as <a class="el" href="classQCPRange.html#ab38bd4841c77c7bb86c9eea0f142dcc0">QCPRange::validRange</a>, since the range returned by this function may have size zero, which wouldn't count as a valid range.</p>
  1008. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#a7e8fc3be43c27ccacd70a7bf9d74a5cd">rescaleAxes</a>, <a class="el" href="classQCPAbstractPlottable.html#aa3331b415b5939fe4df60b78831b2799">getValueRange</a> </dd></dl>
  1009. <p>Implemented in <a class="el" href="classQCPBars.html#a93cfdc8a535f36aeb087acca49c00662">QCPBars</a>, <a class="el" href="classQCPGraph.html#afc246ce6201ff564ac440efaec52ab11">QCPGraph</a>, <a class="el" href="classQCPColorMap.html#a0d89371f8707f12e22737b863f1a5126">QCPColorMap</a>, <a class="el" href="classQCPFinancial.html#acc747f4a9b4fddfb14eb9d803349a534">QCPFinancial</a>, <a class="el" href="classQCPCurve.html#ad6a9559e16ab43586df18ae376d54481">QCPCurve</a>, and <a class="el" href="classQCPStatisticalBox.html#ad700fdce0f456dd22a3679d61e9896a4">QCPStatisticalBox</a>.</p>
  1010. </div>
  1011. </div>
  1012. <a class="anchor" id="aa3331b415b5939fe4df60b78831b2799"></a>
  1013. <div class="memitem">
  1014. <div class="memproto">
  1015. <table class="mlabels">
  1016. <tr>
  1017. <td class="mlabels-left">
  1018. <table class="memname">
  1019. <tr>
  1020. <td class="memname"><a class="el" href="classQCPRange.html">QCPRange</a> QCPAbstractPlottable::getValueRange </td>
  1021. <td>(</td>
  1022. <td class="paramtype">bool &amp;&#160;</td>
  1023. <td class="paramname"><em>foundRange</em>, </td>
  1024. </tr>
  1025. <tr>
  1026. <td class="paramkey"></td>
  1027. <td></td>
  1028. <td class="paramtype"><a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8">SignDomain</a>&#160;</td>
  1029. <td class="paramname"><em>inSignDomain</em> = <code><a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8a082b98cfb91a7363a3b5cd17b0c1cd60">sdBoth</a></code>&#160;</td>
  1030. </tr>
  1031. <tr>
  1032. <td></td>
  1033. <td>)</td>
  1034. <td></td><td> const</td>
  1035. </tr>
  1036. </table>
  1037. </td>
  1038. <td class="mlabels-right">
  1039. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span> </td>
  1040. </tr>
  1041. </table>
  1042. </div><div class="memdoc">
  1043. <p>called by rescaleAxes functions to get the full data value bounds. For logarithmic plots, one can set <em>inSignDomain</em> to either <a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8a0fc9a70796ef60ad18ddd18056e6dc63">sdNegative</a> or <a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8a02951859f243a4d24e779cfbb5471030">sdPositive</a> in order to restrict the returned range to that sign domain. E.g. when only negative range is wanted, set <em>inSignDomain</em> to <a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8a0fc9a70796ef60ad18ddd18056e6dc63">sdNegative</a> and all positive points will be ignored for range calculation. For no restriction, just set <em>inSignDomain</em> to <a class="el" href="classQCPAbstractPlottable.html#a661743478a1d3c09d28ec2711d7653d8a082b98cfb91a7363a3b5cd17b0c1cd60">sdBoth</a> (default). <em>foundRange</em> is an output parameter that indicates whether a range could be found or not. If this is false, you shouldn't use the returned range (e.g. no points in data).</p>
  1044. <p>Note that <em>foundRange</em> is not the same as <a class="el" href="classQCPRange.html#ab38bd4841c77c7bb86c9eea0f142dcc0">QCPRange::validRange</a>, since the range returned by this function may have size zero, which wouldn't count as a valid range.</p>
  1045. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#a7e8fc3be43c27ccacd70a7bf9d74a5cd">rescaleAxes</a>, <a class="el" href="classQCPAbstractPlottable.html#a345d702b2e7e12c8cfdddff65ba85e8c">getKeyRange</a> </dd></dl>
  1046. <p>Implemented in <a class="el" href="classQCPBars.html#ada96e20309570d1488c165596cb2647f">QCPBars</a>, <a class="el" href="classQCPGraph.html#a856e90b8ab6b31c344b14a863ab9e5d2">QCPGraph</a>, <a class="el" href="classQCPColorMap.html#ac1b906e05ca9b61680e61b74b3825a22">QCPColorMap</a>, <a class="el" href="classQCPFinancial.html#ab2b5f3ef9a503ba32ead32081333f4e7">QCPFinancial</a>, <a class="el" href="classQCPCurve.html#a1d6eec81aab9ae6182bb7c040bcb2dbc">QCPCurve</a>, and <a class="el" href="classQCPStatisticalBox.html#adeef8c9a0361683c776bca2fbff292b7">QCPStatisticalBox</a>.</p>
  1047. </div>
  1048. </div>
  1049. <a class="anchor" id="ade710a776104b14c1c835168ce1bfc5c"></a>
  1050. <div class="memitem">
  1051. <div class="memproto">
  1052. <table class="mlabels">
  1053. <tr>
  1054. <td class="mlabels-left">
  1055. <table class="memname">
  1056. <tr>
  1057. <td class="memname">void QCPAbstractPlottable::coordsToPixels </td>
  1058. <td>(</td>
  1059. <td class="paramtype">double&#160;</td>
  1060. <td class="paramname"><em>key</em>, </td>
  1061. </tr>
  1062. <tr>
  1063. <td class="paramkey"></td>
  1064. <td></td>
  1065. <td class="paramtype">double&#160;</td>
  1066. <td class="paramname"><em>value</em>, </td>
  1067. </tr>
  1068. <tr>
  1069. <td class="paramkey"></td>
  1070. <td></td>
  1071. <td class="paramtype">double &amp;&#160;</td>
  1072. <td class="paramname"><em>x</em>, </td>
  1073. </tr>
  1074. <tr>
  1075. <td class="paramkey"></td>
  1076. <td></td>
  1077. <td class="paramtype">double &amp;&#160;</td>
  1078. <td class="paramname"><em>y</em>&#160;</td>
  1079. </tr>
  1080. <tr>
  1081. <td></td>
  1082. <td>)</td>
  1083. <td></td><td> const</td>
  1084. </tr>
  1085. </table>
  1086. </td>
  1087. <td class="mlabels-right">
  1088. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  1089. </tr>
  1090. </table>
  1091. </div><div class="memdoc">
  1092. <p>Convenience function for transforming a key/value pair to pixels on the <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a> surface, taking the orientations of the axes associated with this plottable into account (e.g. whether key represents x or y).</p>
  1093. <p><em>key</em> and <em>value</em> are transformed to the coodinates in pixels and are written to <em>x</em> and <em>y</em>.</p>
  1094. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#a10408828446e9e0681c46d65120f382e">pixelsToCoords</a>, <a class="el" href="classQCPAxis.html#a985ae693b842fb0422b4390fe36d299a">QCPAxis::coordToPixel</a> </dd></dl>
  1095. </div>
  1096. </div>
  1097. <a class="anchor" id="a9fd1c9df8391781f05b0be22fbe91e13"></a>
  1098. <div class="memitem">
  1099. <div class="memproto">
  1100. <table class="mlabels">
  1101. <tr>
  1102. <td class="mlabels-left">
  1103. <table class="memname">
  1104. <tr>
  1105. <td class="memname">const QPointF QCPAbstractPlottable::coordsToPixels </td>
  1106. <td>(</td>
  1107. <td class="paramtype">double&#160;</td>
  1108. <td class="paramname"><em>key</em>, </td>
  1109. </tr>
  1110. <tr>
  1111. <td class="paramkey"></td>
  1112. <td></td>
  1113. <td class="paramtype">double&#160;</td>
  1114. <td class="paramname"><em>value</em>&#160;</td>
  1115. </tr>
  1116. <tr>
  1117. <td></td>
  1118. <td>)</td>
  1119. <td></td><td> const</td>
  1120. </tr>
  1121. </table>
  1122. </td>
  1123. <td class="mlabels-right">
  1124. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  1125. </tr>
  1126. </table>
  1127. </div><div class="memdoc">
  1128. <p>This is an overloaded function.</p>
  1129. <p>Returns the input as pixel coordinates in a QPointF. </p>
  1130. </div>
  1131. </div>
  1132. <a class="anchor" id="a10408828446e9e0681c46d65120f382e"></a>
  1133. <div class="memitem">
  1134. <div class="memproto">
  1135. <table class="mlabels">
  1136. <tr>
  1137. <td class="mlabels-left">
  1138. <table class="memname">
  1139. <tr>
  1140. <td class="memname">void QCPAbstractPlottable::pixelsToCoords </td>
  1141. <td>(</td>
  1142. <td class="paramtype">double&#160;</td>
  1143. <td class="paramname"><em>x</em>, </td>
  1144. </tr>
  1145. <tr>
  1146. <td class="paramkey"></td>
  1147. <td></td>
  1148. <td class="paramtype">double&#160;</td>
  1149. <td class="paramname"><em>y</em>, </td>
  1150. </tr>
  1151. <tr>
  1152. <td class="paramkey"></td>
  1153. <td></td>
  1154. <td class="paramtype">double &amp;&#160;</td>
  1155. <td class="paramname"><em>key</em>, </td>
  1156. </tr>
  1157. <tr>
  1158. <td class="paramkey"></td>
  1159. <td></td>
  1160. <td class="paramtype">double &amp;&#160;</td>
  1161. <td class="paramname"><em>value</em>&#160;</td>
  1162. </tr>
  1163. <tr>
  1164. <td></td>
  1165. <td>)</td>
  1166. <td></td><td> const</td>
  1167. </tr>
  1168. </table>
  1169. </td>
  1170. <td class="mlabels-right">
  1171. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  1172. </tr>
  1173. </table>
  1174. </div><div class="memdoc">
  1175. <p>Convenience function for transforming a x/y pixel pair on the <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a> surface to plot coordinates, taking the orientations of the axes associated with this plottable into account (e.g. whether key represents x or y).</p>
  1176. <p><em>x</em> and <em>y</em> are transformed to the plot coodinates and are written to <em>key</em> and <em>value</em>.</p>
  1177. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractPlottable.html#ade710a776104b14c1c835168ce1bfc5c">coordsToPixels</a>, <a class="el" href="classQCPAxis.html#a985ae693b842fb0422b4390fe36d299a">QCPAxis::coordToPixel</a> </dd></dl>
  1178. </div>
  1179. </div>
  1180. <a class="anchor" id="a3e2c361cfcdfd5d803ada4d333a07e15"></a>
  1181. <div class="memitem">
  1182. <div class="memproto">
  1183. <table class="mlabels">
  1184. <tr>
  1185. <td class="mlabels-left">
  1186. <table class="memname">
  1187. <tr>
  1188. <td class="memname">void QCPAbstractPlottable::pixelsToCoords </td>
  1189. <td>(</td>
  1190. <td class="paramtype">const QPointF &amp;&#160;</td>
  1191. <td class="paramname"><em>pixelPos</em>, </td>
  1192. </tr>
  1193. <tr>
  1194. <td class="paramkey"></td>
  1195. <td></td>
  1196. <td class="paramtype">double &amp;&#160;</td>
  1197. <td class="paramname"><em>key</em>, </td>
  1198. </tr>
  1199. <tr>
  1200. <td class="paramkey"></td>
  1201. <td></td>
  1202. <td class="paramtype">double &amp;&#160;</td>
  1203. <td class="paramname"><em>value</em>&#160;</td>
  1204. </tr>
  1205. <tr>
  1206. <td></td>
  1207. <td>)</td>
  1208. <td></td><td> const</td>
  1209. </tr>
  1210. </table>
  1211. </td>
  1212. <td class="mlabels-right">
  1213. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  1214. </tr>
  1215. </table>
  1216. </div><div class="memdoc">
  1217. <p>This is an overloaded function.</p>
  1218. <p>Returns the pixel input <em>pixelPos</em> as plot coordinates <em>key</em> and <em>value</em>. </p>
  1219. </div>
  1220. </div>
  1221. <a class="anchor" id="a19276ed2382a3a06464417b8788b1451"></a>
  1222. <div class="memitem">
  1223. <div class="memproto">
  1224. <table class="mlabels">
  1225. <tr>
  1226. <td class="mlabels-left">
  1227. <table class="memname">
  1228. <tr>
  1229. <td class="memname">QPen QCPAbstractPlottable::mainPen </td>
  1230. <td>(</td>
  1231. <td class="paramname"></td><td>)</td>
  1232. <td> const</td>
  1233. </tr>
  1234. </table>
  1235. </td>
  1236. <td class="mlabels-right">
  1237. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  1238. </tr>
  1239. </table>
  1240. </div><div class="memdoc">
  1241. <p>Returns the pen that should be used for drawing lines of the plottable. Returns mPen when the graph is not selected and mSelectedPen when it is. </p>
  1242. </div>
  1243. </div>
  1244. <a class="anchor" id="ae74c123832da180c17e22203e748d9b7"></a>
  1245. <div class="memitem">
  1246. <div class="memproto">
  1247. <table class="mlabels">
  1248. <tr>
  1249. <td class="mlabels-left">
  1250. <table class="memname">
  1251. <tr>
  1252. <td class="memname">QBrush QCPAbstractPlottable::mainBrush </td>
  1253. <td>(</td>
  1254. <td class="paramname"></td><td>)</td>
  1255. <td> const</td>
  1256. </tr>
  1257. </table>
  1258. </td>
  1259. <td class="mlabels-right">
  1260. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  1261. </tr>
  1262. </table>
  1263. </div><div class="memdoc">
  1264. <p>Returns the brush that should be used for drawing fills of the plottable. Returns mBrush when the graph is not selected and mSelectedBrush when it is. </p>
  1265. </div>
  1266. </div>
  1267. <a class="anchor" id="ac08a480155895e674dbfe5a5670e0ff3"></a>
  1268. <div class="memitem">
  1269. <div class="memproto">
  1270. <table class="mlabels">
  1271. <tr>
  1272. <td class="mlabels-left">
  1273. <table class="memname">
  1274. <tr>
  1275. <td class="memname">void QCPAbstractPlottable::applyFillAntialiasingHint </td>
  1276. <td>(</td>
  1277. <td class="paramtype"><a class="el" href="classQCPPainter.html">QCPPainter</a> *&#160;</td>
  1278. <td class="paramname"><em>painter</em></td><td>)</td>
  1279. <td> const</td>
  1280. </tr>
  1281. </table>
  1282. </td>
  1283. <td class="mlabels-right">
  1284. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  1285. </tr>
  1286. </table>
  1287. </div><div class="memdoc">
  1288. <p>A convenience function to easily set the QPainter::Antialiased hint on the provided <em>painter</em> before drawing plottable fills.</p>
  1289. <p>This function takes into account the local setting of the antialiasing flag as well as the overrides set with <a class="el" href="classQCustomPlot.html#af6f91e5eab1be85f67c556e98c3745e8">QCustomPlot::setAntialiasedElements</a> and <a class="el" href="classQCustomPlot.html#ae10d685b5eabea2999fb8775ca173c24">QCustomPlot::setNotAntialiasedElements</a>.</p>
  1290. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLayerable.html#a4fd43e89be4a553ead41652565ff0581">setAntialiased</a>, <a class="el" href="classQCPAbstractPlottable.html#a76e9d6cc7972dc1528f526d163766aca">applyDefaultAntialiasingHint</a>, <a class="el" href="classQCPAbstractPlottable.html#a753272ee225a62827e90c3e1e78de4b1">applyScattersAntialiasingHint</a>, <a class="el" href="classQCPAbstractPlottable.html#af687bfe6160255960558eb71f1f81e73">applyErrorBarsAntialiasingHint</a> </dd></dl>
  1291. </div>
  1292. </div>
  1293. <a class="anchor" id="a753272ee225a62827e90c3e1e78de4b1"></a>
  1294. <div class="memitem">
  1295. <div class="memproto">
  1296. <table class="mlabels">
  1297. <tr>
  1298. <td class="mlabels-left">
  1299. <table class="memname">
  1300. <tr>
  1301. <td class="memname">void QCPAbstractPlottable::applyScattersAntialiasingHint </td>
  1302. <td>(</td>
  1303. <td class="paramtype"><a class="el" href="classQCPPainter.html">QCPPainter</a> *&#160;</td>
  1304. <td class="paramname"><em>painter</em></td><td>)</td>
  1305. <td> const</td>
  1306. </tr>
  1307. </table>
  1308. </td>
  1309. <td class="mlabels-right">
  1310. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  1311. </tr>
  1312. </table>
  1313. </div><div class="memdoc">
  1314. <p>A convenience function to easily set the QPainter::Antialiased hint on the provided <em>painter</em> before drawing plottable scatter points.</p>
  1315. <p>This function takes into account the local setting of the antialiasing flag as well as the overrides set with <a class="el" href="classQCustomPlot.html#af6f91e5eab1be85f67c556e98c3745e8">QCustomPlot::setAntialiasedElements</a> and <a class="el" href="classQCustomPlot.html#ae10d685b5eabea2999fb8775ca173c24">QCustomPlot::setNotAntialiasedElements</a>.</p>
  1316. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLayerable.html#a4fd43e89be4a553ead41652565ff0581">setAntialiased</a>, <a class="el" href="classQCPAbstractPlottable.html#ac08a480155895e674dbfe5a5670e0ff3">applyFillAntialiasingHint</a>, <a class="el" href="classQCPAbstractPlottable.html#a76e9d6cc7972dc1528f526d163766aca">applyDefaultAntialiasingHint</a>, <a class="el" href="classQCPAbstractPlottable.html#af687bfe6160255960558eb71f1f81e73">applyErrorBarsAntialiasingHint</a> </dd></dl>
  1317. </div>
  1318. </div>
  1319. <a class="anchor" id="af687bfe6160255960558eb71f1f81e73"></a>
  1320. <div class="memitem">
  1321. <div class="memproto">
  1322. <table class="mlabels">
  1323. <tr>
  1324. <td class="mlabels-left">
  1325. <table class="memname">
  1326. <tr>
  1327. <td class="memname">void QCPAbstractPlottable::applyErrorBarsAntialiasingHint </td>
  1328. <td>(</td>
  1329. <td class="paramtype"><a class="el" href="classQCPPainter.html">QCPPainter</a> *&#160;</td>
  1330. <td class="paramname"><em>painter</em></td><td>)</td>
  1331. <td> const</td>
  1332. </tr>
  1333. </table>
  1334. </td>
  1335. <td class="mlabels-right">
  1336. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  1337. </tr>
  1338. </table>
  1339. </div><div class="memdoc">
  1340. <p>A convenience function to easily set the QPainter::Antialiased hint on the provided <em>painter</em> before drawing plottable error bars.</p>
  1341. <p>This function takes into account the local setting of the antialiasing flag as well as the overrides set with <a class="el" href="classQCustomPlot.html#af6f91e5eab1be85f67c556e98c3745e8">QCustomPlot::setAntialiasedElements</a> and <a class="el" href="classQCustomPlot.html#ae10d685b5eabea2999fb8775ca173c24">QCustomPlot::setNotAntialiasedElements</a>.</p>
  1342. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLayerable.html#a4fd43e89be4a553ead41652565ff0581">setAntialiased</a>, <a class="el" href="classQCPAbstractPlottable.html#ac08a480155895e674dbfe5a5670e0ff3">applyFillAntialiasingHint</a>, <a class="el" href="classQCPAbstractPlottable.html#a753272ee225a62827e90c3e1e78de4b1">applyScattersAntialiasingHint</a>, <a class="el" href="classQCPAbstractPlottable.html#a76e9d6cc7972dc1528f526d163766aca">applyDefaultAntialiasingHint</a> </dd></dl>
  1343. </div>
  1344. </div>
  1345. <a class="anchor" id="a5ea1cab44ca912dcdc96ed81ec5bed5d"></a>
  1346. <div class="memitem">
  1347. <div class="memproto">
  1348. <table class="mlabels">
  1349. <tr>
  1350. <td class="mlabels-left">
  1351. <table class="memname">
  1352. <tr>
  1353. <td class="memname">double QCPAbstractPlottable::distSqrToLine </td>
  1354. <td>(</td>
  1355. <td class="paramtype">const QPointF &amp;&#160;</td>
  1356. <td class="paramname"><em>start</em>, </td>
  1357. </tr>
  1358. <tr>
  1359. <td class="paramkey"></td>
  1360. <td></td>
  1361. <td class="paramtype">const QPointF &amp;&#160;</td>
  1362. <td class="paramname"><em>end</em>, </td>
  1363. </tr>
  1364. <tr>
  1365. <td class="paramkey"></td>
  1366. <td></td>
  1367. <td class="paramtype">const QPointF &amp;&#160;</td>
  1368. <td class="paramname"><em>point</em>&#160;</td>
  1369. </tr>
  1370. <tr>
  1371. <td></td>
  1372. <td>)</td>
  1373. <td></td><td> const</td>
  1374. </tr>
  1375. </table>
  1376. </td>
  1377. <td class="mlabels-right">
  1378. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  1379. </tr>
  1380. </table>
  1381. </div><div class="memdoc">
  1382. <p>Finds the shortest squared distance of <em>point</em> to the line segment defined by <em>start</em> and <em>end</em>.</p>
  1383. <p>This function may be used to help with the implementation of the <a class="el" href="classQCPAbstractPlottable.html#a38efe9641d972992a3d44204bc80ec1d">selectTest</a> function for specific plottables.</p>
  1384. <dl class="section note"><dt>Note</dt><dd>This function is identical to <a class="el" href="classQCPAbstractItem.html#acdca343717d625b8abb3c3e38c0ed39d">QCPAbstractItem::distSqrToLine</a> </dd></dl>
  1385. </div>
  1386. </div>
  1387. <hr/>The documentation for this class was generated from the following files:<ul>
  1388. <li>src/plottable.h</li>
  1389. <li>src/plottable.cpp</li>
  1390. </ul>
  1391. </div><!-- contents -->
  1392. </body>
  1393. </html>