📄 class_qwt_double_range.html
字号:
<table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>vstep</em> </td><td>new step width </td></tr> </table></dl><dl compact><dt><b>Warning:</b></dt><dd>The value will <em>not</em> be adjusted to the new step raster. </dd></dl><p>Reimplemented in <a class="el" href="class_qwt_counter.html#b885e97d0071877dfefb73feb0adc0cd">QwtCounter</a>.<p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00208">208</a> of file <a class="el" href="qwt__double__range_8cpp-source.html">qwt_double_range.cpp</a>.<p>References <a class="el" href="qwt__double__range_8cpp-source.html#l00305">stepChange()</a>.<p>Referenced by <a class="el" href="qwt__double__range_8cpp-source.html#l00169">setRange()</a>, and <a class="el" href="qwt__counter_8cpp-source.html#l00556">QwtCounter::setStep()</a>. </td> </tr></table><a class="anchor" name="50a9c386663e170016a74cf8ee28ab8f"></a><!-- doxytag: member="QwtDoubleRange::setValid" ref="50a9c386663e170016a74cf8ee28ab8f" args="(bool)" --><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 QwtDoubleRange::setValid </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> </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>Set the value to be valid/invalid. <p><p>Reimplemented in <a class="el" href="class_qwt_abstract_slider.html#79d99f14ebd47dfede8135845c90cedb">QwtAbstractSlider</a>.<p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00041">41</a> of file <a class="el" href="qwt__double__range_8cpp-source.html">qwt_double_range.cpp</a>.<p>References <a class="el" href="qwt__double__range_8cpp-source.html#l00283">valueChange()</a>.<p>Referenced by <a class="el" href="qwt__abstract__slider_8h-source.html#l00092">QwtAbstractSlider::setValid()</a>. </td> </tr></table><a class="anchor" name="f6a3aa74c970a2bef29f0c1af99720e8"></a><!-- doxytag: member="QwtDoubleRange::setValue" ref="f6a3aa74c970a2bef29f0c1af99720e8" args="(double)" --><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 QwtDoubleRange::setValue </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname1" valign="top" nowrap> <em>x</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Set a new value without adjusting to the step raster. <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>x</em> </td><td>new value </td></tr> </table></dl><dl compact><dt><b>Warning:</b></dt><dd>The value is clipped when it lies outside the range. When the range is <a class="el" href="class_qwt_double_range.html#d1efbcbf29dbc74f3f378292b76b007b">QwtDoubleRange::periodic</a>, it will be mapped to a point in the interval such that <div class="fragment"><pre class="fragment">new value := x + n * (max. value - min. value)</pre></div> with an integer number n. </dd></dl><p>Reimplemented in <a class="el" href="class_qwt_abstract_slider.html#c3713f8989b647cb79f0a5894991e36a">QwtAbstractSlider</a>, and <a class="el" href="class_qwt_counter.html#429a2e986aa46c1231643df5d4c78970">QwtCounter</a>.<p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00147">147</a> of file <a class="el" href="qwt__double__range_8cpp-source.html">qwt_double_range.cpp</a>.<p>Referenced by <a class="el" href="qwt__counter_8cpp-source.html#l00382">QwtCounter::setValue()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00535">QwtAbstractSlider::setValue()</a>. </td> </tr></table><a class="anchor" name="0cb8cc60548c10cb1d98e54387961967"></a><!-- doxytag: member="QwtDoubleRange::step" ref="0cb8cc60548c10cb1d98e54387961967" args="() 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">double QwtDoubleRange::step </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </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>the step size </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_double_range.html#29ed5fc66439def424a8ad773eea285d">QwtDoubleRange::setStep</a>, <a class="el" href="class_qwt_double_range.html#43891011664b74b8e5454763a3f5ff21">QwtDoubleRange::setRange</a> </dd></dl><p>Reimplemented in <a class="el" href="class_qwt_counter.html#b3496bdd6bdb093462bca588880d8c1b">QwtCounter</a>.<p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00313">313</a> of file <a class="el" href="qwt__double__range_8cpp-source.html">qwt_double_range.cpp</a>.<p>Referenced by <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00196">QwtAbstractSlider::mouseReleaseEvent()</a>, <a class="el" href="qwt__counter_8cpp-source.html#l00550">QwtCounter::step()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00417">QwtAbstractSlider::timerEvent()</a>. </td> </tr></table><a class="anchor" name="86641f8755ed172ca4cf72d36df539ca"></a><!-- doxytag: member="QwtDoubleRange::stepChange" ref="86641f8755ed172ca4cf72d36df539ca" 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 QwtDoubleRange::stepChange </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> [protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Notify a change of the step size. <p>This virtual function is called whenever the step size changes. The default implementation does nothing. <p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00305">305</a> of file <a class="el" href="qwt__double__range_8cpp-source.html">qwt_double_range.cpp</a>.<p>Referenced by <a class="el" href="qwt__double__range_8cpp-source.html#l00208">setStep()</a>. </td> </tr></table><a class="anchor" name="7777cf257c812579c4891512f1b6cad0"></a><!-- doxytag: member="QwtDoubleRange::value" ref="7777cf257c812579c4891512f1b6cad0" args="() 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">double QwtDoubleRange::value </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </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>Returns the current value. <p><p>Reimplemented in <a class="el" href="class_qwt_counter.html#121194fadd8cea929c1ac9509f27fe58">QwtCounter</a>.<p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00360">360</a> of file <a class="el" href="qwt__double__range_8cpp-source.html">qwt_double_range.cpp</a>.<p>Referenced by <a class="el" href="qwt__dial_8cpp-source.html#l00572">QwtDial::drawContents()</a>, <a class="el" href="qwt__analog__clock_8cpp-source.html#l00191">QwtAnalogClock::drawNeedle()</a>, <a class="el" href="qwt__compass_8cpp-source.html#l00114">QwtCompass::drawScaleContents()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00319">QwtSlider::drawSlider()</a>, <a class="el" href="qwt__wheel_8cpp-source.html#l00375">QwtWheel::drawWheel()</a>, <a class="el" href="qwt__dial_8cpp-source.html#l01052">QwtDial::getValue()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00305">QwtAbstractSlider::mouseMoveEvent()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00147">QwtAbstractSlider::mousePressEvent()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00196">QwtAbstractSlider::mouseReleaseEvent()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00417">QwtAbstractSlider::timerEvent()</a>, <a class="el" href="qwt__counter_8cpp-source.html#l00621">QwtCounter::value()</a>, <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00484">QwtAbstractSlider::valueChange()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00336">QwtAbstractSlider::wheelEvent()</a>. </td> </tr></table><a class="anchor" name="1d50398342d6aa1d9cd86650ee29aff8"></a><!-- doxytag: member="QwtDoubleRange::valueChange" ref="1d50398342d6aa1d9cd86650ee29aff8" 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 QwtDoubleRange::valueChange </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> [protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Notify a change of value. <p>This virtual function is called whenever the value changes. The default implementation does nothing. <p>Reimplemented in <a class="el" href="class_qwt_abstract_slider.html#2f04dc51e4402b51fef3250bcc99dc7f">QwtAbstractSlider</a>, <a class="el" href="class_qwt_dial.html#d8803d79d9fbefdae55907728bb01894">QwtDial</a>, <a class="el" href="class_qwt_slider.html#62380259b0831ad98a1b0ad011f32bea">QwtSlider</a>, and <a class="el" href="class_qwt_wheel.html#0fa3d4f4189f7bb6ee0944cd30060eb5">QwtWheel</a>.<p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00283">283</a> of file <a class="el" href="qwt__double__range_8cpp-source.html">qwt_double_range.cpp</a>.<p>Referenced by <a class="el" href="qwt__double__range_8cpp-source.html#l00041">setValid()</a>. </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:23:51 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 + -