123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.20"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Qwt User's Guide: QwtPointMapper Class Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="navtreedata.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">Qwt User's Guide
-  <span id="projectnumber">6.1.6</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.20 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- /* @license-end */</script>
- <div id="main-nav"></div>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(document).ready(function(){initNavTree('class_qwt_point_mapper.html',''); initResizable(); });
- /* @license-end */
- </script>
- <div id="doc-content">
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div class="header">
- <div class="summary">
- <a href="#pub-types">Public Types</a> |
- <a href="#pub-methods">Public Member Functions</a> |
- <a href="class_qwt_point_mapper-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">QwtPointMapper Class Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p>A helper class for translating a series of points.
- <a href="class_qwt_point_mapper.html#details">More...</a></p>
- <p><code>#include <<a class="el" href="qwt__point__mapper_8h_source.html">qwt_point_mapper.h</a>></code></p>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
- Public Types</h2></td></tr>
- <tr class="memitem:aafc07ceadb3f311057037ca8680e1c23"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a> { <a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23a0e367a1519b0005cad8bb324854cc8e3">RoundPoints</a> = 0x01,
- <a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23a288f41a8e4d53c895f7bffaaa9b5d9e4">WeedOutPoints</a> = 0x02
- }</td></tr>
- <tr class="memdesc:aafc07ceadb3f311057037ca8680e1c23"><td class="mdescLeft"> </td><td class="mdescRight">Flags affecting the transformation process. <a href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">More...</a><br /></td></tr>
- <tr class="separator:aafc07ceadb3f311057037ca8680e1c23"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af7a8c38f6dd7faf8396a87a882e2f967"><td class="memItemLeft" align="right" valign="top">typedef QFlags< <a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#af7a8c38f6dd7faf8396a87a882e2f967">TransformationFlags</a></td></tr>
- <tr class="memdesc:af7a8c38f6dd7faf8396a87a882e2f967"><td class="mdescLeft"> </td><td class="mdescRight">Flags affecting the transformation process. <a href="class_qwt_point_mapper.html#af7a8c38f6dd7faf8396a87a882e2f967">More...</a><br /></td></tr>
- <tr class="separator:af7a8c38f6dd7faf8396a87a882e2f967"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
- Public Member Functions</h2></td></tr>
- <tr class="memitem:a6e5eabb9c1af9b035023376fa2e1c472"><td class="memItemLeft" align="right" valign="top"><a id="a6e5eabb9c1af9b035023376fa2e1c472"></a>
-  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a6e5eabb9c1af9b035023376fa2e1c472">QwtPointMapper</a> ()</td></tr>
- <tr class="memdesc:a6e5eabb9c1af9b035023376fa2e1c472"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br /></td></tr>
- <tr class="separator:a6e5eabb9c1af9b035023376fa2e1c472"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aabe6a70dae5784e8b67f4527c51e0c09"><td class="memItemLeft" align="right" valign="top"><a id="aabe6a70dae5784e8b67f4527c51e0c09"></a>
-  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#aabe6a70dae5784e8b67f4527c51e0c09">~QwtPointMapper</a> ()</td></tr>
- <tr class="memdesc:aabe6a70dae5784e8b67f4527c51e0c09"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
- <tr class="separator:aabe6a70dae5784e8b67f4527c51e0c09"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ab556bd339cca487f25e2d894c51abe85"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags</a> (<a class="el" href="class_qwt_point_mapper.html#af7a8c38f6dd7faf8396a87a882e2f967">TransformationFlags</a>)</td></tr>
- <tr class="separator:ab556bd339cca487f25e2d894c51abe85"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a3bed903e8aeaebd8153c6c75121bfb01"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_point_mapper.html#af7a8c38f6dd7faf8396a87a882e2f967">TransformationFlags</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a3bed903e8aeaebd8153c6c75121bfb01">flags</a> () const</td></tr>
- <tr class="separator:a3bed903e8aeaebd8153c6c75121bfb01"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6e03e14718d3d66a0f6a02fec7fcaeed"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag</a> (<a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a>, bool on=true)</td></tr>
- <tr class="separator:a6e03e14718d3d66a0f6a02fec7fcaeed"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5083f71473fd88e23363a587d84779f3"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a5083f71473fd88e23363a587d84779f3">testFlag</a> (<a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a>) const</td></tr>
- <tr class="separator:a5083f71473fd88e23363a587d84779f3"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a03910571df91575456e98134f6543650"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a03910571df91575456e98134f6543650">setBoundingRect</a> (const QRectF &)</td></tr>
- <tr class="separator:a03910571df91575456e98134f6543650"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a22846085780856a6ca36776d387d5b21"><td class="memItemLeft" align="right" valign="top">QRectF </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect</a> () const</td></tr>
- <tr class="separator:a22846085780856a6ca36776d387d5b21"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a394341ccba09dd293dddc7bb4f599891"><td class="memItemLeft" align="right" valign="top">QPolygonF </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a394341ccba09dd293dddc7bb4f599891">toPolygonF</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &yMap, const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< QPointF > *series, int from, int to) const</td></tr>
- <tr class="memdesc:a394341ccba09dd293dddc7bb4f599891"><td class="mdescLeft"> </td><td class="mdescRight">Translate a series of points into a QPolygonF. <a href="class_qwt_point_mapper.html#a394341ccba09dd293dddc7bb4f599891">More...</a><br /></td></tr>
- <tr class="separator:a394341ccba09dd293dddc7bb4f599891"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ab1dde54ddb1c522e17e28ff47fbaa82a"><td class="memItemLeft" align="right" valign="top">QPolygon </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#ab1dde54ddb1c522e17e28ff47fbaa82a">toPolygon</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &yMap, const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< QPointF > *series, int from, int to) const</td></tr>
- <tr class="memdesc:ab1dde54ddb1c522e17e28ff47fbaa82a"><td class="mdescLeft"> </td><td class="mdescRight">Translate a series of points into a QPolygon. <a href="class_qwt_point_mapper.html#ab1dde54ddb1c522e17e28ff47fbaa82a">More...</a><br /></td></tr>
- <tr class="separator:ab1dde54ddb1c522e17e28ff47fbaa82a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad580fc22b1bfcc353e711712cad15ae0"><td class="memItemLeft" align="right" valign="top">QPolygon </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#ad580fc22b1bfcc353e711712cad15ae0">toPoints</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &yMap, const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< QPointF > *series, int from, int to) const</td></tr>
- <tr class="memdesc:ad580fc22b1bfcc353e711712cad15ae0"><td class="mdescLeft"> </td><td class="mdescRight">Translate a series of points into a QPolygon. <a href="class_qwt_point_mapper.html#ad580fc22b1bfcc353e711712cad15ae0">More...</a><br /></td></tr>
- <tr class="separator:ad580fc22b1bfcc353e711712cad15ae0"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a69d9ab6398de007d851e7d386ec5dfb7"><td class="memItemLeft" align="right" valign="top">QPolygonF </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a69d9ab6398de007d851e7d386ec5dfb7">toPointsF</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &yMap, const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< QPointF > *series, int from, int to) const</td></tr>
- <tr class="memdesc:a69d9ab6398de007d851e7d386ec5dfb7"><td class="mdescLeft"> </td><td class="mdescRight">Translate a series into a QPolygonF. <a href="class_qwt_point_mapper.html#a69d9ab6398de007d851e7d386ec5dfb7">More...</a><br /></td></tr>
- <tr class="separator:a69d9ab6398de007d851e7d386ec5dfb7"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a48feb94a44632dafc78405e7a42ee65e"><td class="memItemLeft" align="right" valign="top">QImage </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_point_mapper.html#a48feb94a44632dafc78405e7a42ee65e">toImage</a> (const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &yMap, const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< QPointF > *series, int from, int to, const QPen &, bool antialiased, uint numThreads) const</td></tr>
- <tr class="memdesc:a48feb94a44632dafc78405e7a42ee65e"><td class="mdescLeft"> </td><td class="mdescRight">Translate a series into a QImage. <a href="class_qwt_point_mapper.html#a48feb94a44632dafc78405e7a42ee65e">More...</a><br /></td></tr>
- <tr class="separator:a48feb94a44632dafc78405e7a42ee65e"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><p>A helper class for translating a series of points. </p>
- <p><a class="el" href="class_qwt_point_mapper.html" title="A helper class for translating a series of points.">QwtPointMapper</a> is a collection of methods and optimizations for translating a series of points into paint device coordinates. It is used by <a class="el" href="class_qwt_plot_curve.html" title="A plot item, that represents a series of points.">QwtPlotCurve</a> but might also be useful for similar plot items displaying a <a class="el" href="class_qwt_series_data.html">QwtSeriesData<QPointF></a>. </p>
- </div><h2 class="groupheader">Member Typedef Documentation</h2>
- <a id="af7a8c38f6dd7faf8396a87a882e2f967"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#af7a8c38f6dd7faf8396a87a882e2f967">◆ </a></span>TransformationFlags</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">typedef QFlags<<a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a>> <a class="el" href="class_qwt_point_mapper.html#af7a8c38f6dd7faf8396a87a882e2f967">QwtPointMapper::TransformationFlags</a></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Flags affecting the transformation process. </p>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag()</a>, <a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags()</a> </dd></dl>
- </div>
- </div>
- <h2 class="groupheader">Member Enumeration Documentation</h2>
- <a id="aafc07ceadb3f311057037ca8680e1c23"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aafc07ceadb3f311057037ca8680e1c23">◆ </a></span>TransformationFlag</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">enum <a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">QwtPointMapper::TransformationFlag</a></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Flags affecting the transformation process. </p>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag()</a>, <a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags()</a> </dd></dl>
- <table class="fieldtable">
- <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="aafc07ceadb3f311057037ca8680e1c23a0e367a1519b0005cad8bb324854cc8e3"></a>RoundPoints </td><td class="fielddoc"><p>Round points to integer values. </p>
- </td></tr>
- <tr><td class="fieldname"><a id="aafc07ceadb3f311057037ca8680e1c23a288f41a8e4d53c895f7bffaaa9b5d9e4"></a>WeedOutPoints </td><td class="fielddoc"><p>Try to remove points, that are translated to the same position. </p>
- </td></tr>
- </table>
- </div>
- </div>
- <h2 class="groupheader">Member Function Documentation</h2>
- <a id="a22846085780856a6ca36776d387d5b21"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a22846085780856a6ca36776d387d5b21">◆ </a></span>boundingRect()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QRectF QwtPointMapper::boundingRect </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>Bounding rectangle </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a03910571df91575456e98134f6543650">setBoundingRect()</a> </dd></dl>
- </div>
- </div>
- <a id="a3bed903e8aeaebd8153c6c75121bfb01"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a3bed903e8aeaebd8153c6c75121bfb01">◆ </a></span>flags()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="class_qwt_point_mapper.html#af7a8c38f6dd7faf8396a87a882e2f967">QwtPointMapper::TransformationFlags</a> QwtPointMapper::flags </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>Flags affecting the transformation process </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags()</a>, <a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag()</a> </dd></dl>
- </div>
- </div>
- <a id="a03910571df91575456e98134f6543650"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a03910571df91575456e98134f6543650">◆ </a></span>setBoundingRect()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPointMapper::setBoundingRect </td>
- <td>(</td>
- <td class="paramtype">const QRectF & </td>
- <td class="paramname"><em>rect</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set a bounding rectangle for the point mapping algorithm</p>
- <p>A valid bounding rectangle can be used for optimizations</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">rect</td><td>Bounding rectangle </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect()</a> </dd></dl>
- </div>
- </div>
- <a id="a6e03e14718d3d66a0f6a02fec7fcaeed"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a6e03e14718d3d66a0f6a02fec7fcaeed">◆ </a></span>setFlag()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPointMapper::setFlag </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a> </td>
- <td class="paramname"><em>flag</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">bool </td>
- <td class="paramname"><em>on</em> = <code>true</code> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Modify a flag affecting the transformation process</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">flag</td><td>Flag type </td></tr>
- <tr><td class="paramname">on</td><td>Value</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd>flag(), <a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags()</a> </dd></dl>
- </div>
- </div>
- <a id="ab556bd339cca487f25e2d894c51abe85"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ab556bd339cca487f25e2d894c51abe85">◆ </a></span>setFlags()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPointMapper::setFlags </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="class_qwt_point_mapper.html#af7a8c38f6dd7faf8396a87a882e2f967">TransformationFlags</a> </td>
- <td class="paramname"><em>flags</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the flags affecting the transformation process</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">flags</td><td>Flags </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a3bed903e8aeaebd8153c6c75121bfb01">flags()</a>, <a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag()</a> </dd></dl>
- </div>
- </div>
- <a id="a5083f71473fd88e23363a587d84779f3"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a5083f71473fd88e23363a587d84779f3">◆ </a></span>testFlag()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtPointMapper::testFlag </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="class_qwt_point_mapper.html#aafc07ceadb3f311057037ca8680e1c23">TransformationFlag</a> </td>
- <td class="paramname"><em>flag</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>True, when the flag is set </dd></dl>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">flag</td><td>Flag type </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_point_mapper.html#a6e03e14718d3d66a0f6a02fec7fcaeed">setFlag()</a>, <a class="el" href="class_qwt_point_mapper.html#ab556bd339cca487f25e2d894c51abe85">setFlags()</a> </dd></dl>
- </div>
- </div>
- <a id="a48feb94a44632dafc78405e7a42ee65e"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a48feb94a44632dafc78405e7a42ee65e">◆ </a></span>toImage()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QImage QwtPointMapper::toImage </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>xMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>yMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< QPointF > * </td>
- <td class="paramname"><em>series</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>from</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>to</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const QPen & </td>
- <td class="paramname"><em>pen</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">bool </td>
- <td class="paramname"><em>antialiased</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">uint </td>
- <td class="paramname"><em>numThreads</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Translate a series into a QImage. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">xMap</td><td>x map </td></tr>
- <tr><td class="paramname">yMap</td><td>y map </td></tr>
- <tr><td class="paramname">series</td><td>Series of points to be mapped </td></tr>
- <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
- <tr><td class="paramname">to</td><td>Index of the last point to be painted </td></tr>
- <tr><td class="paramname">pen</td><td>Pen used for drawing a point of the image, where a point is mapped to </td></tr>
- <tr><td class="paramname">antialiased</td><td>True, when the dots should be displayed antialiased </td></tr>
- <tr><td class="paramname">numThreads</td><td>Number of threads to be used for rendering. If numThreads is set to 0, the system specific ideal thread count is used.</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Image displaying the series </dd></dl>
- </div>
- </div>
- <a id="ad580fc22b1bfcc353e711712cad15ae0"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ad580fc22b1bfcc353e711712cad15ae0">◆ </a></span>toPoints()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QPolygon QwtPointMapper::toPoints </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>xMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>yMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< QPointF > * </td>
- <td class="paramname"><em>series</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>from</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>to</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Translate a series of points into a QPolygon. </p>
- <ul>
- <li>WeedOutPoints & <a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect()</a>.isValid() All points that are mapped to the same position will be one point. Points outside of the bounding rectangle are ignored.</li>
- <li>WeedOutPoints & !boundingRect().isValid() All consecutive points that are mapped to the same position will one point</li>
- <li>!WeedOutPoints & <a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect()</a>.isValid() Points outside of the bounding rectangle are ignored.</li>
- </ul>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">xMap</td><td>x map </td></tr>
- <tr><td class="paramname">yMap</td><td>y map </td></tr>
- <tr><td class="paramname">series</td><td>Series of points to be mapped </td></tr>
- <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
- <tr><td class="paramname">to</td><td>Index of the last point to be painted</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Translated polygon </dd></dl>
- </div>
- </div>
- <a id="a69d9ab6398de007d851e7d386ec5dfb7"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a69d9ab6398de007d851e7d386ec5dfb7">◆ </a></span>toPointsF()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QPolygonF QwtPointMapper::toPointsF </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>xMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>yMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< QPointF > * </td>
- <td class="paramname"><em>series</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>from</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>to</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Translate a series into a QPolygonF. </p>
- <ul>
- <li>WeedOutPoints & RoundPoints & <a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect()</a>.isValid() All points that are mapped to the same position will be one point. Points outside of the bounding rectangle are ignored.</li>
- <li>WeedOutPoints & RoundPoints & !boundingRect().isValid() All consecutive points that are mapped to the same position will one point</li>
- <li>WeedOutPoints & !RoundPoints All consecutive points that are mapped to the same position will one point</li>
- <li>!WeedOutPoints & <a class="el" href="class_qwt_point_mapper.html#a22846085780856a6ca36776d387d5b21">boundingRect()</a>.isValid() Points outside of the bounding rectangle are ignored.</li>
- </ul>
- <p>When RoundPoints is set all points are rounded to integers but returned as PolygonF - what only makes sense when the further processing of the values need a QPolygonF.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">xMap</td><td>x map </td></tr>
- <tr><td class="paramname">yMap</td><td>y map </td></tr>
- <tr><td class="paramname">series</td><td>Series of points to be mapped </td></tr>
- <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
- <tr><td class="paramname">to</td><td>Index of the last point to be painted</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Translated polygon </dd></dl>
- </div>
- </div>
- <a id="ab1dde54ddb1c522e17e28ff47fbaa82a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ab1dde54ddb1c522e17e28ff47fbaa82a">◆ </a></span>toPolygon()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QPolygon QwtPointMapper::toPolygon </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>xMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>yMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< QPointF > * </td>
- <td class="paramname"><em>series</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>from</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>to</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Translate a series of points into a QPolygon. </p>
- <p>When the WeedOutPoints flag is enabled consecutive points, that are mapped to the same position will be one point.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">xMap</td><td>x map </td></tr>
- <tr><td class="paramname">yMap</td><td>y map </td></tr>
- <tr><td class="paramname">series</td><td>Series of points to be mapped </td></tr>
- <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
- <tr><td class="paramname">to</td><td>Index of the last point to be painted</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Translated polygon </dd></dl>
- </div>
- </div>
- <a id="a394341ccba09dd293dddc7bb4f599891"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a394341ccba09dd293dddc7bb4f599891">◆ </a></span>toPolygonF()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QPolygonF QwtPointMapper::toPolygonF </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>xMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
- <td class="paramname"><em>yMap</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="class_qwt_series_data.html">QwtSeriesData</a>< QPointF > * </td>
- <td class="paramname"><em>series</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>from</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>to</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Translate a series of points into a QPolygonF. </p>
- <p>When the WeedOutPoints flag is enabled consecutive points, that are mapped to the same position will be one point.</p>
- <p>When RoundPoints is set all points are rounded to integers but returned as PolygonF - what only makes sense when the further processing of the values need a QPolygonF.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">xMap</td><td>x map </td></tr>
- <tr><td class="paramname">yMap</td><td>y map </td></tr>
- <tr><td class="paramname">series</td><td>Series of points to be mapped </td></tr>
- <tr><td class="paramname">from</td><td>Index of the first point to be painted </td></tr>
- <tr><td class="paramname">to</td><td>Index of the last point to be painted</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Translated polygon </dd></dl>
- </div>
- </div>
- </div><!-- contents -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="navelem"><a class="el" href="class_qwt_point_mapper.html">QwtPointMapper</a></li>
- <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
- </ul>
- </div>
- </body>
- </html>
|