<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.11"/> <title>Qwt User's Guide: QwtDialSimpleNeedle 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> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </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> <script type="text/javascript"> $(document).ready(function() { init_search(); }); </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.3</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.11 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </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"> $(document).ready(function(){initNavTree('class_qwt_dial_simple_needle.html','');}); </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="#pro-methods">Protected Member Functions</a> | <a href="class_qwt_dial_simple_needle-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">QwtDialSimpleNeedle Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>A needle for dial widgets. <a href="class_qwt_dial_simple_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 QwtDialSimpleNeedle:</div> <div class="dyncontent"> <div class="center"><img src="class_qwt_dial_simple_needle__inherit__graph.png" border="0" usemap="#_qwt_dial_simple_needle_inherit__map" alt="Inheritance graph"/></div> <map name="_qwt_dial_simple_needle_inherit__map" id="_qwt_dial_simple_needle_inherit__map"> <area shape="rect" id="node2" href="class_qwt_dial_needle.html" title="Base class for needles that can be used in a QwtDial. " alt="" coords="26,5,139,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-types"></a> Public Types</h2></td></tr> <tr class="memitem:ad28821489e04f1fd942e5bebc8a60584"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_simple_needle.html#ad28821489e04f1fd942e5bebc8a60584">Style</a> { <a class="el" href="class_qwt_dial_simple_needle.html#ad28821489e04f1fd942e5bebc8a60584a27ace220f0a5c6abd061c85bbdc9a663">Arrow</a>, <a class="el" href="class_qwt_dial_simple_needle.html#ad28821489e04f1fd942e5bebc8a60584a580980e68ef26fc7d35962cf6f12a4b2">Ray</a> }<tr class="memdesc:ad28821489e04f1fd942e5bebc8a60584"><td class="mdescLeft"> </td><td class="mdescRight">Style of the needle. <a href="class_qwt_dial_simple_needle.html#ad28821489e04f1fd942e5bebc8a60584">More...</a><br /></td></tr> </td></tr> <tr class="separator:ad28821489e04f1fd942e5bebc8a60584"><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:a5f16b9298ecd293360a3ccf91d3dbfbb"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_simple_needle.html#a5f16b9298ecd293360a3ccf91d3dbfbb">QwtDialSimpleNeedle</a> (<a class="el" href="class_qwt_dial_simple_needle.html#ad28821489e04f1fd942e5bebc8a60584">Style</a>, bool hasKnob=true, const QColor &mid=Qt::gray, const QColor &base=Qt::darkGray)</td></tr> <tr class="separator:a5f16b9298ecd293360a3ccf91d3dbfbb"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad7672543371e38c864e44d9240271c22"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_simple_needle.html#ad7672543371e38c864e44d9240271c22">setWidth</a> (double <a class="el" href="class_qwt_dial_simple_needle.html#af7c8d5ed409364e4e67b7e40f1c0cfe2">width</a>)</td></tr> <tr class="separator:ad7672543371e38c864e44d9240271c22"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af7c8d5ed409364e4e67b7e40f1c0cfe2"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_simple_needle.html#af7c8d5ed409364e4e67b7e40f1c0cfe2">width</a> () const </td></tr> <tr class="separator:af7c8d5ed409364e4e67b7e40f1c0cfe2"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_class_qwt_dial_needle"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_qwt_dial_needle')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_qwt_dial_needle.html">QwtDialNeedle</a></td></tr> <tr class="memitem:aef3af79632ce784bc4d7332f6e269a1f inherit pub_methods_class_qwt_dial_needle"><td class="memItemLeft" align="right" valign="top"><a class="anchor" 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 inherit pub_methods_class_qwt_dial_needle"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br /></td></tr> <tr class="separator:aef3af79632ce784bc4d7332f6e269a1f inherit pub_methods_class_qwt_dial_needle"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac23b2af4af50042967c8cea87b474247 inherit pub_methods_class_qwt_dial_needle"><td class="memItemLeft" align="right" valign="top"><a class="anchor" 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 inherit pub_methods_class_qwt_dial_needle"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr> <tr class="separator:ac23b2af4af50042967c8cea87b474247 inherit pub_methods_class_qwt_dial_needle"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae850883a64501136bca64d6ea2d084b9 inherit pub_methods_class_qwt_dial_needle"><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 inherit pub_methods_class_qwt_dial_needle"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8b3c915032389261e07cc983b433166c inherit pub_methods_class_qwt_dial_needle"><td class="memItemLeft" align="right" valign="top">const QPalette & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_needle.html#a8b3c915032389261e07cc983b433166c">palette</a> () const </td></tr> <tr class="separator:a8b3c915032389261e07cc983b433166c inherit pub_methods_class_qwt_dial_needle"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a425085086c4a8c7baff10b161616ee42 inherit pub_methods_class_qwt_dial_needle"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_needle.html#a425085086c4a8c7baff10b161616ee42">draw</a> (QPainter *painter, const QPointF &center, double length, double direction, QPalette::ColorGroup=QPalette::Active) const </td></tr> <tr class="separator:a425085086c4a8c7baff10b161616ee42 inherit pub_methods_class_qwt_dial_needle"><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:a0eff8832707ff968d17eddf478d6a771"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_simple_needle.html#a0eff8832707ff968d17eddf478d6a771">drawNeedle</a> (QPainter *, double length, QPalette::ColorGroup) const </td></tr> <tr class="separator:a0eff8832707ff968d17eddf478d6a771"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pro_methods_class_qwt_dial_needle"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_qwt_dial_needle')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="class_qwt_dial_needle.html">QwtDialNeedle</a></td></tr> <tr class="memitem:aaca9572717a1db10b1b6609571024688 inherit pro_methods_class_qwt_dial_needle"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaca9572717a1db10b1b6609571024688"></a> virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_dial_needle.html#aaca9572717a1db10b1b6609571024688">drawKnob</a> (QPainter *, double width, const QBrush &, bool sunken) const </td></tr> <tr class="memdesc:aaca9572717a1db10b1b6609571024688 inherit pro_methods_class_qwt_dial_needle"><td class="mdescLeft"> </td><td class="mdescRight">Draw the knob. <br /></td></tr> <tr class="separator:aaca9572717a1db10b1b6609571024688 inherit pro_methods_class_qwt_dial_needle"><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 needle for dial widgets. </p> <p>The following colors are used:</p> <ul> <li>QPalette::Mid<br /> Pointer</li> <li>QPalette::Base<br /> Knob</li> </ul> <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 Enumeration Documentation</h2> <a class="anchor" id="ad28821489e04f1fd942e5bebc8a60584"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="class_qwt_dial_simple_needle.html#ad28821489e04f1fd942e5bebc8a60584">QwtDialSimpleNeedle::Style</a></td> </tr> </table> </div><div class="memdoc"> <p>Style of the needle. </p> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ad28821489e04f1fd942e5bebc8a60584a27ace220f0a5c6abd061c85bbdc9a663"></a>Arrow </td><td class="fielddoc"> <p>Arrow. </p> </td></tr> <tr><td class="fieldname"><a class="anchor" id="ad28821489e04f1fd942e5bebc8a60584a580980e68ef26fc7d35962cf6f12a4b2"></a>Ray </td><td class="fielddoc"> <p>A straight line from the center. </p> </td></tr> </table> </div> </div> <h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="a5f16b9298ecd293360a3ccf91d3dbfbb"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QwtDialSimpleNeedle::QwtDialSimpleNeedle </td> <td>(</td> <td class="paramtype"><a class="el" href="class_qwt_dial_simple_needle.html#ad28821489e04f1fd942e5bebc8a60584">Style</a> </td> <td class="paramname"><em>style</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>hasKnob</em> = <code>true</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const QColor & </td> <td class="paramname"><em>mid</em> = <code>Qt::gray</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const QColor & </td> <td class="paramname"><em>base</em> = <code>Qt::darkGray</code> </td> </tr> <tr> <td></td> <td>)</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">style</td><td>Style </td></tr> <tr><td class="paramname">hasKnob</td><td>With/Without knob </td></tr> <tr><td class="paramname">mid</td><td>Middle color </td></tr> <tr><td class="paramname">base</td><td>Base color </td></tr> </table> </dd> </dl> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a0eff8832707ff968d17eddf478d6a771"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void QwtDialSimpleNeedle::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">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">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> <p>Implements <a class="el" href="class_qwt_dial_needle.html#a3893ef0232ba0e000d3d33a0cb541dd1">QwtDialNeedle</a>.</p> </div> </div> <a class="anchor" id="ad7672543371e38c864e44d9240271c22"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void QwtDialSimpleNeedle::setWidth </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>width</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Set the width of the needle </p><dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">width</td><td>Width </td></tr> </table> </dd> </dl> <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_dial_simple_needle.html#af7c8d5ed409364e4e67b7e40f1c0cfe2">width()</a> </dd></dl> </div> </div> <a class="anchor" id="af7c8d5ed409364e4e67b7e40f1c0cfe2"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double QwtDialSimpleNeedle::width </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 width of the needle </dd></dl> <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_dial_simple_needle.html#ad7672543371e38c864e44d9240271c22">setWidth()</a> </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_simple_needle.html">QwtDialSimpleNeedle</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li> </ul> </div> </body> </html>