📄 class_qwt_scale_engine.html
字号:
<td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </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> </td><td>Attribute to change </td></tr> <tr><td valign="top"></td><td valign="top"><em>on</em> </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">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>attributes</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </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> </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">( </td> <td class="md" nowrap valign="top">double </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 </td> <td class="mdname" nowrap> <em>mhi</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </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> </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> </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">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname1" valign="top" nowrap> <em>r</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </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> </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 &, const QwtDoubleInterval &) 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">( </td> <td class="md" nowrap valign="top">const QwtValueList & </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> & </td> <td class="mdname" nowrap> <em>interval</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </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> </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> </td><td>Tick list </td></tr> <tr><td valign="top"></td><td valign="top"><em>interval</em> </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">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_qwt_scale_engine.html#7548418e0896d75eec164bfa2ba3ff5f">Attribute</a> </td> <td class="mdname1" valign="top" nowrap> <em>attribute</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </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> </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">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </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> </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 <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 + -