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

📄 class_qwt_double_interval.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: QwtDoubleInterval 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>QwtDoubleInterval Class Reference</h1><!-- doxytag: class="QwtDoubleInterval" --><a href="class_qwt_double_interval-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>A class representing an interval. <p>The interval is represented by 2 doubles, the lower and the upper limit. <p><p>Definition at line <a class="el" href="qwt__double__interval_8h-source.html#l00021">21</a> of file <a class="el" href="qwt__double__interval_8h-source.html">qwt_double_interval.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_interval.html#d07ae136fc65e6ad566b482274705cf2">QwtDoubleInterval</a> ()</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_interval.html#bd54f6f95ab5fb8f77ee1e7354b74620">QwtDoubleInterval</a> (double minValue, double maxValue)</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_interval.html#a824f64ce1f33a025d60e1810c956f09">setInterval</a> (double minValue, double maxValue)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_double_interval.html#e4735252fef79bff0bda2dc61fb886c2">normalized</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_double_interval.html#ad0ecc63759dd0cded108b111649601e">inverted</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_double_interval.html#01ad17798ad6236638a16771405075cd">limited</a> (double minValue, double maxValue) 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_interval.html#b373610a84a4cde4fa42afb0c4b4d603">operator==</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;) 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_interval.html#682025b4426f142207a112b3e7de7a71">operator!=</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;) 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_interval.html#2d7d56e81ee75911f176c94f6aaf4b8b">minValue</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_interval.html#8fd8629d76f24d5494e59458cd79c4e2">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_interval.html#b5d610e0d1fc9a5a3bc020dd39326327">width</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_interval.html#610a87e9921738cf3a4ef1f4cbd96f02">setMinValue</a> (double)</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_interval.html#34863ae20465138c887f6de55a5f1bed">setMaxValue</a> (double)</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_interval.html#8468036025b90b7b420722c2bd165fcb">contains</a> (double value) const </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_interval.html#f5e38d3d8fe79ca8f137df616e36b5d7">intersects</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_double_interval.html#52488d71ecc5dee5ea0a4106bd7901f4">intersect</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_double_interval.html#f6f3a0baf79d261237fb4aca2f099716">unite</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_double_interval.html#6d7180c27b35aa577edbab066280be6e">operator|</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_double_interval.html#35be3184a64ddd4c1180c26a54d1c438">operator &amp;</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="08451058f63dd6b4f8e5a23ba955454a"></a><!-- doxytag: member="QwtDoubleInterval::operator|=" ref="08451058f63dd6b4f8e5a23ba955454a" args="(const QwtDoubleInterval &amp;)" --><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_double_interval.html#08451058f63dd6b4f8e5a23ba955454a">operator|=</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7faf407a4d6fcfbd15e7d1c425293908"></a><!-- doxytag: member="QwtDoubleInterval::operator &amp;=" ref="7faf407a4d6fcfbd15e7d1c425293908" args="(const QwtDoubleInterval &amp;)" --><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_double_interval.html#7faf407a4d6fcfbd15e7d1c425293908">operator &amp;=</a> (const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_double_interval.html#718e883366caa45e24b2ba4b9d529f11">extend</a> (double value) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_double_interval.html#00056b9d5a76b8f0e58003b7aa3307af">operator|</a> (double) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a65305f7334c0ab9507a5948d1d384e8"></a><!-- doxytag: member="QwtDoubleInterval::operator|=" ref="a65305f7334c0ab9507a5948d1d384e8" args="(double)" --><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_double_interval.html#a65305f7334c0ab9507a5948d1d384e8">operator|=</a> (double)</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_interval.html#311402213e243b809008faaec00507d5">isValid</a> () const </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_interval.html#fed126a2f37a7a9487574de8c55ab722">isNull</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_interval.html#4e182e414b506ebbad083a2005c0614c">invalidate</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_double_interval.html#762d619c1af104da8b73c6009b7cd669">symmetrize</a> (double value) const </td></tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="d07ae136fc65e6ad566b482274705cf2"></a><!-- doxytag: member="QwtDoubleInterval::QwtDoubleInterval" ref="d07ae136fc65e6ad566b482274705cf2" 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">QwtDoubleInterval::QwtDoubleInterval           </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> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Default Constructor. <p>Creates an invalid interval [0.0, -1.0] <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_double_interval.html#a824f64ce1f33a025d60e1810c956f09">setInterval</a>, <a class="el" href="class_qwt_double_interval.html#311402213e243b809008faaec00507d5">isValid</a> </dd></dl><p>Definition at line <a class="el" href="qwt__double__interval_8h-source.html#l00077">77</a> of file <a class="el" href="qwt__double__interval_8h-source.html">qwt_double_interval.h</a>.<p>Referenced by <a class="el" href="qwt__double__interval_8cpp-source.html#l00185">extend()</a>, <a class="el" href="qwt__double__interval_8cpp-source.html#l00083">intersect()</a>, <a class="el" href="qwt__double__interval_8cpp-source.html#l00043">inverted()</a>, <a class="el" href="qwt__double__interval_8cpp-source.html#l00159">limited()</a>, <a class="el" href="qwt__double__interval_8cpp-source.html#l00028">normalized()</a>, <a class="el" href="qwt__double__interval_8cpp-source.html#l00140">symmetrize()</a>, and <a class="el" href="qwt__double__interval_8cpp-source.html#l00063">unite()</a>.    </td>  </tr></table><a class="anchor" name="bd54f6f95ab5fb8f77ee1e7354b74620"></a><!-- doxytag: member="QwtDoubleInterval::QwtDoubleInterval" ref="bd54f6f95ab5fb8f77ee1e7354b74620" args="(double minValue, double maxValue)" --><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">QwtDoubleInterval::QwtDoubleInterval           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname" nowrap> <em>minValue</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>double&nbsp;</td>          <td class="mdname" nowrap> <em>maxValue</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Constructor<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>minValue</em>&nbsp;</td><td>Minimum value </td></tr>    <tr><td valign="top"></td><td valign="top"><em>maxValue</em>&nbsp;</td><td>Maximum value </td></tr>  </table></dl><p>Definition at line <a class="el" href="qwt__double__interval_8h-source.html#l00089">89</a> of file <a class="el" href="qwt__double__interval_8h-source.html">qwt_double_interval.h</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="8468036025b90b7b420722c2bd165fcb"></a><!-- doxytag: member="QwtDoubleInterval::contains" ref="8468036025b90b7b420722c2bd165fcb" args="(double value) 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 QwtDoubleInterval::contains           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>value</em>          </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>Test if a value is inside an interval<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>&nbsp;</td><td>Value </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>true, if value &gt;= <a class="el" href="class_qwt_double_interval.html#2d7d56e81ee75911f176c94f6aaf4b8b">minValue()</a> &amp;&amp; value &lt;= <a class="el" href="class_qwt_double_interval.html#8fd8629d76f24d5494e59458cd79c4e2">maxValue()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__double__interval_8cpp-source.html#l00054">54</a> of file <a class="el" href="qwt__double__interval_8cpp-source.html">qwt_double_interval.cpp</a>.<p>References <a class="el" href="qwt__double__interval_8h-source.html#l00200">isValid()</a>.    </td>  </tr></table><a class="anchor" name="718e883366caa45e24b2ba4b9d529f11"></a><!-- doxytag: member="QwtDoubleInterval::extend" ref="718e883366caa45e24b2ba4b9d529f11" args="(double value) 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_double_interval.html">QwtDoubleInterval</a> QwtDoubleInterval::extend           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>value</em>          </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>Extend the interval<p>If value is below minValue, value becomes the lower limit. If value is above maxValue, value becomes the upper limit.<p>extend has no effect for invalid intervals<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>&nbsp;</td><td>Value </td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_double_interval.html#311402213e243b809008faaec00507d5">isValid</a> </dd></dl><p>Definition at line <a class="el" href="qwt__double__interval_8cpp-source.html#l00185">185</a> of file <a class="el" href="qwt__double__interval_8cpp-source.html">qwt_double_interval.cpp</a>.<p>References <a class="el" href="qwt__double__interval_8h-source.html#l00200">isValid()</a>, and <a class="el" href="qwt__double__interval_8h-source.html#l00077">QwtDoubleInterval()</a>.<p>

⌨️ 快捷键说明

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