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

📄 class_qwt_scale_transformation.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
字号:
<!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: QwtScaleTransformation 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>QwtScaleTransformation Class Reference</h1><!-- doxytag: class="QwtScaleTransformation" --><a href="class_qwt_scale_transformation-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>Operations for linear or logarithmic (base 10) transformations. <p><p>Definition at line <a class="el" href="qwt__scale__map_8h-source.html#l00019">19</a> of file <a class="el" href="qwt__scale__map_8h-source.html">qwt_scale_map.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Types</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_transformation.html#5b4e85a0640906586b3180872aaeb786">Type</a> { <br>&nbsp;&nbsp;<b>Linear</b>, <br>&nbsp;&nbsp;<b>Log10</b>, <br>&nbsp;&nbsp;<b>Other</b><br> }</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_scale_transformation.html#b1e8473584fe5146322fd4a745727a5f">QwtScaleTransformation</a> (<a class="el" href="class_qwt_scale_transformation.html#5b4e85a0640906586b3180872aaeb786">Type</a> type)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2eccd8e538af9a3105f61f9f20a0ad8b"></a><!-- doxytag: member="QwtScaleTransformation::~QwtScaleTransformation" ref="2eccd8e538af9a3105f61f9f20a0ad8b" args="()" -->virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_transformation.html#2eccd8e538af9a3105f61f9f20a0ad8b">~QwtScaleTransformation</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_transformation.html#54768a41cd5d7867e74c0d0032e45ec2">xForm</a> (double x, double s1, double s2, double p1, double p2) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_transformation.html#7e2ba833b068f941d79d443bee769b42">invXForm</a> (double x, double s1, double s2, double p1, double p2) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8b8936e303f55241599ccbf358ab9215"></a><!-- doxytag: member="QwtScaleTransformation::type" ref="8b8936e303f55241599ccbf358ab9215" args="() const " --><a class="el" href="class_qwt_scale_transformation.html#5b4e85a0640906586b3180872aaeb786">Type</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_transformation.html#8b8936e303f55241599ccbf358ab9215">type</a> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ce4c90eefe778f87a11e0be1f27df0a6"></a><!-- doxytag: member="QwtScaleTransformation::copy" ref="ce4c90eefe778f87a11e0be1f27df0a6" args="() const " -->virtual <a class="el" href="class_qwt_scale_transformation.html">QwtScaleTransformation</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_scale_transformation.html#ce4c90eefe778f87a11e0be1f27df0a6">copy</a> () const </td></tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="b1e8473584fe5146322fd4a745727a5f"></a><!-- doxytag: member="QwtScaleTransformation::QwtScaleTransformation" ref="b1e8473584fe5146322fd4a745727a5f" args="(Type type)" --><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">QwtScaleTransformation::QwtScaleTransformation           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="class_qwt_scale_transformation.html#5b4e85a0640906586b3180872aaeb786">Type</a>&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>type</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>Constructor for a linear transformation. <p><p>Definition at line <a class="el" href="qwt__scale__map_8cpp-source.html#l00016">16</a> of file <a class="el" href="qwt__scale__map_8cpp-source.html">qwt_scale_map.cpp</a>.<p>References <a class="el" href="qwt__scale__map_8cpp-source.html#l00016">QwtScaleTransformation()</a>.<p>Referenced by <a class="el" href="qwt__scale__map_8cpp-source.html#l00016">QwtScaleTransformation()</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="7e2ba833b068f941d79d443bee769b42"></a><!-- doxytag: member="QwtScaleTransformation::invXForm" ref="7e2ba833b068f941d79d443bee769b42" args="(double x, double s1, double s2, double p1, double p2) 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 QwtScaleTransformation::invXForm           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname" nowrap> <em>p</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>p1</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>p2</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>s1</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>s2</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Transform a value from a linear to a logarithmic 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>x</em>&nbsp;</td><td>value related to the linear interval [p1, p2] </td></tr>    <tr><td valign="top"></td><td valign="top"><em>p1</em>&nbsp;</td><td>first border of linear interval </td></tr>    <tr><td valign="top"></td><td valign="top"><em>p2</em>&nbsp;</td><td>first border of linear interval </td></tr>    <tr><td valign="top"></td><td valign="top"><em>s1</em>&nbsp;</td><td>first border of logarithmic interval </td></tr>    <tr><td valign="top"></td><td valign="top"><em>s2</em>&nbsp;</td><td>first border of logarithmic interval </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd><dl><dt>exp((x - p1) / (p2 - p1) * log(s2 / s1)) * s1; </dt><dd></dd></dl></dd></dl><p>Definition at line <a class="el" href="qwt__scale__map_8cpp-source.html#l00070">70</a> of file <a class="el" href="qwt__scale__map_8cpp-source.html">qwt_scale_map.cpp</a>.<p>Referenced by <a class="el" href="qwt__scale__map_8h-source.html#l00163">QwtScaleMap::invTransform()</a>.    </td>  </tr></table><a class="anchor" name="54768a41cd5d7867e74c0d0032e45ec2"></a><!-- doxytag: member="QwtScaleTransformation::xForm" ref="54768a41cd5d7867e74c0d0032e45ec2" args="(double x, double s1, double s2, double p1, double p2) 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 QwtScaleTransformation::xForm           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname" nowrap> <em>s</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>s1</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>s2</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>p1</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>p2</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Transform a value between 2 linear 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>x</em>&nbsp;</td><td>value related to the interval [x1, x2] </td></tr>    <tr><td valign="top"></td><td valign="top"><em>x1</em>&nbsp;</td><td>first border of source interval </td></tr>    <tr><td valign="top"></td><td valign="top"><em>x2</em>&nbsp;</td><td>first border of source interval </td></tr>    <tr><td valign="top"></td><td valign="top"><em>y1</em>&nbsp;</td><td>first border of target interval </td></tr>    <tr><td valign="top"></td><td valign="top"><em>y2</em>&nbsp;</td><td>first border of target interval </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd><dl><dt>linear mapping:</dt><dd>y1 + (y2 - y1) / (x2 - x1) * (x - x1) </dd></dl><dl><dt>log10 mapping: </dt><dd>p1 + (p2 - p1) / log(s2 / s1) * log(x / s1) </dd></dl></dd></dl><p>Definition at line <a class="el" href="qwt__scale__map_8cpp-source.html#l00047">47</a> of file <a class="el" href="qwt__scale__map_8cpp-source.html">qwt_scale_map.cpp</a>.<p>Referenced by <a class="el" href="qwt__scale__map_8h-source.html#l00146">QwtScaleMap::xTransform()</a>.    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:25:54 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 + -