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

📄 class_qwt_wheel.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!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: QwtWheel 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>QwtWheel Class Reference</h1><!-- doxytag: class="QwtWheel" --><!-- doxytag: inherits="QwtAbstractSlider" -->Inheritance diagram for QwtWheel:<p><center><img src="class_qwt_wheel__inherit__graph.png" border="0" usemap="#_qwt_wheel__inherit__map" alt="Inheritance graph"></center><map name="_qwt_wheel__inherit__map"><area href="class_qwt_abstract_slider.html" shape="rect" coords="7,83,135,107" alt=""><area href="class_qwt_double_range.html" shape="rect" coords="8,8,133,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtWheel:<p><center><img src="class_qwt_wheel__coll__graph.png" border="0" usemap="#_qwt_wheel__coll__map" alt="Collaboration graph"></center><map name="_qwt_wheel__coll__map"><area href="class_qwt_abstract_slider.html" shape="rect" coords="7,83,135,107" alt=""><area href="class_qwt_double_range.html" shape="rect" coords="8,8,133,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_wheel-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>The Wheel Widget. <p>The wheel widget can be used to change values over a very large range in very small steps. Using the setMass member, it can be configured as a flywheel.<p><dl compact><dt><b>See also:</b></dt><dd>The radio example. </dd></dl><p><p>Definition at line <a class="el" href="qwt__wheel_8h-source.html#l00025">25</a> of file <a class="el" href="qwt__wheel_8h-source.html">qwt_wheel.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></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_wheel.html#98fc47123aac47168b5d98a73b87d0a7">QwtWheel</a> (QWidget *parent=NULL)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#57f465a31a9d2d88cb7a1d0e6391535e">~QwtWheel</a> ()</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_wheel.html#cae74c8161fd1df728f26253dd1defa8">setOrientation</a> (Qt::Orientation)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c05734986ee427e6d820f54a267dde26"></a><!-- doxytag: member="QwtWheel::totalAngle" ref="c05734986ee427e6d820f54a267dde26" args="() const " -->double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#c05734986ee427e6d820f54a267dde26">totalAngle</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="49c04ea6e1ec21268f63d45239bc9333"></a><!-- doxytag: member="QwtWheel::viewAngle" ref="49c04ea6e1ec21268f63d45239bc9333" args="() const " -->double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#49c04ea6e1ec21268f63d45239bc9333">viewAngle</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="02e84c468d3175278a490185ca4a7c2a"></a><!-- doxytag: member="QwtWheel::tickCnt" ref="02e84c468d3175278a490185ca4a7c2a" args="() const " -->int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#02e84c468d3175278a490185ca4a7c2a">tickCnt</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1e87fb6b08098a7b5255ed70dcd62182"></a><!-- doxytag: member="QwtWheel::internalBorder" ref="1e87fb6b08098a7b5255ed70dcd62182" args="() const " -->int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#1e87fb6b08098a7b5255ed70dcd62182">internalBorder</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#55de1496f0eef04da9bc293306a40df6">mass</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#3bf43e42e715577f05be9525be1a8e0e">setTotalAngle</a> (double angle)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#8a970c3b4f776217c284cdce15206530">setTickCnt</a> (int cnt)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#d90821d39ff243db547a1c9b0b0ef545">setViewAngle</a> (double angle)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#cb9358f6cf27f1552dd7f97ebfd2d3fb">setInternalBorder</a> (int width)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#811ef1cf04a3d39eb017fcfe808bbd4f">setMass</a> (double val)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#fc5416139e1c962b950a8d48fe465209">setWheelWidth</a> (int w)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#77404d4e604a196bd4e809ec7d9f2076">sizeHint</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#668397451f5ad7b2a78d01d9e7141bcf">minimumSizeHint</a> () const </td></tr><tr><td colspan="2"><br><h2>Protected Member Functions</h2></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_wheel.html#f4fda101be95e70803127cc94fc1e337">resizeEvent</a> (QResizeEvent *e)</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_wheel.html#c2bc645171e2c1dd34acff3d122ab4ba">paintEvent</a> (QPaintEvent *e)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#03a6adc4f6516143501c8114f164d47c">layoutWheel</a> (bool update=true)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#e08370e0e6a82ab3539d073ced3bc313">draw</a> (QPainter *p, const QRect &amp;update_rect)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#d1feb5d4c2a9b410c4d5d108a5630904">drawWheel</a> (QPainter *p, const QRect &amp;r)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#33b95a78f006f36fee8dafea9531afa9">drawWheelBackground</a> (QPainter *p, const QRect &amp;r)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#f7d32d9b65d1f55913656a44b2a20646">setColorArray</a> ()</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_wheel.html#0fa3d4f4189f7bb6ee0944cd30060eb5">valueChange</a> ()</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_wheel.html#358aae0c56eda43f5c9fdb74b89de60a">paletteChange</a> (const QPalette &amp;)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_wheel.html#6bb116593e63e724059c894a6fc41097">getValue</a> (const QPoint &amp;p)</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_wheel.html#2655146c5d017756566691e8142b8fcd">getScrollMode</a> (const QPoint &amp;p, int &amp;scrollMode, int &amp;direction)</td></tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="98fc47123aac47168b5d98a73b87d0a7"></a><!-- doxytag: member="QwtWheel::QwtWheel" ref="98fc47123aac47168b5d98a73b87d0a7" args="(QWidget *parent=NULL)" --><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">QwtWheel::QwtWheel           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QWidget *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>parent</em> = <code>NULL</code>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [explicit]</code></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__wheel_8cpp-source.html#l00051">51</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.    </td>  </tr></table><a class="anchor" name="57f465a31a9d2d88cb7a1d0e6391535e"></a><!-- doxytag: member="QwtWheel::~QwtWheel" ref="57f465a31a9d2d88cb7a1d0e6391535e" 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">QwtWheel::~QwtWheel           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Destructor. <p><p>Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00086">86</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="e08370e0e6a82ab3539d073ced3bc313"></a><!-- doxytag: member="QwtWheel::draw" ref="e08370e0e6a82ab3539d073ced3bc313" args="(QPainter *p, const QRect &amp;update_rect)" --><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 QwtWheel::draw           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>          <td class="mdname" nowrap> <em>p</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QRect &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>update_rect</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Redraw panel and wheel. <p><p>Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00564">564</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.<p>References <a class="el" href="qwt__painter_8cpp-source.html#l00564">QwtPainter::drawFocusRect()</a>, and <a class="el" href="qwt__wheel_8cpp-source.html#l00375">drawWheel()</a>.<p>Referenced by <a class="el" href="qwt__wheel_8cpp-source.html#l00547">paintEvent()</a>.    </td>  </tr></table><a class="anchor" name="d1feb5d4c2a9b410c4d5d108a5630904"></a><!-- doxytag: member="QwtWheel::drawWheel" ref="d1feb5d4c2a9b410c4d5d108a5630904" args="(QPainter *p, const QRect &amp;r)" --><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 QwtWheel::drawWheel           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>          <td class="mdname" nowrap> <em>p</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QRect &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>r</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Redraw the wheel. <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>p</em>&nbsp;</td><td>painter </td></tr>    <tr><td valign="top"></td><td valign="top"><em>r</em>&nbsp;</td><td>contents rectangle </td></tr>  </table></dl><p>Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00375">375</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.<p>References <a class="el" href="qwt__wheel_8cpp-source.html#l00197">drawWheelBackground()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00326">QwtDoubleRange::maxValue()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00339">QwtDoubleRange::minValue()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00117">QwtAbstractSlider::orientation()</a>, and <a class="el" href="qwt__double__range_8cpp-source.html#l00360">QwtDoubleRange::value()</a>.<p>Referenced by <a class="el" href="qwt__wheel_8cpp-source.html#l00564">draw()</a>.    </td>  </tr></table><a class="anchor" name="33b95a78f006f36fee8dafea9531afa9"></a><!-- doxytag: member="QwtWheel::drawWheelBackground" ref="33b95a78f006f36fee8dafea9531afa9" args="(QPainter *p, const QRect &amp;r)" --><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 QwtWheel::drawWheelBackground           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>          <td class="mdname" nowrap> <em>p</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QRect &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>r</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Draw the Wheel's background gradient. <p><p>Definition at line <a class="el" href="qwt__wheel_8cpp-source.html#l00197">197</a> of file <a class="el" href="qwt__wheel_8cpp-source.html">qwt_wheel.cpp</a>.<p>References <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00117">QwtAbstractSlider::orientation()</a>, and <a class="el" href="qwt__wheel_8cpp-source.html#l00096">setColorArray()</a>.<p>Referenced by <a class="el" href="qwt__wheel_8cpp-source.html#l00375">drawWheel()</a>.    </td>  </tr></table><a class="anchor" name="2655146c5d017756566691e8142b8fcd"></a><!-- doxytag: member="QwtWheel::getScrollMode" ref="2655146c5d017756566691e8142b8fcd" args="(const QPoint &amp;p, int &amp;scrollMode, int &amp;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 QwtWheel::getScrollMode           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QPoint &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>p</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>scrollMode</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>

⌨️ 快捷键说明

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