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

📄 class_qwt_double_range.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<p>Adjust the value to the closest point in 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>&nbsp;</td><td>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#50ed1e265beaa1c8adbe718caa023e50">QwtAbstractSlider</a>.<p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00132">132</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#l00550">QwtAbstractSlider::fitValue()</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#l00276">QwtAbstractSlider::setPosition()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00417">QwtAbstractSlider::timerEvent()</a>.    </td>  </tr></table><a class="anchor" name="19b85337d4ab0b5f0579b02e4fb29a8f"></a><!-- doxytag: member="QwtDoubleRange::incPages" ref="19b85337d4ab0b5f0579b02e4fb29a8f" args="(int)" --><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::incPages           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>nPages</em>          </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>Increment the value by a specified number of pages. <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>nPages</em>&nbsp;</td><td>Number of pages to increment. A negative number decrements the value. </td></tr>  </table></dl><dl compact><dt><b>Warning:</b></dt><dd>The Page size is specified in the constructor. </dd></dl><p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00271">271</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#l00051">isValid()</a>.<p>Referenced by <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>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00336">QwtAbstractSlider::wheelEvent()</a>.    </td>  </tr></table><a class="anchor" name="299c35c72e9b69f5a0e3dcd2b7da775b"></a><!-- doxytag: member="QwtDoubleRange::incValue" ref="299c35c72e9b69f5a0e3dcd2b7da775b" args="(int)" --><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::incValue           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>nSteps</em>          </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>Increment the value by a specified number of steps. <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>nSteps</em>&nbsp;</td><td>Number of steps to increment </td></tr>  </table></dl><dl compact><dt><b>Warning:</b></dt><dd>As a result of this operation, the new value will always be adjusted to the step raster. </dd></dl><p>Reimplemented in <a class="el" href="class_qwt_abstract_slider.html#5fccdb2ca370bba9ed4d29864fd80788">QwtAbstractSlider</a>.<p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00259">259</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#l00051">isValid()</a>.<p>Referenced by <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00562">QwtAbstractSlider::incValue()</a>, <a class="el" href="qwt__dial_8cpp-source.html#l01187">QwtDial::keyPressEvent()</a>, and <a class="el" href="qwt__counter_8cpp-source.html#l00236">QwtCounter::keyPressEvent()</a>.    </td>  </tr></table><a class="anchor" name="fc4921deb3f68a64cc08b0654a040bc6"></a><!-- doxytag: member="QwtDoubleRange::isValid" ref="fc4921deb3f68a64cc08b0654a040bc6" 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">bool QwtDoubleRange::isValid           </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> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Indicates if the value is valid. <p><p>Reimplemented in <a class="el" href="class_qwt_abstract_slider.html#87c750f098cb5f70306a7908339cb88e">QwtAbstractSlider</a>.<p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00051">51</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#l00271">incPages()</a>, <a class="el" href="qwt__double__range_8cpp-source.html#l00259">incValue()</a>, and <a class="el" href="qwt__abstract__slider_8h-source.html#l00087">QwtAbstractSlider::isValid()</a>.    </td>  </tr></table><a class="anchor" name="215275a1a8b4218a424ee8444c7fe409"></a><!-- doxytag: member="QwtDoubleRange::maxValue" ref="215275a1a8b4218a424ee8444c7fe409" 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::maxValue           </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> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the value of the second border of the range. <p>maxValue returns the value which has been specified as the second parameter in <a class="el" href="class_qwt_double_range.html#43891011664b74b8e5454763a3f5ff21">QwtDoubleRange::setRange</a>.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_double_range.html#43891011664b74b8e5454763a3f5ff21">QwtDoubleRange::setRange()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00326">326</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__wheel_8cpp-source.html#l00375">QwtWheel::drawWheel()</a>, <a class="el" href="qwt__wheel_8cpp-source.html#l00494">QwtWheel::getValue()</a>, <a class="el" href="qwt__dial_8cpp-source.html#l01052">QwtDial::getValue()</a>, <a class="el" href="qwt__dial_8cpp-source.html#l01187">QwtDial::keyPressEvent()</a>, <a class="el" href="qwt__counter_8cpp-source.html#l00236">QwtCounter::keyPressEvent()</a>, <a class="el" href="qwt__counter_8cpp-source.html#l00574">QwtCounter::maxVal()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00692">QwtSlider::rangeChange()</a>, <a class="el" href="qwt__counter_8cpp-source.html#l00568">QwtCounter::setMinValue()</a>, <a class="el" href="qwt__counter_8cpp-source.html#l00513">QwtCounter::sizeHint()</a>, and <a class="el" href="qwt__dial_8cpp-source.html#l00811">QwtDial::updateScale()</a>.    </td>  </tr></table><a class="anchor" name="8b8650a6f8a96144d3af21207ee71637"></a><!-- doxytag: member="QwtDoubleRange::minValue" ref="8b8650a6f8a96144d3af21207ee71637" 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::minValue           </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> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the value at the first border of the range. <p>minValue returns the value which has been specified as the first parameter in <a class="el" href="class_qwt_double_range.html#43891011664b74b8e5454763a3f5ff21">setRange()</a>.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_double_range.html#43891011664b74b8e5454763a3f5ff21">QwtDoubleRange::setRange()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00339">339</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__wheel_8cpp-source.html#l00375">QwtWheel::drawWheel()</a>, <a class="el" href="qwt__wheel_8cpp-source.html#l00494">QwtWheel::getValue()</a>, <a class="el" href="qwt__dial_8cpp-source.html#l01052">QwtDial::getValue()</a>, <a class="el" href="qwt__dial_8cpp-source.html#l01187">QwtDial::keyPressEvent()</a>, <a class="el" href="qwt__counter_8cpp-source.html#l00236">QwtCounter::keyPressEvent()</a>, <a class="el" href="qwt__counter_8cpp-source.html#l00562">QwtCounter::minVal()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00692">QwtSlider::rangeChange()</a>, <a class="el" href="qwt__counter_8cpp-source.html#l00580">QwtCounter::setMaxValue()</a>, <a class="el" href="qwt__counter_8cpp-source.html#l00513">QwtCounter::sizeHint()</a>, and <a class="el" href="qwt__dial_8cpp-source.html#l00811">QwtDial::updateScale()</a>.    </td>  </tr></table><a class="anchor" name="c12a5c43dc5839913379982ec40a39d8"></a><!-- doxytag: member="QwtDoubleRange::pageSize" ref="c12a5c43dc5839913379982ec40a39d8" 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">int QwtDoubleRange::pageSize           </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> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the page size in steps. <p><p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00354">354</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#l01187">QwtDial::keyPressEvent()</a>.    </td>  </tr></table><a class="anchor" name="d1efbcbf29dbc74f3f378292b76b007b"></a><!-- doxytag: member="QwtDoubleRange::periodic" ref="d1efbcbf29dbc74f3f378292b76b007b" args="() const " --><p>

⌨️ 快捷键说明

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