📄 class_qwt_scale_draw.html
字号:
<td class="md"></td> <td class="md" nowrap>int & </td> <td class="mdname" nowrap> <em>start</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int & </td> <td class="mdname" nowrap> <em>end</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Determine the minimum border distance. <p>This member function returns the minimum space needed to draw the mark labels 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>font</em> </td><td>Font </td></tr> <tr><td valign="top"></td><td valign="top"><em>start</em> </td><td>Start border distance </td></tr> <tr><td valign="top"></td><td valign="top"><em>end</em> </td><td>End border distance </td></tr> </table></dl><p>Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00139">139</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.<p>References <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00098">QwtAbstractScaleDraw::hasComponent()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00717">labelRect()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00125">QwtAbstractScaleDraw::map()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00115">orientation()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00137">QwtAbstractScaleDraw::scaleDiv()</a>, and <a class="el" href="qwt__scale__div_8cpp-source.html#l00139">QwtScaleDiv::ticks()</a>.<p>Referenced by <a class="el" href="qwt__slider_8cpp-source.html#l00546">QwtSlider::layoutSlider()</a>, <a class="el" href="qwt__thermo_8cpp-source.html#l00223">QwtThermo::layoutThermo()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00777">QwtSlider::minimumSizeHint()</a>, and <a class="el" href="qwt__scale__draw_8cpp-source.html#l00318">minLength()</a>. </td> </tr></table><a class="anchor" name="d024fd550ecc3816ee8886417794aae2"></a><!-- doxytag: member="QwtScaleDraw::labelAlignment" ref="d024fd550ecc3816ee8886417794aae2" 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">Qt::Alignment QwtScaleDraw::labelAlignment </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</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>the label flags </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#3df0a1fe4a498ef028a5348e54bfaa7f">setLabelAlignment()</a>, <a class="el" href="class_qwt_scale_draw.html#614f18b99f53e6a6282c39f95388face">labelRotation()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00834">834</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.<p>Referenced by <a class="el" href="qwt__scale__draw_8cpp-source.html#l00646">labelMatrix()</a>. </td> </tr></table><a class="anchor" name="a7b143ec69b0fe088b7532551bc23a23"></a><!-- doxytag: member="QwtScaleDraw::labelMatrix" ref="a7b143ec69b0fe088b7532551bc23a23" args="(const QPoint &, const QSize &) 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">QMatrix QwtScaleDraw::labelMatrix </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const QPoint & </td> <td class="mdname" nowrap> <em>pos</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const QSize & </td> <td class="mdname" nowrap> <em>size</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>Calculate the matrix that is needed to paint a label depending on its alignment and rotation.<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>pos</em> </td><td>Position where to paint the label </td></tr> <tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>Size of the label</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_scale_draw.html#3df0a1fe4a498ef028a5348e54bfaa7f">setLabelAlignment()</a>, <a class="el" href="class_qwt_scale_draw.html#bf5881339fddde65a00c1dd391023320">setLabelRotation()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00646">646</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.<p>References <a class="el" href="qwt__scale__draw_8cpp-source.html#l00091">alignment()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00834">labelAlignment()</a>, and <a class="el" href="qwt__scale__draw_8cpp-source.html#l00788">labelRotation()</a>.<p>Referenced by <a class="el" href="qwt__scale__draw_8cpp-source.html#l00612">drawLabel()</a>. </td> </tr></table><a class="anchor" name="7ee2b666ec683fedef896ba940af0983"></a><!-- doxytag: member="QwtScaleDraw::labelPosition" ref="7ee2b666ec683fedef896ba940af0983" args="(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">QPoint QwtScaleDraw::labelPosition </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">double </td> <td class="mdname1" valign="top" nowrap> <em>value</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>Find the position, where to paint a label<p>The position has a distance of <a class="el" href="class_qwt_abstract_scale_draw.html#70d03241a4502cf546c5075d28658601">majTickLength()</a> + <a class="el" href="class_qwt_abstract_scale_draw.html#b31323219c1a750adde91470698cfa0f">spacing()</a> + 1 from the backbone. The direction depends on the <a class="el" href="class_qwt_scale_draw.html#d0425d29e919f60021322b178661b6e5">alignment()</a><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>value</em> </td><td>Value </td></tr> </table></dl><p>Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00356">356</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.<p>References <a class="el" href="qwt__scale__draw_8cpp-source.html#l00091">alignment()</a>, <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00098">QwtAbstractScaleDraw::hasComponent()</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__abstract__scale__draw_8cpp-source.html#l00262">QwtAbstractScaleDraw::spacing()</a>, and <a class="el" href="qwt__scale__map_8h-source.html#l00175">QwtScaleMap::transform()</a>.<p>Referenced by <a class="el" href="qwt__scale__draw_8cpp-source.html#l00612">drawLabel()</a>, and <a class="el" href="qwt__scale__draw_8cpp-source.html#l00717">labelRect()</a>. </td> </tr></table><a class="anchor" name="4c04330f45af01bb950ba0490681715f"></a><!-- doxytag: member="QwtScaleDraw::labelRect" ref="4c04330f45af01bb950ba0490681715f" args="(const QFont &, 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">QRect QwtScaleDraw::labelRect </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const QFont & </td> <td class="mdname" nowrap> <em>font</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>value</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Find the bounding rect for the label. The coordinates of the rect are relative to spacing + ticklength from the backbone in direction of the 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>font</em> </td><td>Font used for painting </td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value </td></tr> </table></dl><p>Definition at line <a class="el" href="qwt__scale__draw_8cpp-source.html#l00717">717</a> of file <a class="el" href="qwt__scale__draw_8cpp-source.html">qwt_scale_draw.cpp</a>.<p>References <a class="el" href="qwt__text_8h-source.html#l00152">QwtText::isEmpty()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00356">labelPosition()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00761">labelSize()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00576">pos()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00510">QwtText::textSize()</a>, and <a class="el" href="qwt__abstract__scale__draw_8cpp-source.html#l00377">QwtAbstractScaleDraw::tickLabel()</a>.<p>Referenced by <a class="el" href="qwt__scale__draw_8cpp-source.html#l00139">getBorderDistHint()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00761">labelSize()</a>, and <a class="el" href="qwt__scale__draw_8cpp-source.html#l00192">minLabelDist()</a>. </td> </tr></table><a class="anchor" name="614f18b99f53e6a6282c39f95388face"></a><!-- doxytag: member="QwtScaleDraw::labelRotation" ref="614f18b99f53e6a6282c39f95388face" 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 QwtScaleDraw::labelRotation </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</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -