classQCPScatterStyle.html 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  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>QCPScatterStyle 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-types">Public Types</a> &#124;
  22. <a href="#pub-methods">Public Functions</a> </div>
  23. <div class="headertitle">
  24. <div class="title">QCPScatterStyle Class Reference</div> </div>
  25. </div><!--header-->
  26. <div class="contents">
  27. <p>Represents the visual appearance of scatter points.
  28. <a href="classQCPScatterStyle.html#details">More...</a></p>
  29. <table class="memberdecls">
  30. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  31. Public Types</h2></td></tr>
  32. <tr class="memitem:adb31525af6b680e6f1b7472e43859349"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349">ScatterShape</a> </td></tr>
  33. <tr class="separator:adb31525af6b680e6f1b7472e43859349"><td class="memSeparator" colspan="2">&#160;</td></tr>
  34. </table><table class="memberdecls">
  35. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  36. Public Functions</h2></td></tr>
  37. <tr class="memitem:a8836018d9ad83ccd8870de8315c1be73"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#a8836018d9ad83ccd8870de8315c1be73">QCPScatterStyle</a> ()</td></tr>
  38. <tr class="separator:a8836018d9ad83ccd8870de8315c1be73"><td class="memSeparator" colspan="2">&#160;</td></tr>
  39. <tr class="memitem:a003d92f74f4561eda111862eadd62f28"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#a003d92f74f4561eda111862eadd62f28">QCPScatterStyle</a> (<a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349">ScatterShape</a> shape, double size=6)</td></tr>
  40. <tr class="separator:a003d92f74f4561eda111862eadd62f28"><td class="memSeparator" colspan="2">&#160;</td></tr>
  41. <tr class="memitem:afa059da858c864c7e05871dc602d7eab"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#afa059da858c864c7e05871dc602d7eab">QCPScatterStyle</a> (<a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349">ScatterShape</a> shape, const QColor &amp;color, double size)</td></tr>
  42. <tr class="separator:afa059da858c864c7e05871dc602d7eab"><td class="memSeparator" colspan="2">&#160;</td></tr>
  43. <tr class="memitem:a6e1b64f12cac7f07af180ae4316fd38d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#a6e1b64f12cac7f07af180ae4316fd38d">QCPScatterStyle</a> (<a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349">ScatterShape</a> shape, const QColor &amp;color, const QColor &amp;fill, double size)</td></tr>
  44. <tr class="separator:a6e1b64f12cac7f07af180ae4316fd38d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  45. <tr class="memitem:a85acc4941d7e5c9bca5fa51377a77f49"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#a85acc4941d7e5c9bca5fa51377a77f49">QCPScatterStyle</a> (<a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349">ScatterShape</a> shape, const QPen &amp;pen, const QBrush &amp;brush, double size)</td></tr>
  46. <tr class="separator:a85acc4941d7e5c9bca5fa51377a77f49"><td class="memSeparator" colspan="2">&#160;</td></tr>
  47. <tr class="memitem:a63962094587a4c2258435aa7933996cc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#a63962094587a4c2258435aa7933996cc">QCPScatterStyle</a> (const QPixmap &amp;pixmap)</td></tr>
  48. <tr class="separator:a63962094587a4c2258435aa7933996cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  49. <tr class="memitem:a879c30647683b3cfbde2afecea815e6f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#a879c30647683b3cfbde2afecea815e6f">QCPScatterStyle</a> (const QPainterPath &amp;customPath, const QPen &amp;pen, const QBrush &amp;brush=Qt::NoBrush, double size=6)</td></tr>
  50. <tr class="separator:a879c30647683b3cfbde2afecea815e6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  51. <tr class="memitem:a1973ee650368f1c5f55507b78473f634"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1973ee650368f1c5f55507b78473f634"></a>
  52. double&#160;</td><td class="memItemRight" valign="bottom"><b>size</b> () const </td></tr>
  53. <tr class="separator:a1973ee650368f1c5f55507b78473f634"><td class="memSeparator" colspan="2">&#160;</td></tr>
  54. <tr class="memitem:a4462a25ef17769631f4e0aa81dadca4b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4462a25ef17769631f4e0aa81dadca4b"></a>
  55. <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349">ScatterShape</a>&#160;</td><td class="memItemRight" valign="bottom"><b>shape</b> () const </td></tr>
  56. <tr class="separator:a4462a25ef17769631f4e0aa81dadca4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  57. <tr class="memitem:a3c24c3bf37b561b4807aed9f1418ab58"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3c24c3bf37b561b4807aed9f1418ab58"></a>
  58. QPen&#160;</td><td class="memItemRight" valign="bottom"><b>pen</b> () const </td></tr>
  59. <tr class="separator:a3c24c3bf37b561b4807aed9f1418ab58"><td class="memSeparator" colspan="2">&#160;</td></tr>
  60. <tr class="memitem:a46bf481d84bfa31b287dd43a3bf86d37"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a46bf481d84bfa31b287dd43a3bf86d37"></a>
  61. QBrush&#160;</td><td class="memItemRight" valign="bottom"><b>brush</b> () const </td></tr>
  62. <tr class="separator:a46bf481d84bfa31b287dd43a3bf86d37"><td class="memSeparator" colspan="2">&#160;</td></tr>
  63. <tr class="memitem:a9bab44cc41fcd585621a4b3e0e48231b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9bab44cc41fcd585621a4b3e0e48231b"></a>
  64. QPixmap&#160;</td><td class="memItemRight" valign="bottom"><b>pixmap</b> () const </td></tr>
  65. <tr class="separator:a9bab44cc41fcd585621a4b3e0e48231b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  66. <tr class="memitem:a4dd4998dfb0d6889205668a06c790328"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4dd4998dfb0d6889205668a06c790328"></a>
  67. QPainterPath&#160;</td><td class="memItemRight" valign="bottom"><b>customPath</b> () const </td></tr>
  68. <tr class="separator:a4dd4998dfb0d6889205668a06c790328"><td class="memSeparator" colspan="2">&#160;</td></tr>
  69. <tr class="memitem:aaefdd031052892c4136129db68596e0f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#aaefdd031052892c4136129db68596e0f">setSize</a> (double size)</td></tr>
  70. <tr class="separator:aaefdd031052892c4136129db68596e0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  71. <tr class="memitem:a7c641c4d4c6d29cb705d3887cfce91c1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#a7c641c4d4c6d29cb705d3887cfce91c1">setShape</a> (<a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349">ScatterShape</a> shape)</td></tr>
  72. <tr class="separator:a7c641c4d4c6d29cb705d3887cfce91c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  73. <tr class="memitem:a761f1f229cc0ca4703e1e2b89f6dd1ba"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#a761f1f229cc0ca4703e1e2b89f6dd1ba">setPen</a> (const QPen &amp;pen)</td></tr>
  74. <tr class="separator:a761f1f229cc0ca4703e1e2b89f6dd1ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:a74d692aaeb8d4b36d6f7d510e44264b1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#a74d692aaeb8d4b36d6f7d510e44264b1">setBrush</a> (const QBrush &amp;brush)</td></tr>
  76. <tr class="separator:a74d692aaeb8d4b36d6f7d510e44264b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  77. <tr class="memitem:a5fb611d46acfac520d7b89a1c71d9246"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#a5fb611d46acfac520d7b89a1c71d9246">setPixmap</a> (const QPixmap &amp;pixmap)</td></tr>
  78. <tr class="separator:a5fb611d46acfac520d7b89a1c71d9246"><td class="memSeparator" colspan="2">&#160;</td></tr>
  79. <tr class="memitem:a96a3e949f90b2afe5677ca9412a12a1e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#a96a3e949f90b2afe5677ca9412a12a1e">setCustomPath</a> (const QPainterPath &amp;customPath)</td></tr>
  80. <tr class="separator:a96a3e949f90b2afe5677ca9412a12a1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:aa3861281108d0adbeb291c820ea3925c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#aa3861281108d0adbeb291c820ea3925c">isNone</a> () const </td></tr>
  82. <tr class="separator:aa3861281108d0adbeb291c820ea3925c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  83. <tr class="memitem:a7f1385a8d5e4f349a6b8030723fbd0f7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#a7f1385a8d5e4f349a6b8030723fbd0f7">isPenDefined</a> () const </td></tr>
  84. <tr class="separator:a7f1385a8d5e4f349a6b8030723fbd0f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  85. <tr class="memitem:a81817dfd404635f211e6ff2a04657d36"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#a81817dfd404635f211e6ff2a04657d36">applyTo</a> (<a class="el" href="classQCPPainter.html">QCPPainter</a> *painter, const QPen &amp;defaultPen) const </td></tr>
  86. <tr class="separator:a81817dfd404635f211e6ff2a04657d36"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:a992d531ac471ec2b29bdec6aeb400a06"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#a992d531ac471ec2b29bdec6aeb400a06">drawShape</a> (<a class="el" href="classQCPPainter.html">QCPPainter</a> *painter, QPointF pos) const </td></tr>
  88. <tr class="separator:a992d531ac471ec2b29bdec6aeb400a06"><td class="memSeparator" colspan="2">&#160;</td></tr>
  89. <tr class="memitem:ae76811ac9f70ebf7a2b4c759853e6ed8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPScatterStyle.html#ae76811ac9f70ebf7a2b4c759853e6ed8">drawShape</a> (<a class="el" href="classQCPPainter.html">QCPPainter</a> *painter, double x, double y) const </td></tr>
  90. <tr class="separator:ae76811ac9f70ebf7a2b4c759853e6ed8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  91. </table>
  92. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  93. <div class="textblock"><p>Represents the visual appearance of scatter points. </p>
  94. <p>This class holds information about shape, color and size of scatter points. In plottables like <a class="el" href="classQCPGraph.html" title="A plottable representing a graph in a plot. ">QCPGraph</a> it is used to store how scatter points shall be drawn. For example, <a class="el" href="classQCPGraph.html#a12bd17a8ba21983163ec5d8f42a9fea5">QCPGraph::setScatterStyle</a> takes a <a class="el" href="classQCPScatterStyle.html" title="Represents the visual appearance of scatter points. ">QCPScatterStyle</a> instance.</p>
  95. <p>A scatter style consists of a shape (<a class="el" href="classQCPScatterStyle.html#a7c641c4d4c6d29cb705d3887cfce91c1">setShape</a>), a line color (<a class="el" href="classQCPScatterStyle.html#a761f1f229cc0ca4703e1e2b89f6dd1ba">setPen</a>) and possibly a fill (<a class="el" href="classQCPScatterStyle.html#a74d692aaeb8d4b36d6f7d510e44264b1">setBrush</a>), if the shape provides a fillable area. Further, the size of the shape can be controlled with <a class="el" href="classQCPScatterStyle.html#aaefdd031052892c4136129db68596e0f">setSize</a>.</p>
  96. <h1><a class="anchor" id="QCPScatterStyle-defining"></a>
  97. Specifying a scatter style</h1>
  98. <p>You can set all these configurations either by calling the respective functions on an instance: </p>
  99. <div class="fragment"><div class="line"> <a class="code" href="classQCPScatterStyle.html">QCPScatterStyle</a> myScatter;</div>
  100. <div class="line"> myScatter.<a class="code" href="classQCPScatterStyle.html#a7c641c4d4c6d29cb705d3887cfce91c1">setShape</a>(<a class="code" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a7c92a110880d0ef2170dff3a5b4f7779">QCPScatterStyle::ssCircle</a>);</div>
  101. <div class="line"> myScatter.<a class="code" href="classQCPScatterStyle.html#a761f1f229cc0ca4703e1e2b89f6dd1ba">setPen</a>(QPen(Qt::blue));</div>
  102. <div class="line"> myScatter.<a class="code" href="classQCPScatterStyle.html#a74d692aaeb8d4b36d6f7d510e44264b1">setBrush</a>(Qt::white);</div>
  103. <div class="line"> myScatter.<a class="code" href="classQCPScatterStyle.html#aaefdd031052892c4136129db68596e0f">setSize</a>(5);</div>
  104. <div class="line"> customPlot-&gt;graph(0)-&gt;setScatterStyle(myScatter);</div>
  105. </div><!-- fragment --><p> Or you can use one of the various constructors that take different parameter combinations, making it easy to specify a scatter style in a single call, like so: </p>
  106. <div class="fragment"><div class="line"> customPlot-&gt;graph(0)-&gt;setScatterStyle(<a class="code" href="classQCPScatterStyle.html#a8836018d9ad83ccd8870de8315c1be73">QCPScatterStyle</a>(<a class="code" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a7c92a110880d0ef2170dff3a5b4f7779">QCPScatterStyle::ssCircle</a>, Qt::blue, Qt::white, 5));</div>
  107. </div><!-- fragment --> <h1><a class="anchor" id="QCPScatterStyle-undefinedpen"></a>
  108. Leaving the color/pen up to the plottable</h1>
  109. <p>There are two constructors which leave the pen undefined: <a class="el" href="classQCPScatterStyle.html#a8836018d9ad83ccd8870de8315c1be73">QCPScatterStyle()</a> and <a class="el" href="classQCPScatterStyle.html#a003d92f74f4561eda111862eadd62f28">QCPScatterStyle(ScatterShape shape, double size)</a>. If those constructors are used, a call to <a class="el" href="classQCPScatterStyle.html#a7f1385a8d5e4f349a6b8030723fbd0f7">isPenDefined</a> will return false. It leads to scatter points that inherit the pen from the plottable that uses the scatter style. Thus, if such a scatter style is passed to <a class="el" href="classQCPGraph.html" title="A plottable representing a graph in a plot. ">QCPGraph</a>, the line color of the graph (<a class="el" href="classQCPAbstractPlottable.html#ab74b09ae4c0e7e13142fe4b5bf46cac7">QCPGraph::setPen</a>) will be used by the scatter points. This makes it very convenient to set up typical scatter settings:</p>
  110. <div class="fragment"><div class="line"> customPlot-&gt;graph(0)-&gt;setScatterStyle(<a class="code" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a2d7f1d3c1a148b9d9d17f2fd9cae5eb7">QCPScatterStyle::ssPlus</a>);</div>
  111. </div><!-- fragment --><p> Notice that it wasn't even necessary to explicitly call a <a class="el" href="classQCPScatterStyle.html" title="Represents the visual appearance of scatter points. ">QCPScatterStyle</a> constructor. This works because <a class="el" href="classQCPScatterStyle.html" title="Represents the visual appearance of scatter points. ">QCPScatterStyle</a> provides a constructor that can transform a <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349">ScatterShape</a> directly into a <a class="el" href="classQCPScatterStyle.html" title="Represents the visual appearance of scatter points. ">QCPScatterStyle</a> instance (that's the <a class="el" href="classQCPScatterStyle.html#a003d92f74f4561eda111862eadd62f28">QCPScatterStyle(ScatterShape shape, double size)</a> constructor with a default for <em>size</em>). In those cases, C++ allows directly supplying a <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349">ScatterShape</a>, where actually a <a class="el" href="classQCPScatterStyle.html" title="Represents the visual appearance of scatter points. ">QCPScatterStyle</a> is expected.</p>
  112. <h1><a class="anchor" id="QCPScatterStyle-custompath-and-pixmap"></a>
  113. Custom shapes and pixmaps</h1>
  114. <p><a class="el" href="classQCPScatterStyle.html" title="Represents the visual appearance of scatter points. ">QCPScatterStyle</a> supports drawing custom shapes and arbitrary pixmaps as scatter points.</p>
  115. <p>For custom shapes, you can provide a QPainterPath with the desired shape to the <a class="el" href="classQCPScatterStyle.html#a96a3e949f90b2afe5677ca9412a12a1e">setCustomPath</a> function or call the constructor that takes a painter path. The scatter shape will automatically be set to <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a15d9bcfd9de94edda949006529f9219d">ssCustom</a>.</p>
  116. <p>For pixmaps, you call <a class="el" href="classQCPScatterStyle.html#a5fb611d46acfac520d7b89a1c71d9246">setPixmap</a> with the desired QPixmap. Alternatively you can use the constructor that takes a QPixmap. The scatter shape will automatically be set to <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a8718b849ca7c307b07b8e091efb0c31e">ssPixmap</a>. Note that <a class="el" href="classQCPScatterStyle.html#aaefdd031052892c4136129db68596e0f">setSize</a> does not influence the appearance of the pixmap. </p>
  117. </div><h2 class="groupheader">Member Enumeration Documentation</h2>
  118. <a class="anchor" id="adb31525af6b680e6f1b7472e43859349"></a>
  119. <div class="memitem">
  120. <div class="memproto">
  121. <table class="memname">
  122. <tr>
  123. <td class="memname">enum <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349">QCPScatterStyle::ScatterShape</a></td>
  124. </tr>
  125. </table>
  126. </div><div class="memdoc">
  127. <p>Defines the shape used for scatter points.</p>
  128. <p>On plottables/items that draw scatters, the sizes of these visualizations (with exception of <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a06e15a735b79093a1d999c0374fa3aa1">ssDot</a> and <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a8718b849ca7c307b07b8e091efb0c31e">ssPixmap</a>) can be controlled with the <a class="el" href="classQCPScatterStyle.html#aaefdd031052892c4136129db68596e0f">setSize</a> function. Scatters are drawn with the pen and brush specified with <a class="el" href="classQCPScatterStyle.html#a761f1f229cc0ca4703e1e2b89f6dd1ba">setPen</a> and <a class="el" href="classQCPScatterStyle.html#a74d692aaeb8d4b36d6f7d510e44264b1">setBrush</a>. </p>
  129. <table class="fieldtable">
  130. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349abd144c291ca274f77053ec68cab6c022"></a>ssNone</em>&#160;</td><td class="fielddoc">
  131. <p>no scatter symbols are drawn (e.g. in <a class="el" href="classQCPGraph.html" title="A plottable representing a graph in a plot. ">QCPGraph</a>, data only represented with lines) </p>
  132. </td></tr>
  133. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349a06e15a735b79093a1d999c0374fa3aa1"></a>ssDot</em>&#160;</td><td class="fielddoc">
  134. <div class="image">
  135. <img src="ssDot.png" alt="ssDot.png"/>
  136. </div>
  137. <p> a single pixel (use <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a281fe1434696dcbab3aa6b9ccfbb09e9">ssDisc</a> or <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a7c92a110880d0ef2170dff3a5b4f7779">ssCircle</a> if you want a round shape with a certain radius) </p>
  138. </td></tr>
  139. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349a9eacd60f059dc3ef71bf249f515a6fe4"></a>ssCross</em>&#160;</td><td class="fielddoc">
  140. <div class="image">
  141. <img src="ssCross.png" alt="ssCross.png"/>
  142. </div>
  143. <p> a cross </p>
  144. </td></tr>
  145. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349a2d7f1d3c1a148b9d9d17f2fd9cae5eb7"></a>ssPlus</em>&#160;</td><td class="fielddoc">
  146. <div class="image">
  147. <img src="ssPlus.png" alt="ssPlus.png"/>
  148. </div>
  149. <p> a plus </p>
  150. </td></tr>
  151. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349a7c92a110880d0ef2170dff3a5b4f7779"></a>ssCircle</em>&#160;</td><td class="fielddoc">
  152. <div class="image">
  153. <img src="ssCircle.png" alt="ssCircle.png"/>
  154. </div>
  155. <p> a circle </p>
  156. </td></tr>
  157. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349a281fe1434696dcbab3aa6b9ccfbb09e9"></a>ssDisc</em>&#160;</td><td class="fielddoc">
  158. <div class="image">
  159. <img src="ssDisc.png" alt="ssDisc.png"/>
  160. </div>
  161. <p> a circle which is filled with the pen's color (not the brush as with ssCircle) </p>
  162. </td></tr>
  163. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349a279e48703ddc9f1cf4a61d3e2817ab3c"></a>ssSquare</em>&#160;</td><td class="fielddoc">
  164. <div class="image">
  165. <img src="ssSquare.png" alt="ssSquare.png"/>
  166. </div>
  167. <p> a square </p>
  168. </td></tr>
  169. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349a4fc5929df1b2dad0a3cb2ef2c8b6e633"></a>ssDiamond</em>&#160;</td><td class="fielddoc">
  170. <div class="image">
  171. <img src="ssDiamond.png" alt="ssDiamond.png"/>
  172. </div>
  173. <p> a diamond </p>
  174. </td></tr>
  175. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349a6047a2d64e41f1d6ce54445d595d442f"></a>ssStar</em>&#160;</td><td class="fielddoc">
  176. <div class="image">
  177. <img src="ssStar.png" alt="ssStar.png"/>
  178. </div>
  179. <p> a star with eight arms, i.e. a combination of cross and plus </p>
  180. </td></tr>
  181. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349a74a8d4eff1d97b57c53a60d0003453c3"></a>ssTriangle</em>&#160;</td><td class="fielddoc">
  182. <div class="image">
  183. <img src="ssTriangle.png" alt="ssTriangle.png"/>
  184. </div>
  185. <p> an equilateral triangle, standing on baseline </p>
  186. </td></tr>
  187. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349a6156274d21d8b4115197567d3ea2d9a8"></a>ssTriangleInverted</em>&#160;</td><td class="fielddoc">
  188. <div class="image">
  189. <img src="ssTriangleInverted.png" alt="ssTriangleInverted.png"/>
  190. </div>
  191. <p> an equilateral triangle, standing on corner </p>
  192. </td></tr>
  193. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349a7081310936c200c6c78e34c172f72d07"></a>ssCrossSquare</em>&#160;</td><td class="fielddoc">
  194. <div class="image">
  195. <img src="ssCrossSquare.png" alt="ssCrossSquare.png"/>
  196. </div>
  197. <p> a square with a cross inside </p>
  198. </td></tr>
  199. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349a5aa8e9db545e5404482fec774768ee25"></a>ssPlusSquare</em>&#160;</td><td class="fielddoc">
  200. <div class="image">
  201. <img src="ssPlusSquare.png" alt="ssPlusSquare.png"/>
  202. </div>
  203. <p> a square with a plus inside </p>
  204. </td></tr>
  205. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349a524613ba5d1c4eaa1541d74cf339d283"></a>ssCrossCircle</em>&#160;</td><td class="fielddoc">
  206. <div class="image">
  207. <img src="ssCrossCircle.png" alt="ssCrossCircle.png"/>
  208. </div>
  209. <p> a circle with a cross inside </p>
  210. </td></tr>
  211. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349a6fa151d01f1694c9ff9922da686dc535"></a>ssPlusCircle</em>&#160;</td><td class="fielddoc">
  212. <div class="image">
  213. <img src="ssPlusCircle.png" alt="ssPlusCircle.png"/>
  214. </div>
  215. <p> a circle with a plus inside </p>
  216. </td></tr>
  217. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349ada3b2988ece38c121922a4b5007eb08d"></a>ssPeace</em>&#160;</td><td class="fielddoc">
  218. <div class="image">
  219. <img src="ssPeace.png" alt="ssPeace.png"/>
  220. </div>
  221. <p> a circle, with one vertical and two downward diagonal lines </p>
  222. </td></tr>
  223. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349a8718b849ca7c307b07b8e091efb0c31e"></a>ssPixmap</em>&#160;</td><td class="fielddoc">
  224. <p>a custom pixmap specified by <a class="el" href="classQCPScatterStyle.html#a5fb611d46acfac520d7b89a1c71d9246">setPixmap</a>, centered on the data point coordinates </p>
  225. </td></tr>
  226. <tr><td class="fieldname"><em><a class="anchor" id="adb31525af6b680e6f1b7472e43859349a15d9bcfd9de94edda949006529f9219d"></a>ssCustom</em>&#160;</td><td class="fielddoc">
  227. <p>custom painter operations are performed per scatter (As QPainterPath, see <a class="el" href="classQCPScatterStyle.html#a96a3e949f90b2afe5677ca9412a12a1e">setCustomPath</a>) </p>
  228. </td></tr>
  229. </table>
  230. </div>
  231. </div>
  232. <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  233. <a class="anchor" id="a8836018d9ad83ccd8870de8315c1be73"></a>
  234. <div class="memitem">
  235. <div class="memproto">
  236. <table class="memname">
  237. <tr>
  238. <td class="memname">QCPScatterStyle::QCPScatterStyle </td>
  239. <td>(</td>
  240. <td class="paramname"></td><td>)</td>
  241. <td></td>
  242. </tr>
  243. </table>
  244. </div><div class="memdoc">
  245. <p>Creates a new <a class="el" href="classQCPScatterStyle.html" title="Represents the visual appearance of scatter points. ">QCPScatterStyle</a> instance with size set to 6. No shape, pen or brush is defined.</p>
  246. <p>Since the pen is undefined (<a class="el" href="classQCPScatterStyle.html#a7f1385a8d5e4f349a6b8030723fbd0f7">isPenDefined</a> returns false), the scatter color will be inherited from the plottable that uses this scatter style. </p>
  247. </div>
  248. </div>
  249. <a class="anchor" id="a003d92f74f4561eda111862eadd62f28"></a>
  250. <div class="memitem">
  251. <div class="memproto">
  252. <table class="memname">
  253. <tr>
  254. <td class="memname">QCPScatterStyle::QCPScatterStyle </td>
  255. <td>(</td>
  256. <td class="paramtype"><a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349">ScatterShape</a>&#160;</td>
  257. <td class="paramname"><em>shape</em>, </td>
  258. </tr>
  259. <tr>
  260. <td class="paramkey"></td>
  261. <td></td>
  262. <td class="paramtype">double&#160;</td>
  263. <td class="paramname"><em>size</em> = <code>6</code>&#160;</td>
  264. </tr>
  265. <tr>
  266. <td></td>
  267. <td>)</td>
  268. <td></td><td></td>
  269. </tr>
  270. </table>
  271. </div><div class="memdoc">
  272. <p>Creates a new <a class="el" href="classQCPScatterStyle.html" title="Represents the visual appearance of scatter points. ">QCPScatterStyle</a> instance with shape set to <em>shape</em> and size to <em>size</em>. No pen or brush is defined.</p>
  273. <p>Since the pen is undefined (<a class="el" href="classQCPScatterStyle.html#a7f1385a8d5e4f349a6b8030723fbd0f7">isPenDefined</a> returns false), the scatter color will be inherited from the plottable that uses this scatter style. </p>
  274. </div>
  275. </div>
  276. <a class="anchor" id="afa059da858c864c7e05871dc602d7eab"></a>
  277. <div class="memitem">
  278. <div class="memproto">
  279. <table class="memname">
  280. <tr>
  281. <td class="memname">QCPScatterStyle::QCPScatterStyle </td>
  282. <td>(</td>
  283. <td class="paramtype"><a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349">ScatterShape</a>&#160;</td>
  284. <td class="paramname"><em>shape</em>, </td>
  285. </tr>
  286. <tr>
  287. <td class="paramkey"></td>
  288. <td></td>
  289. <td class="paramtype">const QColor &amp;&#160;</td>
  290. <td class="paramname"><em>color</em>, </td>
  291. </tr>
  292. <tr>
  293. <td class="paramkey"></td>
  294. <td></td>
  295. <td class="paramtype">double&#160;</td>
  296. <td class="paramname"><em>size</em>&#160;</td>
  297. </tr>
  298. <tr>
  299. <td></td>
  300. <td>)</td>
  301. <td></td><td></td>
  302. </tr>
  303. </table>
  304. </div><div class="memdoc">
  305. <p>Creates a new <a class="el" href="classQCPScatterStyle.html" title="Represents the visual appearance of scatter points. ">QCPScatterStyle</a> instance with shape set to <em>shape</em>, the pen color set to <em>color</em>, and size to <em>size</em>. No brush is defined, i.e. the scatter point will not be filled. </p>
  306. </div>
  307. </div>
  308. <a class="anchor" id="a6e1b64f12cac7f07af180ae4316fd38d"></a>
  309. <div class="memitem">
  310. <div class="memproto">
  311. <table class="memname">
  312. <tr>
  313. <td class="memname">QCPScatterStyle::QCPScatterStyle </td>
  314. <td>(</td>
  315. <td class="paramtype"><a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349">ScatterShape</a>&#160;</td>
  316. <td class="paramname"><em>shape</em>, </td>
  317. </tr>
  318. <tr>
  319. <td class="paramkey"></td>
  320. <td></td>
  321. <td class="paramtype">const QColor &amp;&#160;</td>
  322. <td class="paramname"><em>color</em>, </td>
  323. </tr>
  324. <tr>
  325. <td class="paramkey"></td>
  326. <td></td>
  327. <td class="paramtype">const QColor &amp;&#160;</td>
  328. <td class="paramname"><em>fill</em>, </td>
  329. </tr>
  330. <tr>
  331. <td class="paramkey"></td>
  332. <td></td>
  333. <td class="paramtype">double&#160;</td>
  334. <td class="paramname"><em>size</em>&#160;</td>
  335. </tr>
  336. <tr>
  337. <td></td>
  338. <td>)</td>
  339. <td></td><td></td>
  340. </tr>
  341. </table>
  342. </div><div class="memdoc">
  343. <p>Creates a new <a class="el" href="classQCPScatterStyle.html" title="Represents the visual appearance of scatter points. ">QCPScatterStyle</a> instance with shape set to <em>shape</em>, the pen color set to <em>color</em>, the brush color to <em>fill</em> (with a solid pattern), and size to <em>size</em>. </p>
  344. </div>
  345. </div>
  346. <a class="anchor" id="a85acc4941d7e5c9bca5fa51377a77f49"></a>
  347. <div class="memitem">
  348. <div class="memproto">
  349. <table class="memname">
  350. <tr>
  351. <td class="memname">QCPScatterStyle::QCPScatterStyle </td>
  352. <td>(</td>
  353. <td class="paramtype"><a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349">ScatterShape</a>&#160;</td>
  354. <td class="paramname"><em>shape</em>, </td>
  355. </tr>
  356. <tr>
  357. <td class="paramkey"></td>
  358. <td></td>
  359. <td class="paramtype">const QPen &amp;&#160;</td>
  360. <td class="paramname"><em>pen</em>, </td>
  361. </tr>
  362. <tr>
  363. <td class="paramkey"></td>
  364. <td></td>
  365. <td class="paramtype">const QBrush &amp;&#160;</td>
  366. <td class="paramname"><em>brush</em>, </td>
  367. </tr>
  368. <tr>
  369. <td class="paramkey"></td>
  370. <td></td>
  371. <td class="paramtype">double&#160;</td>
  372. <td class="paramname"><em>size</em>&#160;</td>
  373. </tr>
  374. <tr>
  375. <td></td>
  376. <td>)</td>
  377. <td></td><td></td>
  378. </tr>
  379. </table>
  380. </div><div class="memdoc">
  381. <p>Creates a new <a class="el" href="classQCPScatterStyle.html" title="Represents the visual appearance of scatter points. ">QCPScatterStyle</a> instance with shape set to <em>shape</em>, the pen set to <em>pen</em>, the brush to <em>brush</em>, and size to <em>size</em>.</p>
  382. <dl class="section warning"><dt>Warning</dt><dd>In some cases it might be tempting to directly use a pen style like <code>Qt::NoPen</code> as <em>pen</em> and a color like <code>Qt::blue</code> as <em>brush</em>. Notice however, that the corresponding call<br/>
  383. <code><a class="el" href="classQCPScatterStyle.html" title="Represents the visual appearance of scatter points. ">QCPScatterStyle(QCPScatterShape::ssCircle, Qt::NoPen, Qt::blue, 5)</a></code><br/>
  384. doesn't necessarily lead C++ to use this constructor in some cases, but might mistake <code>Qt::NoPen</code> for a QColor and use the <a class="el" href="classQCPScatterStyle.html#a6e1b64f12cac7f07af180ae4316fd38d">QCPScatterStyle(ScatterShape shape, const QColor &amp;color, const QColor &amp;fill, double size)</a> constructor instead (which will lead to an unexpected look of the scatter points). To prevent this, be more explicit with the parameter types. For example, use <code>QBrush(Qt::blue)</code> instead of just <code>Qt::blue</code>, to clearly point out to the compiler that this constructor is wanted. </dd></dl>
  385. </div>
  386. </div>
  387. <a class="anchor" id="a63962094587a4c2258435aa7933996cc"></a>
  388. <div class="memitem">
  389. <div class="memproto">
  390. <table class="memname">
  391. <tr>
  392. <td class="memname">QCPScatterStyle::QCPScatterStyle </td>
  393. <td>(</td>
  394. <td class="paramtype">const QPixmap &amp;&#160;</td>
  395. <td class="paramname"><em>pixmap</em></td><td>)</td>
  396. <td></td>
  397. </tr>
  398. </table>
  399. </div><div class="memdoc">
  400. <p>Creates a new <a class="el" href="classQCPScatterStyle.html" title="Represents the visual appearance of scatter points. ">QCPScatterStyle</a> instance which will show the specified <em>pixmap</em>. The scatter shape is set to <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a8718b849ca7c307b07b8e091efb0c31e">ssPixmap</a>. </p>
  401. </div>
  402. </div>
  403. <a class="anchor" id="a879c30647683b3cfbde2afecea815e6f"></a>
  404. <div class="memitem">
  405. <div class="memproto">
  406. <table class="memname">
  407. <tr>
  408. <td class="memname">QCPScatterStyle::QCPScatterStyle </td>
  409. <td>(</td>
  410. <td class="paramtype">const QPainterPath &amp;&#160;</td>
  411. <td class="paramname"><em>customPath</em>, </td>
  412. </tr>
  413. <tr>
  414. <td class="paramkey"></td>
  415. <td></td>
  416. <td class="paramtype">const QPen &amp;&#160;</td>
  417. <td class="paramname"><em>pen</em>, </td>
  418. </tr>
  419. <tr>
  420. <td class="paramkey"></td>
  421. <td></td>
  422. <td class="paramtype">const QBrush &amp;&#160;</td>
  423. <td class="paramname"><em>brush</em> = <code>Qt::NoBrush</code>, </td>
  424. </tr>
  425. <tr>
  426. <td class="paramkey"></td>
  427. <td></td>
  428. <td class="paramtype">double&#160;</td>
  429. <td class="paramname"><em>size</em> = <code>6</code>&#160;</td>
  430. </tr>
  431. <tr>
  432. <td></td>
  433. <td>)</td>
  434. <td></td><td></td>
  435. </tr>
  436. </table>
  437. </div><div class="memdoc">
  438. <p>Creates a new <a class="el" href="classQCPScatterStyle.html" title="Represents the visual appearance of scatter points. ">QCPScatterStyle</a> instance with a custom shape that is defined via <em>customPath</em>. The scatter shape is set to <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a15d9bcfd9de94edda949006529f9219d">ssCustom</a>.</p>
  439. <p>The custom shape line will be drawn with <em>pen</em> and filled with <em>brush</em>. The size has a slightly different meaning than for built-in scatter points: The custom path will be drawn scaled by a factor of <em>size/6.0</em>. Since the default <em>size</em> is 6, the custom path will appear at a its natural size by default. To double the size of the path for example, set <em>size</em> to 12. </p>
  440. </div>
  441. </div>
  442. <h2 class="groupheader">Member Function Documentation</h2>
  443. <a class="anchor" id="aaefdd031052892c4136129db68596e0f"></a>
  444. <div class="memitem">
  445. <div class="memproto">
  446. <table class="memname">
  447. <tr>
  448. <td class="memname">void QCPScatterStyle::setSize </td>
  449. <td>(</td>
  450. <td class="paramtype">double&#160;</td>
  451. <td class="paramname"><em>size</em></td><td>)</td>
  452. <td></td>
  453. </tr>
  454. </table>
  455. </div><div class="memdoc">
  456. <p>Sets the size (pixel diameter) of the drawn scatter points to <em>size</em>.</p>
  457. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPScatterStyle.html#a7c641c4d4c6d29cb705d3887cfce91c1">setShape</a> </dd></dl>
  458. </div>
  459. </div>
  460. <a class="anchor" id="a7c641c4d4c6d29cb705d3887cfce91c1"></a>
  461. <div class="memitem">
  462. <div class="memproto">
  463. <table class="memname">
  464. <tr>
  465. <td class="memname">void QCPScatterStyle::setShape </td>
  466. <td>(</td>
  467. <td class="paramtype"><a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349">QCPScatterStyle::ScatterShape</a>&#160;</td>
  468. <td class="paramname"><em>shape</em></td><td>)</td>
  469. <td></td>
  470. </tr>
  471. </table>
  472. </div><div class="memdoc">
  473. <p>Sets the shape to <em>shape</em>.</p>
  474. <p>Note that the calls <a class="el" href="classQCPScatterStyle.html#a5fb611d46acfac520d7b89a1c71d9246">setPixmap</a> and <a class="el" href="classQCPScatterStyle.html#a96a3e949f90b2afe5677ca9412a12a1e">setCustomPath</a> automatically set the shape to <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a8718b849ca7c307b07b8e091efb0c31e">ssPixmap</a> and <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a15d9bcfd9de94edda949006529f9219d">ssCustom</a>, respectively.</p>
  475. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPScatterStyle.html#aaefdd031052892c4136129db68596e0f">setSize</a> </dd></dl>
  476. </div>
  477. </div>
  478. <a class="anchor" id="a761f1f229cc0ca4703e1e2b89f6dd1ba"></a>
  479. <div class="memitem">
  480. <div class="memproto">
  481. <table class="memname">
  482. <tr>
  483. <td class="memname">void QCPScatterStyle::setPen </td>
  484. <td>(</td>
  485. <td class="paramtype">const QPen &amp;&#160;</td>
  486. <td class="paramname"><em>pen</em></td><td>)</td>
  487. <td></td>
  488. </tr>
  489. </table>
  490. </div><div class="memdoc">
  491. <p>Sets the pen that will be used to draw scatter points to <em>pen</em>.</p>
  492. <p>If the pen was previously undefined (see <a class="el" href="classQCPScatterStyle.html#a7f1385a8d5e4f349a6b8030723fbd0f7">isPenDefined</a>), the pen is considered defined after a call to this function, even if <em>pen</em> is <code>Qt::NoPen</code>.</p>
  493. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPScatterStyle.html#a74d692aaeb8d4b36d6f7d510e44264b1">setBrush</a> </dd></dl>
  494. </div>
  495. </div>
  496. <a class="anchor" id="a74d692aaeb8d4b36d6f7d510e44264b1"></a>
  497. <div class="memitem">
  498. <div class="memproto">
  499. <table class="memname">
  500. <tr>
  501. <td class="memname">void QCPScatterStyle::setBrush </td>
  502. <td>(</td>
  503. <td class="paramtype">const QBrush &amp;&#160;</td>
  504. <td class="paramname"><em>brush</em></td><td>)</td>
  505. <td></td>
  506. </tr>
  507. </table>
  508. </div><div class="memdoc">
  509. <p>Sets the brush that will be used to fill scatter points to <em>brush</em>. Note that not all scatter shapes have fillable areas. For example, <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a2d7f1d3c1a148b9d9d17f2fd9cae5eb7">ssPlus</a> does not while <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a7c92a110880d0ef2170dff3a5b4f7779">ssCircle</a> does.</p>
  510. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPScatterStyle.html#a761f1f229cc0ca4703e1e2b89f6dd1ba">setPen</a> </dd></dl>
  511. </div>
  512. </div>
  513. <a class="anchor" id="a5fb611d46acfac520d7b89a1c71d9246"></a>
  514. <div class="memitem">
  515. <div class="memproto">
  516. <table class="memname">
  517. <tr>
  518. <td class="memname">void QCPScatterStyle::setPixmap </td>
  519. <td>(</td>
  520. <td class="paramtype">const QPixmap &amp;&#160;</td>
  521. <td class="paramname"><em>pixmap</em></td><td>)</td>
  522. <td></td>
  523. </tr>
  524. </table>
  525. </div><div class="memdoc">
  526. <p>Sets the pixmap that will be drawn as scatter point to <em>pixmap</em>.</p>
  527. <p>Note that <a class="el" href="classQCPScatterStyle.html#aaefdd031052892c4136129db68596e0f">setSize</a> does not influence the appearance of the pixmap.</p>
  528. <p>The scatter shape is automatically set to <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a8718b849ca7c307b07b8e091efb0c31e">ssPixmap</a>. </p>
  529. </div>
  530. </div>
  531. <a class="anchor" id="a96a3e949f90b2afe5677ca9412a12a1e"></a>
  532. <div class="memitem">
  533. <div class="memproto">
  534. <table class="memname">
  535. <tr>
  536. <td class="memname">void QCPScatterStyle::setCustomPath </td>
  537. <td>(</td>
  538. <td class="paramtype">const QPainterPath &amp;&#160;</td>
  539. <td class="paramname"><em>customPath</em></td><td>)</td>
  540. <td></td>
  541. </tr>
  542. </table>
  543. </div><div class="memdoc">
  544. <p>Sets the custom shape that will be drawn as scatter point to <em>customPath</em>.</p>
  545. <p>The scatter shape is automatically set to <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349a15d9bcfd9de94edda949006529f9219d">ssCustom</a>. </p>
  546. </div>
  547. </div>
  548. <a class="anchor" id="aa3861281108d0adbeb291c820ea3925c"></a>
  549. <div class="memitem">
  550. <div class="memproto">
  551. <table class="mlabels">
  552. <tr>
  553. <td class="mlabels-left">
  554. <table class="memname">
  555. <tr>
  556. <td class="memname">bool QCPScatterStyle::isNone </td>
  557. <td>(</td>
  558. <td class="paramname"></td><td>)</td>
  559. <td> const</td>
  560. </tr>
  561. </table>
  562. </td>
  563. <td class="mlabels-right">
  564. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  565. </tr>
  566. </table>
  567. </div><div class="memdoc">
  568. <p>Returns whether the scatter shape is <a class="el" href="classQCPScatterStyle.html#adb31525af6b680e6f1b7472e43859349abd144c291ca274f77053ec68cab6c022">ssNone</a>.</p>
  569. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPScatterStyle.html#a7c641c4d4c6d29cb705d3887cfce91c1">setShape</a> </dd></dl>
  570. </div>
  571. </div>
  572. <a class="anchor" id="a7f1385a8d5e4f349a6b8030723fbd0f7"></a>
  573. <div class="memitem">
  574. <div class="memproto">
  575. <table class="mlabels">
  576. <tr>
  577. <td class="mlabels-left">
  578. <table class="memname">
  579. <tr>
  580. <td class="memname">bool QCPScatterStyle::isPenDefined </td>
  581. <td>(</td>
  582. <td class="paramname"></td><td>)</td>
  583. <td> const</td>
  584. </tr>
  585. </table>
  586. </td>
  587. <td class="mlabels-right">
  588. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  589. </tr>
  590. </table>
  591. </div><div class="memdoc">
  592. <p>Returns whether a pen has been defined for this scatter style.</p>
  593. <p>The pen is undefined if a constructor is called that does not carry <em>pen</em> as parameter. Those are <a class="el" href="classQCPScatterStyle.html#a8836018d9ad83ccd8870de8315c1be73">QCPScatterStyle()</a> and <a class="el" href="classQCPScatterStyle.html#a003d92f74f4561eda111862eadd62f28">QCPScatterStyle(ScatterShape shape, double size)</a>. If the pen is left undefined, the scatter color will be inherited from the plottable that uses this scatter style.</p>
  594. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPScatterStyle.html#a761f1f229cc0ca4703e1e2b89f6dd1ba">setPen</a> </dd></dl>
  595. </div>
  596. </div>
  597. <a class="anchor" id="a81817dfd404635f211e6ff2a04657d36"></a>
  598. <div class="memitem">
  599. <div class="memproto">
  600. <table class="memname">
  601. <tr>
  602. <td class="memname">void QCPScatterStyle::applyTo </td>
  603. <td>(</td>
  604. <td class="paramtype"><a class="el" href="classQCPPainter.html">QCPPainter</a> *&#160;</td>
  605. <td class="paramname"><em>painter</em>, </td>
  606. </tr>
  607. <tr>
  608. <td class="paramkey"></td>
  609. <td></td>
  610. <td class="paramtype">const QPen &amp;&#160;</td>
  611. <td class="paramname"><em>defaultPen</em>&#160;</td>
  612. </tr>
  613. <tr>
  614. <td></td>
  615. <td>)</td>
  616. <td></td><td> const</td>
  617. </tr>
  618. </table>
  619. </div><div class="memdoc">
  620. <p>Applies the pen and the brush of this scatter style to <em>painter</em>. If this scatter style has an undefined pen (<a class="el" href="classQCPScatterStyle.html#a7f1385a8d5e4f349a6b8030723fbd0f7">isPenDefined</a>), sets the pen of <em>painter</em> to <em>defaultPen</em> instead.</p>
  621. <p>This function is used by plottables (or any class that wants to draw scatters) just before a number of scatters with this style shall be drawn with the <em>painter</em>.</p>
  622. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPScatterStyle.html#a992d531ac471ec2b29bdec6aeb400a06">drawShape</a> </dd></dl>
  623. </div>
  624. </div>
  625. <a class="anchor" id="a992d531ac471ec2b29bdec6aeb400a06"></a>
  626. <div class="memitem">
  627. <div class="memproto">
  628. <table class="memname">
  629. <tr>
  630. <td class="memname">void QCPScatterStyle::drawShape </td>
  631. <td>(</td>
  632. <td class="paramtype"><a class="el" href="classQCPPainter.html">QCPPainter</a> *&#160;</td>
  633. <td class="paramname"><em>painter</em>, </td>
  634. </tr>
  635. <tr>
  636. <td class="paramkey"></td>
  637. <td></td>
  638. <td class="paramtype">QPointF&#160;</td>
  639. <td class="paramname"><em>pos</em>&#160;</td>
  640. </tr>
  641. <tr>
  642. <td></td>
  643. <td>)</td>
  644. <td></td><td> const</td>
  645. </tr>
  646. </table>
  647. </div><div class="memdoc">
  648. <p>Draws the scatter shape with <em>painter</em> at position <em>pos</em>.</p>
  649. <p>This function does not modify the pen or the brush on the painter, as <a class="el" href="classQCPScatterStyle.html#a81817dfd404635f211e6ff2a04657d36">applyTo</a> is meant to be called before scatter points are drawn with <a class="el" href="classQCPScatterStyle.html#a992d531ac471ec2b29bdec6aeb400a06">drawShape</a>.</p>
  650. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPScatterStyle.html#a81817dfd404635f211e6ff2a04657d36">applyTo</a> </dd></dl>
  651. </div>
  652. </div>
  653. <a class="anchor" id="ae76811ac9f70ebf7a2b4c759853e6ed8"></a>
  654. <div class="memitem">
  655. <div class="memproto">
  656. <table class="memname">
  657. <tr>
  658. <td class="memname">void QCPScatterStyle::drawShape </td>
  659. <td>(</td>
  660. <td class="paramtype"><a class="el" href="classQCPPainter.html">QCPPainter</a> *&#160;</td>
  661. <td class="paramname"><em>painter</em>, </td>
  662. </tr>
  663. <tr>
  664. <td class="paramkey"></td>
  665. <td></td>
  666. <td class="paramtype">double&#160;</td>
  667. <td class="paramname"><em>x</em>, </td>
  668. </tr>
  669. <tr>
  670. <td class="paramkey"></td>
  671. <td></td>
  672. <td class="paramtype">double&#160;</td>
  673. <td class="paramname"><em>y</em>&#160;</td>
  674. </tr>
  675. <tr>
  676. <td></td>
  677. <td>)</td>
  678. <td></td><td> const</td>
  679. </tr>
  680. </table>
  681. </div><div class="memdoc">
  682. <p>This is an overloaded function. Draws the scatter shape with <em>painter</em> at position <em>x</em> and <em>y</em>. </p>
  683. </div>
  684. </div>
  685. <hr/>The documentation for this class was generated from the following files:<ul>
  686. <li>src/painter.h</li>
  687. <li>src/painter.cpp</li>
  688. </ul>
  689. </div><!-- contents -->
  690. </body>
  691. </html>