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

📄 class_qwt_scale_engine.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<p>Build an interval for a value. <p>In case of v == 0.0 the interval is [-0.5, 0.5], otherwide it is [0.5 * v, 1.5 * v] <p>Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00309">309</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.<p>Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00636">QwtLog10ScaleEngine::autoScale()</a>, and <a class="el" href="qwt__scale__engine_8cpp-source.html#l00423">QwtLinearScaleEngine::autoScale()</a>.    </td>  </tr></table><a class="anchor" name="fb902375924c862f1058f77bb7a7029e"></a><!-- doxytag: member="QwtScaleEngine::contains" ref="fb902375924c862f1058f77bb7a7029e" args="(const QwtDoubleInterval &amp;, double val) 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 QwtScaleEngine::contains           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="class_qwt_double_interval.html">QwtDoubleInterval</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>interval</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>value</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Check if an interval "contains" a 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>interval</em>&nbsp;</td><td>Interval </td></tr>    <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_scale_arithmetic.html#6c6f982022550fba9ccee034f87461ce">QwtScaleArithmetic::compareEps</a> </dd></dl><p>Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00251">251</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.<p>References <a class="el" href="qwt__scale__engine_8cpp-source.html#l00028">QwtScaleArithmetic::compareEps()</a>, <a class="el" href="qwt__double__interval_8h-source.html#l00200">QwtDoubleInterval::isValid()</a>, <a class="el" href="qwt__double__interval_8h-source.html#l00134">QwtDoubleInterval::maxValue()</a>, <a class="el" href="qwt__double__interval_8h-source.html#l00128">QwtDoubleInterval::minValue()</a>, and <a class="el" href="qwt__double__interval_8h-source.html#l00146">QwtDoubleInterval::width()</a>.<p>Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00280">strip()</a>.    </td>  </tr></table><a class="anchor" name="ff30158c5ccfee78f4c3e01c0fb5f4de"></a><!-- doxytag: member="QwtScaleEngine::divideInterval" ref="ff30158c5ccfee78f4c3e01c0fb5f4de" args="(double interval, int numSteps) 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 QwtScaleEngine::divideInterval           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname" nowrap> <em>intervalSize</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>numSteps</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Calculate a step size for an interval size<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>intervalSize</em>&nbsp;</td><td>Interval size </td></tr>    <tr><td valign="top"></td><td valign="top"><em>numSteps</em>&nbsp;</td><td>Number of steps</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Step size </dd></dl><p>Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00233">233</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.<p>References <a class="el" href="qwt__scale__engine_8cpp-source.html#l00098">QwtScaleArithmetic::ceil125()</a>, and <a class="el" href="qwt__scale__engine_8cpp-source.html#l00084">QwtScaleArithmetic::divideEps()</a>.<p>Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00636">QwtLog10ScaleEngine::autoScale()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00423">QwtLinearScaleEngine::autoScale()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00693">QwtLog10ScaleEngine::divideScale()</a>, and <a class="el" href="qwt__scale__engine_8cpp-source.html#l00468">QwtLinearScaleEngine::divideScale()</a>.    </td>  </tr></table><a class="anchor" name="833fbdad4cce6e3b6448ee2549dc09e1"></a><!-- doxytag: member="QwtScaleEngine::divideScale" ref="833fbdad4cce6e3b6448ee2549dc09e1" args="(double x1, double x2, int maxMajSteps, int maxMinSteps, double stepSize=0.0) const =0" --><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">virtual <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> QwtScaleEngine::divideScale           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname" nowrap> <em>x1</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>x2</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>maxMajSteps</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>maxMinSteps</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>stepSize</em> = <code>0.0</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [pure virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Calculate a scale division. <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>x1</em>&nbsp;</td><td>First interval limit </td></tr>    <tr><td valign="top"></td><td valign="top"><em>x2</em>&nbsp;</td><td>Second interval limit </td></tr>    <tr><td valign="top"></td><td valign="top"><em>maxMajSteps</em>&nbsp;</td><td>Maximum for the number of major steps </td></tr>    <tr><td valign="top"></td><td valign="top"><em>maxMinSteps</em>&nbsp;</td><td>Maximum number of minor steps </td></tr>    <tr><td valign="top"></td><td valign="top"><em>stepSize</em>&nbsp;</td><td>Step size. If stepSize == 0.0, the scaleEngine calculates one. </td></tr>  </table></dl><p>Implemented in <a class="el" href="class_qwt_linear_scale_engine.html#afed94c688e67c95a6ecf18e8bb522ab">QwtLinearScaleEngine</a>, and <a class="el" href="class_qwt_log10_scale_engine.html#e46745d561ce2ac583bb44e94f0fc7d6">QwtLog10ScaleEngine</a>.    </td>  </tr></table><a class="anchor" name="a1e2d260975cef6546a3829213bc5f2f"></a><!-- doxytag: member="QwtScaleEngine::hiMargin" ref="a1e2d260975cef6546a3829213bc5f2f" 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 QwtScaleEngine::hiMargin           </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><dl compact><dt><b>Returns:</b></dt><dd>the margin at the upper end of the scale The default margin is 0.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#d6e83875e5e7a65b005ebb6213e1e869">QwtScaleEngine::setMargins()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00198">198</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.<p>Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00636">QwtLog10ScaleEngine::autoScale()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00423">QwtLinearScaleEngine::autoScale()</a>, and <a class="el" href="qwt__scale__engine_8cpp-source.html#l00693">QwtLog10ScaleEngine::divideScale()</a>.    </td>  </tr></table><a class="anchor" name="51447104ab614a157c2bac6a0f0f7dc9"></a><!-- doxytag: member="QwtScaleEngine::loMargin" ref="51447104ab614a157c2bac6a0f0f7dc9" 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 QwtScaleEngine::loMargin           </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><dl compact><dt><b>Returns:</b></dt><dd>the margin at the lower end of the scale The default margin is 0.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#d6e83875e5e7a65b005ebb6213e1e869">QwtScaleEngine::setMargins()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00187">187</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.<p>Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00636">QwtLog10ScaleEngine::autoScale()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00423">QwtLinearScaleEngine::autoScale()</a>, and <a class="el" href="qwt__scale__engine_8cpp-source.html#l00693">QwtLog10ScaleEngine::divideScale()</a>.    </td>  </tr></table><a class="anchor" name="5962458870865df797e84e3bd6badf02"></a><!-- doxytag: member="QwtScaleEngine::reference" ref="5962458870865df797e84e3bd6badf02" 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 QwtScaleEngine::reference           </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><dl compact><dt><b>Returns:</b></dt><dd>the reference value </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#89985ea69dbd858c8b9162ecd2be936e">QwtScaleEngine::setReference()</a>, QwtScaleEngine::setOptions() </dd></dl><p>Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00400">400</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.<p>Referenced by <a class="el" href="qwt__scale__engine_8cpp-source.html#l00636">QwtLog10ScaleEngine::autoScale()</a>, <a class="el" href="qwt__scale__engine_8cpp-source.html#l00423">QwtLinearScaleEngine::autoScale()</a>, and <a class="el" href="qwt__scale__engine_8cpp-source.html#l00693">QwtLog10ScaleEngine::divideScale()</a>.    </td>  </tr></table><a class="anchor" name="cf02a88f6e778edbc9e005960f35b3b7"></a><!-- doxytag: member="QwtScaleEngine::setAttribute" ref="cf02a88f6e778edbc9e005960f35b3b7" args="(Attribute, bool on=true)" --><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 QwtScaleEngine::setAttribute           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="class_qwt_scale_engine.html#7548418e0896d75eec164bfa2ba3ff5f">Attribute</a>&nbsp;</td>          <td class="mdname" nowrap> <em>attribute</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>bool&nbsp;</td>          <td class="mdname" nowrap> <em>on</em> = <code>true</code></td>        </tr>        <tr>

⌨️ 快捷键说明

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