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

📄 class_qwt_double_range.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!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: QwtDoubleRange 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>QwtDoubleRange Class Reference</h1><!-- doxytag: class="QwtDoubleRange" -->Inheritance diagram for QwtDoubleRange:<p><center><img src="class_qwt_double_range__inherit__graph.png" border="0" usemap="#_qwt_double_range__inherit__map" alt="Inheritance graph"></center><map name="_qwt_double_range__inherit__map"><area href="class_qwt_abstract_slider.html" shape="rect" coords="216,83,344,107" alt=""><area href="class_qwt_counter.html" shape="rect" coords="368,83,461,107" alt=""><area href="class_qwt_dial.html" shape="rect" coords="100,157,167,181" alt=""><area href="class_qwt_knob.html" shape="rect" coords="191,157,268,181" alt=""><area href="class_qwt_slider.html" shape="rect" coords="292,157,372,181" alt=""><area href="class_qwt_wheel.html" shape="rect" coords="396,157,479,181" alt=""><area href="class_qwt_analog_clock.html" shape="rect" coords="7,232,127,256" alt=""><area href="class_qwt_compass.html" shape="rect" coords="151,232,252,256" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_double_range-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>A class which controls a value within an interval. <p>This class is useful as a base class or a member for sliders. It represents an interval of type double within which a value can be moved. The value can be either an arbitrary point inside the interval (see <a class="el" href="class_qwt_double_range.html#f6a3aa74c970a2bef29f0c1af99720e8">QwtDoubleRange::setValue</a>), or it can be fitted into a step raster (see <a class="el" href="class_qwt_double_range.html#63bc8ea5e7ecd776b7d32d21db1ea668">QwtDoubleRange::fitValue</a> and <a class="el" href="class_qwt_double_range.html#299c35c72e9b69f5a0e3dcd2b7da775b">QwtDoubleRange::incValue</a>).<p>As a special case, a <a class="el" href="class_qwt_double_range.html">QwtDoubleRange</a> can be periodic, which means that a value outside the interval will be mapped to a value inside the interval when <a class="el" href="class_qwt_double_range.html#f6a3aa74c970a2bef29f0c1af99720e8">QwtDoubleRange::setValue()</a>, <a class="el" href="class_qwt_double_range.html#63bc8ea5e7ecd776b7d32d21db1ea668">QwtDoubleRange::fitValue()</a>, <a class="el" href="class_qwt_double_range.html#299c35c72e9b69f5a0e3dcd2b7da775b">QwtDoubleRange::incValue()</a> or <a class="el" href="class_qwt_double_range.html#19b85337d4ab0b5f0579b02e4fb29a8f">QwtDoubleRange::incPages()</a> are called. <p><p>Definition at line <a class="el" href="qwt__double__range_8h-source.html#l00031">31</a> of file <a class="el" href="qwt__double__range_8h-source.html">qwt_double_range.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_double_range.html#86f9f76df03d7917d88a95d1667f2d72">QwtDoubleRange</a> ()</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_double_range.html#bdcecda4b14ba81cfdaf063e2b98a22d">~QwtDoubleRange</a> ()</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_double_range.html#43891011664b74b8e5454763a3f5ff21">setRange</a> (double vmin, double vmax, double vstep=0.0, int pagesize=1)</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_double_range.html#50a9c386663e170016a74cf8ee28ab8f">setValid</a> (bool)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_double_range.html#fc4921deb3f68a64cc08b0654a040bc6">isValid</a> () const </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_double_range.html#f6a3aa74c970a2bef29f0c1af99720e8">setValue</a> (double)</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_double_range.html#7777cf257c812579c4891512f1b6cad0">value</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_double_range.html#95fa6a4e44fc47726d939155bb6f6f1f">setPeriodic</a> (bool tf)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_double_range.html#d1efbcbf29dbc74f3f378292b76b007b">periodic</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_double_range.html#29ed5fc66439def424a8ad773eea285d">setStep</a> (double)</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_double_range.html#0cb8cc60548c10cb1d98e54387961967">step</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_double_range.html#215275a1a8b4218a424ee8444c7fe409">maxValue</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_double_range.html#8b8650a6f8a96144d3af21207ee71637">minValue</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_double_range.html#c12a5c43dc5839913379982ec40a39d8">pageSize</a> () const </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_double_range.html#299c35c72e9b69f5a0e3dcd2b7da775b">incValue</a> (int)</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_double_range.html#19b85337d4ab0b5f0579b02e4fb29a8f">incPages</a> (int)</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_double_range.html#63bc8ea5e7ecd776b7d32d21db1ea668">fitValue</a> (double)</td></tr><tr><td colspan="2"><br><h2>Protected Member Functions</h2></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_double_range.html#705b76d28882d37bc5313d6c38c9a720">exactValue</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_double_range.html#595c04ed863eb7f0adaf94440087fe0a">exactPrevValue</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_double_range.html#38768187bef94dd5e5a2c8664746b365">prevValue</a> () const </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_double_range.html#1d50398342d6aa1d9cd86650ee29aff8">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_double_range.html#86641f8755ed172ca4cf72d36df539ca">stepChange</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_double_range.html#3583134a1ac32706aa4742088bb9d4dc">rangeChange</a> ()</td></tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="86f9f76df03d7917d88a95d1667f2d72"></a><!-- doxytag: member="QwtDoubleRange::QwtDoubleRange" ref="86f9f76df03d7917d88a95d1667f2d72" 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">QwtDoubleRange::QwtDoubleRange           </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></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The range is initialized to [0.0, 100.0], the step size to 1.0, and the value to 0.0. <p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00021">21</a> of file <a class="el" href="qwt__double__range_8cpp-source.html">qwt_double_range.cpp</a>.    </td>  </tr></table><a class="anchor" name="bdcecda4b14ba81cfdaf063e2b98a22d"></a><!-- doxytag: member="QwtDoubleRange::~QwtDoubleRange" ref="bdcecda4b14ba81cfdaf063e2b98a22d" 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">QwtDoubleRange::~QwtDoubleRange           </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>Destroys the <a class="el" href="class_qwt_double_range.html">QwtDoubleRange</a>. <p><p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00036">36</a> of file <a class="el" href="qwt__double__range_8cpp-source.html">qwt_double_range.cpp</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="595c04ed863eb7f0adaf94440087fe0a"></a><!-- doxytag: member="QwtDoubleRange::exactPrevValue" ref="595c04ed863eb7f0adaf94440087fe0a" 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::exactPrevValue           </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<code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the exact previous value. <p><p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00380">380</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#l00305">QwtAbstractSlider::mouseMoveEvent()</a>.    </td>  </tr></table><a class="anchor" name="705b76d28882d37bc5313d6c38c9a720"></a><!-- doxytag: member="QwtDoubleRange::exactValue" ref="705b76d28882d37bc5313d6c38c9a720" 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::exactValue           </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<code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the exact value. <p>The exact value is the value which <a class="el" href="class_qwt_double_range.html#7777cf257c812579c4891512f1b6cad0">QwtDoubleRange::value</a> would return if the value were not adjusted to the step raster. It differs from the current value only if <a class="el" href="class_qwt_double_range.html#63bc8ea5e7ecd776b7d32d21db1ea668">QwtDoubleRange::fitValue</a> or <a class="el" href="class_qwt_double_range.html#299c35c72e9b69f5a0e3dcd2b7da775b">QwtDoubleRange::incValue</a> have been used before. This function is intended for internal use in derived classes. <p>Definition at line <a class="el" href="qwt__double__range_8cpp-source.html#l00374">374</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#l00305">QwtAbstractSlider::mouseMoveEvent()</a>, and <a class="el" href="qwt__abstract__slider_8cpp-source.html#l00417">QwtAbstractSlider::timerEvent()</a>.    </td>  </tr></table><a class="anchor" name="63bc8ea5e7ecd776b7d32d21db1ea668"></a><!-- doxytag: member="QwtDoubleRange::fitValue" ref="63bc8ea5e7ecd776b7d32d21db1ea668" 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::fitValue           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>x</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>

⌨️ 快捷键说明

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