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

📄 class_qwt_round_scale_draw.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 3 页
字号:
    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void QwtRoundScaleDraw::drawBackbone           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>painter</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Draws the baseline of the scale <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>painter</em>&nbsp;</td><td>Painter</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_round_scale_draw.html#a4f77a6cbb019ca42f857bf2019acff2">drawTick()</a>, <a class="el" href="class_qwt_round_scale_draw.html#a43bf3624c464727bb4f0cab28c3f6fe">drawLabel()</a> </dd></dl><p>Implements <a class="el" href="class_qwt_abstract_scale_draw.html#15994a6033e689c3acdb8d83ae4f2a1c">QwtAbstractScaleDraw</a>.<p>Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00241">241</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.<p>References <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00125">QwtAbstractScaleDraw::map()</a>, and <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00096">radius()</a>.    </td>  </tr></table><a class="anchor" name="a43bf3624c464727bb4f0cab28c3f6fe"></a><!-- doxytag: member="QwtRoundScaleDraw::drawLabel" ref="a43bf3624c464727bb4f0cab28c3f6fe" args="(QPainter *p, 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">void QwtRoundScaleDraw::drawLabel           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>          <td class="mdname" nowrap> <em>painter</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, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Draws the label for a major scale tick<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>painter</em>&nbsp;</td><td>Painter </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_round_scale_draw.html#a4f77a6cbb019ca42f857bf2019acff2">drawTick()</a>, <a class="el" href="class_qwt_round_scale_draw.html#845dc48b006ee168415112f39e80da09">drawBackbone()</a> </dd></dl><p>Implements <a class="el" href="class_qwt_abstract_scale_draw.html#a78dc8bf05a0224450c947af54128d8d">QwtAbstractScaleDraw</a>.<p>Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00162">162</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.<p>References <a class="el" href="qwt__text_8cpp-source.html#l00564">QwtText::draw()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00098">QwtAbstractScaleDraw::hasComponent()</a>, <a class="el" href="qwt__text_8h-source.html#l00152">QwtText::isEmpty()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00359">QwtAbstractScaleDraw::label()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00344">QwtAbstractScaleDraw::majTickLength()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00125">QwtAbstractScaleDraw::map()</a>, <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00096">radius()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00262">QwtAbstractScaleDraw::spacing()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00510">QwtText::textSize()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00377">QwtAbstractScaleDraw::tickLabel()</a>, and <a class="el" href="qwt__scale__map_8h-source.html#l00175">QwtScaleMap::transform()</a>.    </td>  </tr></table><a class="anchor" name="a4f77a6cbb019ca42f857bf2019acff2"></a><!-- doxytag: member="QwtRoundScaleDraw::drawTick" ref="a4f77a6cbb019ca42f857bf2019acff2" args="(QPainter *p, double val, int len) 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">void QwtRoundScaleDraw::drawTick           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>          <td class="mdname" nowrap> <em>painter</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" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>len</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Draw a tick<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>painter</em>&nbsp;</td><td>Painter </td></tr>    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>Value of the tick </td></tr>    <tr><td valign="top"></td><td valign="top"><em>len</em>&nbsp;</td><td>Lenght of the tick</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_round_scale_draw.html#845dc48b006ee168415112f39e80da09">drawBackbone()</a>, <a class="el" href="class_qwt_round_scale_draw.html#a43bf3624c464727bb4f0cab28c3f6fe">drawLabel()</a> </dd></dl><p>Implements <a class="el" href="class_qwt_abstract_scale_draw.html#4adcd2617a57eebfca522661fe89264c">QwtAbstractScaleDraw</a>.<p>Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00207">207</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.<p>References <a class="el" href="qwt__painter_8cpp-source.html#l00437">QwtPainter::drawLine()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00125">QwtAbstractScaleDraw::map()</a>, <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00096">radius()</a>, and <a class="el" href="qwt__scale__map_8h-source.html#l00175">QwtScaleMap::transform()</a>.    </td>  </tr></table><a class="anchor" name="50f5d69dceab6ccf5e00bd2a7953d897"></a><!-- doxytag: member="QwtRoundScaleDraw::extent" ref="50f5d69dceab6ccf5e00bd2a7953d897" args="(const QPen &amp;, const QFont &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">int QwtRoundScaleDraw::extent           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QPen &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>pen</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QFont &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>font</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>Calculate the extent of the scale<p>The extent is the distcance between the baseline to the outermost pixel of the scale draw. <a class="el" href="class_qwt_round_scale_draw.html#2eb03d12749a44f7ca8a8ff92514dd56">radius()</a> + <a class="el" href="class_qwt_round_scale_draw.html#50f5d69dceab6ccf5e00bd2a7953d897">extent()</a> is an upper limit for the radius of the bounding circle.<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>pen</em>&nbsp;</td><td>Pen that is used for painting backbone and ticks </td></tr>    <tr><td valign="top"></td><td valign="top"><em>font</em>&nbsp;</td><td>Font used for painting the labels</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_abstract_scale_draw.html#2a9633476aa1c99e25fa07d87db3e415">setMinimumExtent()</a>, <a class="el" href="class_qwt_abstract_scale_draw.html#f7b927390d71f291fa03186eff79e201">minimumExtent()</a> </dd></dl><dl compact><dt><b>Warning:</b></dt><dd>The implemented algo is not too smart and calculates only an upper limit, that might be a few pixels too large </dd></dl><p>Implements <a class="el" href="class_qwt_abstract_scale_draw.html#30d94435166524c011765fa75a1ed45f">QwtAbstractScaleDraw</a>.<p>Definition at line <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00269">269</a> of file <a class="el" href="qwt__round__scale__draw_8cpp-source.html">qwt_round_scale_draw.cpp</a>.<p>References <a class="el" href="qwt__scale__div_8cpp-source.html#l00106">QwtScaleDiv::contains()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00098">QwtAbstractScaleDraw::hasComponent()</a>, <a class="el" href="qwt__text_8h-source.html#l00152">QwtText::isEmpty()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00359">QwtAbstractScaleDraw::label()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00125">QwtAbstractScaleDraw::map()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00137">QwtAbstractScaleDraw::scaleDiv()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00510">QwtText::textSize()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00377">QwtAbstractScaleDraw::tickLabel()</a>, <a class="el" href="qwt__scale__div_8cpp-source.html#l00139">QwtScaleDiv::ticks()</a>, and <a class="el" href="qwt__scale__map_8h-source.html#l00175">QwtScaleMap::transform()</a>.<p>Referenced by <a class="el" href="qwt__knob_8cpp-source.html#l00536">QwtKnob::minimumSizeHint()</a>.    </td>  </tr></table><a class="anchor" name="536cdecd6046e4a8434e117c9cd5c180"></a><!-- doxytag: member="QwtRoundScaleDraw::moveCenter" ref="536cdecd6046e4a8434e117c9cd5c180" args="(const QPoint &amp;)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">

⌨️ 快捷键说明

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