123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360 |
- <!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: QwtPixelMatrix 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_pixel_matrix.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-methods">Public Member Functions</a> |
- <a href="class_qwt_pixel_matrix-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">QwtPixelMatrix Class Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p>A bit field corresponding to the pixels of a rectangle.
- <a href="class_qwt_pixel_matrix.html#details">More...</a></p>
- <p><code>#include <<a class="el" href="qwt__pixel__matrix_8h_source.html">qwt_pixel_matrix.h</a>></code></p>
- <div class="dynheader">
- Inheritance diagram for QwtPixelMatrix:</div>
- <div class="dyncontent">
- <div class="center"><img src="class_qwt_pixel_matrix__inherit__graph.png" border="0" usemap="#a_qwt_pixel_matrix_inherit__map" alt="Inheritance graph"/></div>
- <map name="_qwt_pixel_matrix_inherit__map" id="a_qwt_pixel_matrix_inherit__map">
- <area shape="rect" title="A bit field corresponding to the pixels of a rectangle." alt="" coords="5,80,116,107"/>
- <area shape="rect" title=" " alt="" coords="21,5,100,32"/>
- </map>
- <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
- <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:aa197eddf30db429ab267db2a875e7d71"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_pixel_matrix.html#aa197eddf30db429ab267db2a875e7d71">QwtPixelMatrix</a> (const QRect &<a class="el" href="class_qwt_pixel_matrix.html#a8194b741d283b9aa3a5c4b4e7d2a530f">rect</a>)</td></tr>
- <tr class="memdesc:aa197eddf30db429ab267db2a875e7d71"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="class_qwt_pixel_matrix.html#aa197eddf30db429ab267db2a875e7d71">More...</a><br /></td></tr>
- <tr class="separator:aa197eddf30db429ab267db2a875e7d71"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6691629e198fb39e6f653038cfb74f6b"><td class="memItemLeft" align="right" valign="top"><a id="a6691629e198fb39e6f653038cfb74f6b"></a>
-  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_pixel_matrix.html#a6691629e198fb39e6f653038cfb74f6b">~QwtPixelMatrix</a> ()</td></tr>
- <tr class="memdesc:a6691629e198fb39e6f653038cfb74f6b"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
- <tr class="separator:a6691629e198fb39e6f653038cfb74f6b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae8150f8d1f1922746172e9da1488e98b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_pixel_matrix.html#ae8150f8d1f1922746172e9da1488e98b">setRect</a> (const QRect &<a class="el" href="class_qwt_pixel_matrix.html#a8194b741d283b9aa3a5c4b4e7d2a530f">rect</a>)</td></tr>
- <tr class="separator:ae8150f8d1f1922746172e9da1488e98b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a8194b741d283b9aa3a5c4b4e7d2a530f"><td class="memItemLeft" align="right" valign="top">QRect </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_pixel_matrix.html#a8194b741d283b9aa3a5c4b4e7d2a530f">rect</a> () const</td></tr>
- <tr class="separator:a8194b741d283b9aa3a5c4b4e7d2a530f"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a0002dae3824ca4f7b09ecb65ffaaf93b"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_pixel_matrix.html#a0002dae3824ca4f7b09ecb65ffaaf93b">testPixel</a> (int x, int y) const</td></tr>
- <tr class="memdesc:a0002dae3824ca4f7b09ecb65ffaaf93b"><td class="mdescLeft"> </td><td class="mdescRight">Test if a pixel has been set. <a href="class_qwt_pixel_matrix.html#a0002dae3824ca4f7b09ecb65ffaaf93b">More...</a><br /></td></tr>
- <tr class="separator:a0002dae3824ca4f7b09ecb65ffaaf93b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a51c2ecd161c0c93dccb62fcf640ff280"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_pixel_matrix.html#a51c2ecd161c0c93dccb62fcf640ff280">testAndSetPixel</a> (int x, int y, bool on)</td></tr>
- <tr class="memdesc:a51c2ecd161c0c93dccb62fcf640ff280"><td class="mdescLeft"> </td><td class="mdescRight">Set a pixel and test if a pixel has been set before. <a href="class_qwt_pixel_matrix.html#a51c2ecd161c0c93dccb62fcf640ff280">More...</a><br /></td></tr>
- <tr class="separator:a51c2ecd161c0c93dccb62fcf640ff280"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ab76786bae3b4b28300b77ca09ad2ce1a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_pixel_matrix.html#ab76786bae3b4b28300b77ca09ad2ce1a">index</a> (int x, int y) const</td></tr>
- <tr class="memdesc:ab76786bae3b4b28300b77ca09ad2ce1a"><td class="mdescLeft"> </td><td class="mdescRight">Calculate the index in the bit field corresponding to a position. <a href="class_qwt_pixel_matrix.html#ab76786bae3b4b28300b77ca09ad2ce1a">More...</a><br /></td></tr>
- <tr class="separator:ab76786bae3b4b28300b77ca09ad2ce1a"><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 bit field corresponding to the pixels of a rectangle. </p>
- <p><a class="el" href="class_qwt_pixel_matrix.html" title="A bit field corresponding to the pixels of a rectangle.">QwtPixelMatrix</a> is intended to filter out duplicates in an unsorted array of points. </p>
- </div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
- <a id="aa197eddf30db429ab267db2a875e7d71"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aa197eddf30db429ab267db2a875e7d71">◆ </a></span>QwtPixelMatrix()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QwtPixelMatrix::QwtPixelMatrix </td>
- <td>(</td>
- <td class="paramtype">const QRect & </td>
- <td class="paramname"><em>rect</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Constructor. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">rect</td><td>Bounding rectangle for the matrix </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <h2 class="groupheader">Member Function Documentation</h2>
- <a id="ab76786bae3b4b28300b77ca09ad2ce1a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ab76786bae3b4b28300b77ca09ad2ce1a">◆ </a></span>index()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">int QwtPixelMatrix::index </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>x</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>y</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Calculate the index in the bit field corresponding to a position. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">x</td><td>X-coordinate </td></tr>
- <tr><td class="paramname">y</td><td>Y-coordinate </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Index, when <a class="el" href="class_qwt_pixel_matrix.html#a8194b741d283b9aa3a5c4b4e7d2a530f">rect()</a> contains pos - otherwise -1. </dd></dl>
- </div>
- </div>
- <a id="a8194b741d283b9aa3a5c4b4e7d2a530f"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a8194b741d283b9aa3a5c4b4e7d2a530f">◆ </a></span>rect()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QRect QwtPixelMatrix::rect </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>
- </div>
- </div>
- <a id="ae8150f8d1f1922746172e9da1488e98b"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ae8150f8d1f1922746172e9da1488e98b">◆ </a></span>setRect()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtPixelMatrix::setRect </td>
- <td>(</td>
- <td class="paramtype">const QRect & </td>
- <td class="paramname"><em>rect</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the bounding rectangle of the matrix</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 note"><dt>Note</dt><dd>All bits are cleared </dd></dl>
- </div>
- </div>
- <a id="a51c2ecd161c0c93dccb62fcf640ff280"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a51c2ecd161c0c93dccb62fcf640ff280">◆ </a></span>testAndSetPixel()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtPixelMatrix::testAndSetPixel </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>x</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>y</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">bool </td>
- <td class="paramname"><em>on</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set a pixel and test if a pixel has been set before. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">x</td><td>X-coordinate </td></tr>
- <tr><td class="paramname">y</td><td>Y-coordinate </td></tr>
- <tr><td class="paramname">on</td><td>Set/Clear the pixel</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>true, when pos is outside of <a class="el" href="class_qwt_pixel_matrix.html#a8194b741d283b9aa3a5c4b4e7d2a530f">rect()</a>, or when the pixel was set before. </dd></dl>
- </div>
- </div>
- <a id="a0002dae3824ca4f7b09ecb65ffaaf93b"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a0002dae3824ca4f7b09ecb65ffaaf93b">◆ </a></span>testPixel()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtPixelMatrix::testPixel </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>x</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>y</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Test if a pixel has been set. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">x</td><td>X-coordinate </td></tr>
- <tr><td class="paramname">y</td><td>Y-coordinate</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>true, when pos is outside of <a class="el" href="class_qwt_pixel_matrix.html#a8194b741d283b9aa3a5c4b4e7d2a530f">rect()</a>, or when the pixel has already been set. </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_pixel_matrix.html">QwtPixelMatrix</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>
|