⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_qwt_compass_magnet_needle.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Qwt User&apos;s Guide: QwtCompassMagnetNeedle Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.6 --><div class="tabs">  <ul>    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>    <li id="current"><a href="classes.html"><span>Classes</span></a></li>    <li><a href="files.html"><span>Files</span></a></li>    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>  </ul></div><h1>QwtCompassMagnetNeedle Class Reference</h1><!-- doxytag: class="QwtCompassMagnetNeedle" --><!-- doxytag: inherits="QwtDialNeedle" -->Inheritance diagram for QwtCompassMagnetNeedle:<p><center><img src="class_qwt_compass_magnet_needle__inherit__graph.png" border="0" usemap="#_qwt_compass_magnet_needle__inherit__map" alt="Inheritance graph"></center><map name="_qwt_compass_magnet_needle__inherit__map"><area href="class_qwt_dial_needle.html" shape="rect" coords="45,8,155,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtCompassMagnetNeedle:<p><center><img src="class_qwt_compass_magnet_needle__coll__graph.png" border="0" usemap="#_qwt_compass_magnet_needle__coll__map" alt="Collaboration graph"></center><map name="_qwt_compass_magnet_needle__coll__map"><area href="class_qwt_dial_needle.html" shape="rect" coords="45,8,155,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_compass_magnet_needle-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>A magnet needle for compass widgets. <p>A magnet needle points to two opposite directions indicating north and south.<p>The following colors are used:<ul><li>QColorGroup::Light<br> Used for pointing south</li><li>QColorGroup::Dark<br> Used for pointing north</li><li>QColorGroup::Base<br> Knob (ThinStyle only)</li></ul><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_dial.html">QwtDial</a>, <a class="el" href="class_qwt_compass.html">QwtCompass</a> </dd></dl><p><p>Definition at line <a class="el" href="qwt__dial__needle_8h-source.html#l00125">125</a> of file <a class="el" href="qwt__dial__needle_8h-source.html">qwt_dial_needle.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Types</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass_magnet_needle.html#ee1d882c6ec8b680b94b59b5710a92a5">Style</a> { <br>&nbsp;&nbsp;<b>TriangleStyle</b>, <br>&nbsp;&nbsp;<b>ThinStyle</b><br> }</td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass_magnet_needle.html#3422e6490d44c527289bafdcceecd741">QwtCompassMagnetNeedle</a> (<a class="el" href="class_qwt_compass_magnet_needle.html#ee1d882c6ec8b680b94b59b5710a92a5">Style</a>=TriangleStyle, const QColor &amp;light=Qt::white, const QColor &amp;dark=Qt::red)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass_magnet_needle.html#5f70372a381eb8953728def1a5cb8bc2">draw</a> (QPainter *, const QPoint &amp;, int length, double direction, QPalette::ColorGroup=QPalette::Active) const </td></tr><tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass_magnet_needle.html#e26a1879af72e9b553b2a6c85afe0ca1">drawTriangleNeedle</a> (QPainter *, const QPalette &amp;, QPalette::ColorGroup, const QPoint &amp;, int length, double direction)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass_magnet_needle.html#786b21adb5d427b35be554eeafcce06c">drawThinNeedle</a> (QPainter *, const QPalette &amp;, QPalette::ColorGroup, const QPoint &amp;, int length, double direction)</td></tr><tr><td colspan="2"><br><h2>Static Protected Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_compass_magnet_needle.html#d8ca9ebf795e69c1058b00f1c00c5963">drawPointer</a> (QPainter *painter, const QBrush &amp;brush, int colorOffset, const QPoint &amp;center, int length, int width, double direction)</td></tr></table><hr><h2>Member Enumeration Documentation</h2><a class="anchor" name="ee1d882c6ec8b680b94b59b5710a92a5"></a><!-- doxytag: member="QwtCompassMagnetNeedle::Style" ref="ee1d882c6ec8b680b94b59b5710a92a5" args="" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">enum <a class="el" href="class_qwt_compass_magnet_needle.html#ee1d882c6ec8b680b94b59b5710a92a5">QwtCompassMagnetNeedle::Style</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Style of the needle. <p><p>Definition at line <a class="el" href="qwt__dial__needle_8h-source.html#l00129">129</a> of file <a class="el" href="qwt__dial__needle_8h-source.html">qwt_dial_needle.h</a>.    </td>  </tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="3422e6490d44c527289bafdcceecd741"></a><!-- doxytag: member="QwtCompassMagnetNeedle::QwtCompassMagnetNeedle" ref="3422e6490d44c527289bafdcceecd741" args="(Style=TriangleStyle, const QColor &amp;light=Qt::white, const QColor &amp;dark=Qt::red)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">QwtCompassMagnetNeedle::QwtCompassMagnetNeedle           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="class_qwt_compass_magnet_needle.html#ee1d882c6ec8b680b94b59b5710a92a5">Style</a>&nbsp;</td>          <td class="mdname" nowrap> = <code>TriangleStyle</code>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QColor &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>light</em> = <code>Qt::white</code>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QColor &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>dark</em> = <code>Qt::red</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Constructor. <p><p>Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00265">265</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.<p>References <a class="el" href="qwt__dial__needle_8cpp-source.html#l00048">QwtDialNeedle::palette()</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="5f70372a381eb8953728def1a5cb8bc2"></a><!-- doxytag: member="QwtCompassMagnetNeedle::draw" ref="5f70372a381eb8953728def1a5cb8bc2" args="(QPainter *, const QPoint &amp;, int length, double direction, QPalette::ColorGroup=QPalette::Active) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void QwtCompassMagnetNeedle::draw           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>          <td class="mdname" nowrap> <em>painter</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QPoint &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>center</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>length</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>double&nbsp;</td>          <td class="mdname" nowrap> <em>direction</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>QPalette::ColorGroup&nbsp;</td>          <td class="mdname" nowrap> <em>colorGroup</em> = <code>QPalette::Active</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Draw the needle<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>painter</em>&nbsp;</td><td>Painter </td></tr>    <tr><td valign="top"></td><td valign="top"><em>center</em>&nbsp;</td><td>Center of the dial, start position for the needle </td></tr>    <tr><td valign="top"></td><td valign="top"><em>length</em>&nbsp;</td><td>Length of the needle </td></tr>    <tr><td valign="top"></td><td valign="top"><em>direction</em>&nbsp;</td><td>Direction of the needle, in degrees counter clockwise </td></tr>    <tr><td valign="top"></td><td valign="top"><em>colorGroup</em>&nbsp;</td><td>Color group, used for painting </td></tr>  </table></dl><p>Implements <a class="el" href="class_qwt_dial_needle.html#6076eecfa9fc39235435d098cf146a2c">QwtDialNeedle</a>.<p>Definition at line <a class="el" href="qwt__dial__needle_8cpp-source.html#l00292">292</a> of file <a class="el" href="qwt__dial__needle_8cpp-source.html">qwt_dial_needle.cpp</a>.<p>References <a class="el" href="qwt__dial__needle_8cpp-source.html#l00383">drawThinNeedle()</a>, <a class="el" href="qwt__dial__needle_8cpp-source.html#l00317">drawTriangleNeedle()</a>, and <a class="el" href="qwt__dial__needle_8cpp-source.html#l00048">QwtDialNeedle::palette()</a>.    </td>  </tr></table><a class="anchor" name="d8ca9ebf795e69c1058b00f1c00c5963"></a><!-- doxytag: member="QwtCompassMagnetNeedle::drawPointer" ref="d8ca9ebf795e69c1058b00f1c00c5963" args="(QPainter *painter, const QBrush &amp;brush, int colorOffset, const QPoint &amp;center, int length, int width, double direction)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void QwtCompassMagnetNeedle::drawPointer           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>          <td class="mdname" nowrap> <em>painter</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -