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

📄 class_qwt_scale_engine.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 3 页
字号:
          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Change a scale attribute<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>attribute</em>&nbsp;</td><td>Attribute to change </td></tr>    <tr><td valign="top"></td><td valign="top"><em>on</em>&nbsp;</td><td>On/Off</td></tr>  </table></dl>The behaviour of the scale engine can be changed with the following attributes: <dl><dt>QwtAutoscale::IncludeReference </dt><dd>Build a scale which includes the reference value. </dd><dt>QwtScaleEngine::Symmetric </dt><dd>Build a scale which is symmetric to the reference value. </dd><dt>QwtScaleEngine::Floating </dt><dd>The endpoints of the scale are supposed to be equal the outmost included values plus the specified margins (see <a class="el" href="class_qwt_scale_engine.html#d6e83875e5e7a65b005ebb6213e1e869">setMargins()</a>). If this attribute is not* set, the endpoints of the scale will be integer multiples of the step size. </dd><dt>QwtScaleEngine::Inverted </dt><dd>Turn the scale upside down. </dd></dl><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#b43cac5ff8843531bbb02b4401e8fb62">QwtScaleEngine::testAttribute()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00346">346</a> of file <a class="el" href="qwt__scale__engine_8cpp-source.html">qwt_scale_engine.cpp</a>.    </td>  </tr></table><a class="anchor" name="d221d715e28e644975c6cbda9cae492e"></a><!-- doxytag: member="QwtScaleEngine::setAttributes" ref="d221d715e28e644975c6cbda9cae492e" 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 QwtScaleEngine::setAttributes           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>attributes</em>          </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>Change the scale attribute<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>attributes</em>&nbsp;</td><td>Set scale attributes </td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#3e8d3101af3dbab7a97b96779118e428">QwtScaleEngine::attributes()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00371">371</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#l00693">QwtLog10ScaleEngine::divideScale()</a>.    </td>  </tr></table><a class="anchor" name="d6e83875e5e7a65b005ebb6213e1e869"></a><!-- doxytag: member="QwtScaleEngine::setMargins" ref="d6e83875e5e7a65b005ebb6213e1e869" args="(double m1, double m2)" --><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::setMargins           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname" nowrap> <em>mlo</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>mhi</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Specify margins at the scale's endpoints. <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>mlo</em>&nbsp;</td><td>minimum distance between the scale's lower boundary and the smallest enclosed value </td></tr>    <tr><td valign="top"></td><td valign="top"><em>mhi</em>&nbsp;</td><td>minimum distance between the scale's upper boundary and the greatest enclosed value</td></tr>  </table></dl>Margins can be used to leave a minimum amount of space between the enclosed intervals and the boundaries of the scale.<p><dl compact><dt><b>Warning:</b></dt><dd><ul><li><a class="el" href="class_qwt_log10_scale_engine.html">QwtLog10ScaleEngine</a> measures the margins in decades.</li></ul></dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#a1e2d260975cef6546a3829213bc5f2f">QwtScaleEngine::hiMargin</a>, <a class="el" href="class_qwt_scale_engine.html#51447104ab614a157c2bac6a0f0f7dc9">QwtScaleEngine::loMargin</a> </dd></dl><p>Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00219">219</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#l00693">QwtLog10ScaleEngine::divideScale()</a>.    </td>  </tr></table><a class="anchor" name="89985ea69dbd858c8b9162ecd2be936e"></a><!-- doxytag: member="QwtScaleEngine::setReference" ref="89985ea69dbd858c8b9162ecd2be936e" args="(double reference)" --><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::setReference           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>r</em>          </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>Specify a reference point. <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>r</em>&nbsp;</td><td>new reference value</td></tr>  </table></dl>The reference point is needed if options IncludeRef or Symmetric are active. Its default value is 0.0. <p>Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00391">391</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#l00693">QwtLog10ScaleEngine::divideScale()</a>.    </td>  </tr></table><a class="anchor" name="f4522cd83e7885f19d35579d42fbc1fc"></a><!-- doxytag: member="QwtScaleEngine::strip" ref="f4522cd83e7885f19d35579d42fbc1fc" args="(const QwtValueList &amp;, const QwtDoubleInterval &amp;) 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">QwtValueList QwtScaleEngine::strip           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QwtValueList &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>ticks</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>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"></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>Remove ticks from a list, that are not 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>ticks</em>&nbsp;</td><td>Tick list </td></tr>    <tr><td valign="top"></td><td valign="top"><em>interval</em>&nbsp;</td><td>Interval</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Stripped tick list </dd></dl><p>Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00280">280</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#l00251">contains()</a>, and <a class="el" href="qwt__double__interval_8h-source.html#l00200">QwtDoubleInterval::isValid()</a>.    </td>  </tr></table><a class="anchor" name="b43cac5ff8843531bbb02b4401e8fb62"></a><!-- doxytag: member="QwtScaleEngine::testAttribute" ref="b43cac5ff8843531bbb02b4401e8fb62" args="(Attribute) 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::testAttribute           </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="mdname1" valign="top" nowrap> <em>attribute</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>Check if a attribute is set.<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>attribute</em>&nbsp;</td><td>Attribute to be tested </td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_engine.html#cf02a88f6e778edbc9e005960f35b3b7">QwtScaleEngine::setAttribute()</a> for a description of the possible options. </dd></dl><p>Definition at line <a class="el" href="qwt__scale__engine_8cpp-source.html#l00360">360</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="04a93d0dc39a3483957764e7749989fd"></a><!-- doxytag: member="QwtScaleEngine::transformation" ref="04a93d0dc39a3483957764e7749989fd" args="() 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_transformation.html">QwtScaleTransformation</a>* QwtScaleEngine::transformation           </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> [pure virtual]</code></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>a transformation </dd></dl><p>Implemented in <a class="el" href="class_qwt_linear_scale_engine.html#db24f92fa0e8c0548a38cd310158b3d3">QwtLinearScaleEngine</a>, and <a class="el" href="class_qwt_log10_scale_engine.html#f972778615ea076c8452abea96516ce9">QwtLog10ScaleEngine</a>.    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:25:52 2007 for Qwt User's Guide by&nbsp;<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 + -