📄 class_qwt_analog_clock.html
字号:
</tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>double </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 </td> <td class="mdname" nowrap> <em>cg</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"> const<code> [protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Draw the needle. <p>A clock has no single needle but three hands instead. drawNeedle translates <a class="el" href="class_qwt_double_range.html#7777cf257c812579c4891512f1b6cad0">value()</a> into directions for the hands and calls <a class="el" href="class_qwt_analog_clock.html#de068366d6b8fb1d706e2bec32fc5004">drawHand()</a>.<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> </td><td>Painter </td></tr> <tr><td valign="top"></td><td valign="top"><em>center</em> </td><td>Center of the clock </td></tr> <tr><td valign="top"></td><td valign="top"><em>radius</em> </td><td>Maximum length for the hands </td></tr> <tr><td valign="top"></td><td valign="top"><em>direction</em> </td><td>Dummy, not used. </td></tr> <tr><td valign="top"></td><td valign="top"><em>cg</em> </td><td>ColorGroup</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_analog_clock.html#de068366d6b8fb1d706e2bec32fc5004">QwtAnalogClock::drawHand()</a> </dd></dl><p>Reimplemented from <a class="el" href="class_qwt_dial.html#c6d173aed044964a21366bcdc34ae212">QwtDial</a>.<p>Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00191">191</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>.<p>References <a class="el" href="qwt__analog__clock_8cpp-source.html#l00220">drawHand()</a>, <a class="el" href="qwt__abstract__slider_8h-source.html#l00087">QwtAbstractSlider::isValid()</a>, <a class="el" href="qwt__dial_8cpp-source.html#l00965">QwtDial::origin()</a>, and <a class="el" href="qwt__double__range_8cpp-source.html#l00360">QwtDoubleRange::value()</a>. </td> </tr></table><a class="anchor" name="bb93bf8255bc00ef160165385bb6adce"></a><!-- doxytag: member="QwtAnalogClock::hand" ref="bb93bf8255bc00ef160165385bb6adce" args="(Hand)" --><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"><a class="el" href="class_qwt_dial_needle.html">QwtDialNeedle</a> * QwtAnalogClock::hand </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_qwt_analog_clock.html#cd8f7e963ae073120684de46821f2cfe">Hand</a> </td> <td class="mdname1" valign="top" nowrap> <em>hd</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>Returns:</b></dt><dd>Clock hand </dd></dl><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>hd</em> </td><td>Specifies the type of hand </td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_analog_clock.html#643101aafbe7a6fc91cb550203a7d3ee">QwtAnalogClock::setHand</a> </dd></dl><p>Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00118">118</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>. </td> </tr></table><a class="anchor" name="b390561b0856eef0d2bb80bdff0fb204"></a><!-- doxytag: member="QwtAnalogClock::hand" ref="b390561b0856eef0d2bb80bdff0fb204" args="(Hand) 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">const <a class="el" href="class_qwt_dial_needle.html">QwtDialNeedle</a> * QwtAnalogClock::hand </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_qwt_analog_clock.html#cd8f7e963ae073120684de46821f2cfe">Hand</a> </td> <td class="mdname1" valign="top" nowrap> <em>hd</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>Returns:</b></dt><dd>Clock hand </dd></dl><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>hd</em> </td><td>Specifies the type of hand </td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_analog_clock.html#643101aafbe7a6fc91cb550203a7d3ee">QwtAnalogClock::setHand</a> </dd></dl><p>Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00131">131</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>.<p>Referenced by <a class="el" href="qwt__analog__clock_8cpp-source.html#l00220">drawHand()</a>. </td> </tr></table><a class="anchor" name="c41f420214578dfebbd8a6216105e510"></a><!-- doxytag: member="QwtAnalogClock::scaleLabel" ref="c41f420214578dfebbd8a6216105e510" args="(double) 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"><a class="el" href="class_qwt_text.html">QwtText</a> QwtAnalogClock::scaleLabel </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname1" valign="top" nowrap> <em>value</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Find the scale label for a given value<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>value</em> </td><td>Value </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Label </dd></dl><p>Reimplemented from <a class="el" href="class_qwt_dial.html#b91f5aa6c54349d735fe22acd4f5a2e1">QwtDial</a>.<p>Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00168">168</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>. </td> </tr></table><a class="anchor" name="1972a54ce59155ec7435103f11a775a7"></a><!-- doxytag: member="QwtAnalogClock::setCurrentTime" ref="1972a54ce59155ec7435103f11a775a7" 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">void QwtAnalogClock::setCurrentTime </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [slot]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Set the current time. <p>This is the same as <a class="el" href="class_qwt_analog_clock.html#7a7098a41511a4b1c819cfc8b0f2839c">QwtAnalogClock::setTime()</a>, but Qt < 3.0 can't handle default parameters for slots. <p>Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00142">142</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>.<p>References <a class="el" href="qwt__analog__clock_8cpp-source.html#l00151">setTime()</a>. </td> </tr></table><a class="anchor" name="643101aafbe7a6fc91cb550203a7d3ee"></a><!-- doxytag: member="QwtAnalogClock::setHand" ref="643101aafbe7a6fc91cb550203a7d3ee" args="(Hand, QwtDialNeedle *)" --><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 QwtAnalogClock::setHand </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_qwt_analog_clock.html#cd8f7e963ae073120684de46821f2cfe">Hand</a> </td> <td class="mdname" nowrap> <em>hand</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="class_qwt_dial_needle.html">QwtDialNeedle</a> * </td> <td class="mdname" nowrap> <em>needle</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Set a clockhand <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>hand</em> </td><td>Specifies the type of hand </td></tr> <tr><td valign="top"></td><td valign="top"><em>needle</em> </td><td>Hand </td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_analog_clock.html#b390561b0856eef0d2bb80bdff0fb204">QwtAnalogClock::hand()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00104">104</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>.<p>References <a class="el" href="qwt__dial_8cpp-source.html#l00787">QwtDial::needle()</a>. </td> </tr></table><a class="anchor" name="7a7098a41511a4b1c819cfc8b0f2839c"></a><!-- doxytag: member="QwtAnalogClock::setTime" ref="7a7098a41511a4b1c819cfc8b0f2839c" args="(const QTime &=QTime::currentTime())" --><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 QwtAnalogClock::setTime </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const QTime & </td> <td class="mdname1" valign="top" nowrap> <em>time</em> = <code>QTime::currentTime()</code> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [slot]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Set a time <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>time</em> </td><td>Time to display </td></tr> </table></dl><p>Definition at line <a class="el" href="qwt__analog__clock_8cpp-source.html#l00151">151</a> of file <a class="el" href="qwt__analog__clock_8cpp-source.html">qwt_analog_clock.cpp</a>.<p>References <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00535">QwtAbstractSlider::setValue()</a>.<p>Referenced by <a class="el" href="qwt__analog__clock_8cpp-source.html#l00142">setCurrentTime()</a>. </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:22:59 2007 for Qwt User's Guide by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -