123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325 |
- <!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: QwtDialNeedle 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_dial_needle.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="#pro-methods">Protected Member Functions</a> |
- <a href="class_qwt_dial_needle-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">QwtDialNeedle Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
- </div><!--header-->
- <div class="contents">
- <p>Base class for needles that can be used in a <a class="el" href="class_qwt_dial.html" title="QwtDial class provides a rounded range control.">QwtDial</a>.
- <a href="class_qwt_dial_needle.html#details">More...</a></p>
- <p><code>#include <<a class="el" href="qwt__dial__needle_8h_source.html">qwt_dial_needle.h</a>></code></p>
- <div class="dynheader">
- Inheritance diagram for QwtDialNeedle:</div>
- <div class="dyncontent">
- <div class="center"><img src="class_qwt_dial_needle__inherit__graph.png" border="0" usemap="#a_qwt_dial_needle_inherit__map" alt="Inheritance graph"/></div>
- <map name="_qwt_dial_needle_inherit__map" id="a_qwt_dial_needle_inherit__map">
- <area shape="rect" title="Base class for needles that can be used in a QwtDial." alt="" coords="245,5,355,32"/>
- <area shape="rect" href="class_qwt_compass_magnet_needle.html" title="A magnet needle for compass widgets." alt="" coords="5,80,192,107"/>
- <area shape="rect" href="class_qwt_compass_wind_arrow.html" title="An indicator for the wind direction." alt="" coords="217,80,383,107"/>
- <area shape="rect" href="class_qwt_dial_simple_needle.html" title="A needle for dial widgets." alt="" coords="407,80,558,107"/>
- </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:aef3af79632ce784bc4d7332f6e269a1f"><td class="memItemLeft" align="right" valign="top"><a id="aef3af79632ce784bc4d7332f6e269a1f"></a>
-  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_needle.html#aef3af79632ce784bc4d7332f6e269a1f">QwtDialNeedle</a> ()</td></tr>
- <tr class="memdesc:aef3af79632ce784bc4d7332f6e269a1f"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br /></td></tr>
- <tr class="separator:aef3af79632ce784bc4d7332f6e269a1f"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ac23b2af4af50042967c8cea87b474247"><td class="memItemLeft" align="right" valign="top"><a id="ac23b2af4af50042967c8cea87b474247"></a>
- virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_needle.html#ac23b2af4af50042967c8cea87b474247">~QwtDialNeedle</a> ()</td></tr>
- <tr class="memdesc:ac23b2af4af50042967c8cea87b474247"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
- <tr class="separator:ac23b2af4af50042967c8cea87b474247"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae850883a64501136bca64d6ea2d084b9"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_needle.html#ae850883a64501136bca64d6ea2d084b9">setPalette</a> (const QPalette &)</td></tr>
- <tr class="separator:ae850883a64501136bca64d6ea2d084b9"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad4c32d58f2b8e77fd66e0dfc66b7c37a"><td class="memItemLeft" align="right" valign="top">const QPalette & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_needle.html#ad4c32d58f2b8e77fd66e0dfc66b7c37a">palette</a> () const</td></tr>
- <tr class="separator:ad4c32d58f2b8e77fd66e0dfc66b7c37a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a3b437180b9f4085485a6003d211f6efa"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_needle.html#a3b437180b9f4085485a6003d211f6efa">draw</a> (QPainter *painter, const QPointF &center, double length, double direction, QPalette::ColorGroup=QPalette::Active) const</td></tr>
- <tr class="separator:a3b437180b9f4085485a6003d211f6efa"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
- Protected Member Functions</h2></td></tr>
- <tr class="memitem:a1e4fee366fec1838edc18890d9957f2b"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_needle.html#a1e4fee366fec1838edc18890d9957f2b">drawNeedle</a> (QPainter *painter, double length, QPalette::ColorGroup colorGroup) const =0</td></tr>
- <tr class="memdesc:a1e4fee366fec1838edc18890d9957f2b"><td class="mdescLeft"> </td><td class="mdescRight">Draw the needle. <a href="class_qwt_dial_needle.html#a1e4fee366fec1838edc18890d9957f2b">More...</a><br /></td></tr>
- <tr class="separator:a1e4fee366fec1838edc18890d9957f2b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a769a895b3fefd851b44021ca118f2422"><td class="memItemLeft" align="right" valign="top"><a id="a769a895b3fefd851b44021ca118f2422"></a>
- virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_needle.html#a769a895b3fefd851b44021ca118f2422">drawKnob</a> (QPainter *, double width, const QBrush &, bool sunken) const</td></tr>
- <tr class="memdesc:a769a895b3fefd851b44021ca118f2422"><td class="mdescLeft"> </td><td class="mdescRight">Draw the knob. <br /></td></tr>
- <tr class="separator:a769a895b3fefd851b44021ca118f2422"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><p>Base class for needles that can be used in a <a class="el" href="class_qwt_dial.html" title="QwtDial class provides a rounded range control.">QwtDial</a>. </p>
- <p><a class="el" href="class_qwt_dial_needle.html" title="Base class for needles that can be used in a QwtDial.">QwtDialNeedle</a> is a pointer that indicates a value by pointing to a specific direction.</p>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_dial.html" title="QwtDial class provides a rounded range control.">QwtDial</a>, <a class="el" href="class_qwt_compass.html" title="A Compass Widget.">QwtCompass</a> </dd></dl>
- </div><h2 class="groupheader">Member Function Documentation</h2>
- <a id="a3b437180b9f4085485a6003d211f6efa"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a3b437180b9f4085485a6003d211f6efa">◆ </a></span>draw()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtDialNeedle::draw </td>
- <td>(</td>
- <td class="paramtype">QPainter * </td>
- <td class="paramname"><em>painter</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const QPointF & </td>
- <td class="paramname"><em>center</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>length</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>direction</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">QPalette::ColorGroup </td>
- <td class="paramname"><em>colorGroup</em> = <code>QPalette::Active</code> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Draw the needle</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">painter</td><td>Painter </td></tr>
- <tr><td class="paramname">center</td><td>Center of the dial, start position for the needle </td></tr>
- <tr><td class="paramname">length</td><td>Length of the needle </td></tr>
- <tr><td class="paramname">direction</td><td>Direction of the needle, in degrees counter clockwise </td></tr>
- <tr><td class="paramname">colorGroup</td><td>Color group, used for painting </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="a1e4fee366fec1838edc18890d9957f2b"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a1e4fee366fec1838edc18890d9957f2b">◆ </a></span>drawNeedle()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">virtual void QwtDialNeedle::drawNeedle </td>
- <td>(</td>
- <td class="paramtype">QPainter * </td>
- <td class="paramname"><em>painter</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"><em>length</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">QPalette::ColorGroup </td>
- <td class="paramname"><em>colorGroup</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">protected</span><span class="mlabel">pure virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Draw the needle. </p>
- <p>The origin of the needle is at position (0.0, 0.0 ) pointing in direction 0.0 ( = east ).</p>
- <p>The painter is already initialized with translation and rotation.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">painter</td><td>Painter </td></tr>
- <tr><td class="paramname">length</td><td>Length of the needle </td></tr>
- <tr><td class="paramname">colorGroup</td><td>Color group, used for painting</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_dial_needle.html#ae850883a64501136bca64d6ea2d084b9">setPalette()</a>, <a class="el" href="class_qwt_dial_needle.html#ad4c32d58f2b8e77fd66e0dfc66b7c37a">palette()</a> </dd></dl>
- <p>Implemented in <a class="el" href="class_qwt_compass_wind_arrow.html#a91977dd1ec99cb874b1a83070d99f2f5">QwtCompassWindArrow</a>, <a class="el" href="class_qwt_compass_magnet_needle.html#a3e9787b5d4fa1264e3e05ccdf049ffa9">QwtCompassMagnetNeedle</a>, and <a class="el" href="class_qwt_dial_simple_needle.html#ad11e71682e22d929c5c67b49c08e6084">QwtDialSimpleNeedle</a>.</p>
- </div>
- </div>
- <a id="ad4c32d58f2b8e77fd66e0dfc66b7c37a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ad4c32d58f2b8e77fd66e0dfc66b7c37a">◆ </a></span>palette()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">const QPalette & QwtDialNeedle::palette </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>the palette of the needle. </dd></dl>
- </div>
- </div>
- <a id="ae850883a64501136bca64d6ea2d084b9"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ae850883a64501136bca64d6ea2d084b9">◆ </a></span>setPalette()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtDialNeedle::setPalette </td>
- <td>(</td>
- <td class="paramtype">const QPalette & </td>
- <td class="paramname"><em>palette</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Sets the palette for the needle.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">palette</td><td>New Palette </td></tr>
- </table>
- </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_dial_needle.html">QwtDialNeedle</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>
|