/usr/share/doc/liblasi-dev/html/classStringDimensions.html is in liblasi-dev 1.1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>LASi: StringDimensions 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.5.5 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>StringDimensions Class Reference</h1><!-- doxytag: class="StringDimensions" -->Class <a class="el" href="classStringDimensions.html" title="Class StringDimensions maintains the relevant dimensions of a text string realized...">StringDimensions</a> maintains the relevant dimensions of a text string realized (i.e., drawn) in a given font face and font size.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="stringDimensions_8h-source.html">stringDimensions.h</a>></code>
<p>
<p>
<a href="classStringDimensions-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringDimensions.html#f02b6588311f81d811e412e64b93b5c4">StringDimensions</a> (double xAdv=0.0, double yMin=0.0, double yMax=0.0, double spacingFactor=1.2)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringDimensions.html#6b48a8bd305aed180d61db7630f3da13">accrueXAdvance</a> (const double xAdv)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sum up the individual x advances of each glyph:. <a href="#6b48a8bd305aed180d61db7630f3da13"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringDimensions.html#3d79239053ab690c01c3bb26218e3760">setYMin</a> (const double yMin)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Keep a running tab on the minimum y value (descent) from all glyphs:. <a href="#3d79239053ab690c01c3bb26218e3760"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringDimensions.html#8e9a664f330178f3349a1bc42f17305f">setYMax</a> (const double yMax)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Keep a running tab on the maximum y value (ascent) from all glyphs:. <a href="#8e9a664f330178f3349a1bc42f17305f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const double </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringDimensions.html#101735d1edfc13a1a0a07a17b8fdcf50">getXAdvance</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const double </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringDimensions.html#98d0e88b63394326c9d2572c1f211b71">getYMin</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const double </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringDimensions.html#e37ed1d08e7ba5fffb03712190fdeb30">getYMax</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const double </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringDimensions.html#e8946f159633e58ffc71618adcb2a091">getLineSpacing</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Line spacing is just the maximum ascent minus the maximum descent multiplied by the line spacing factor:. <a href="#e8946f159633e58ffc71618adcb2a091"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringDimensions.html#41ee8226f88016fee772b111f5f99c75">xadv</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringDimensions.html#dd90080bcdecc910b8acb635afebd9a4">ymin</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringDimensions.html#d4de9c5572ca572491eef4e848c0b366">ymax</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringDimensions.html#1ce95e111d24ddcdd9e050f314bddcac">lineSpacingFactor</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Class <a class="el" href="classStringDimensions.html" title="Class StringDimensions maintains the relevant dimensions of a text string realized...">StringDimensions</a> maintains the relevant dimensions of a text string realized (i.e., drawn) in a given font face and font size.
<p>
Used internally by <a class="el" href="namespaceLASi.html">LASi</a>. <hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="f02b6588311f81d811e412e64b93b5c4"></a><!-- doxytag: member="StringDimensions::StringDimensions" ref="f02b6588311f81d811e412e64b93b5c4" args="(double xAdv=0.0, double yMin=0.0, double yMax=0.0, double spacingFactor=1.2)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">StringDimensions::StringDimensions </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"> <em>xAdv</em> = <code>0.0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"> <em>yMin</em> = <code>0.0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"> <em>yMax</em> = <code>0.0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"> <em>spacingFactor</em> = <code>1.2</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>References <a class="el" href="stringDimensions_8h-source.html#l00030">lineSpacingFactor</a>, <a class="el" href="stringDimensions_8h-source.html#l00027">xadv</a>, <a class="el" href="stringDimensions_8h-source.html#l00029">ymax</a>, and <a class="el" href="stringDimensions_8h-source.html#l00028">ymin</a>.</p>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="6b48a8bd305aed180d61db7630f3da13"></a><!-- doxytag: member="StringDimensions::accrueXAdvance" ref="6b48a8bd305aed180d61db7630f3da13" args="(const double xAdv)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void StringDimensions::accrueXAdvance </td>
<td>(</td>
<td class="paramtype">const double </td>
<td class="paramname"> <em>xAdv</em> </td>
<td> ) </td>
<td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sum up the individual x advances of each glyph:.
<p>
<p>References <a class="el" href="stringDimensions_8h-source.html#l00027">xadv</a>.</p>
</div>
</div><p>
<a class="anchor" name="3d79239053ab690c01c3bb26218e3760"></a><!-- doxytag: member="StringDimensions::setYMin" ref="3d79239053ab690c01c3bb26218e3760" args="(const double yMin)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void StringDimensions::setYMin </td>
<td>(</td>
<td class="paramtype">const double </td>
<td class="paramname"> <em>yMin</em> </td>
<td> ) </td>
<td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Keep a running tab on the minimum y value (descent) from all glyphs:.
<p>
<p>References <a class="el" href="stringDimensions_8h-source.html#l00028">ymin</a>.</p>
</div>
</div><p>
<a class="anchor" name="8e9a664f330178f3349a1bc42f17305f"></a><!-- doxytag: member="StringDimensions::setYMax" ref="8e9a664f330178f3349a1bc42f17305f" args="(const double yMax)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void StringDimensions::setYMax </td>
<td>(</td>
<td class="paramtype">const double </td>
<td class="paramname"> <em>yMax</em> </td>
<td> ) </td>
<td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Keep a running tab on the maximum y value (ascent) from all glyphs:.
<p>
<p>References <a class="el" href="stringDimensions_8h-source.html#l00029">ymax</a>.</p>
</div>
</div><p>
<a class="anchor" name="101735d1edfc13a1a0a07a17b8fdcf50"></a><!-- doxytag: member="StringDimensions::getXAdvance" ref="101735d1edfc13a1a0a07a17b8fdcf50" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const double StringDimensions::getXAdvance </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>References <a class="el" href="stringDimensions_8h-source.html#l00027">xadv</a>.</p>
<p>Referenced by <a class="el" href="psDoc_8cpp-source.html#l00341">LASi::PostscriptDocument::get_dimensions()</a>.</p>
</div>
</div><p>
<a class="anchor" name="98d0e88b63394326c9d2572c1f211b71"></a><!-- doxytag: member="StringDimensions::getYMin" ref="98d0e88b63394326c9d2572c1f211b71" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const double StringDimensions::getYMin </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>References <a class="el" href="stringDimensions_8h-source.html#l00028">ymin</a>.</p>
<p>Referenced by <a class="el" href="psDoc_8cpp-source.html#l00341">LASi::PostscriptDocument::get_dimensions()</a>.</p>
</div>
</div><p>
<a class="anchor" name="e37ed1d08e7ba5fffb03712190fdeb30"></a><!-- doxytag: member="StringDimensions::getYMax" ref="e37ed1d08e7ba5fffb03712190fdeb30" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const double StringDimensions::getYMax </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>References <a class="el" href="stringDimensions_8h-source.html#l00029">ymax</a>.</p>
<p>Referenced by <a class="el" href="psDoc_8cpp-source.html#l00341">LASi::PostscriptDocument::get_dimensions()</a>.</p>
</div>
</div><p>
<a class="anchor" name="e8946f159633e58ffc71618adcb2a091"></a><!-- doxytag: member="StringDimensions::getLineSpacing" ref="e8946f159633e58ffc71618adcb2a091" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const double StringDimensions::getLineSpacing </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Line spacing is just the maximum ascent minus the maximum descent multiplied by the line spacing factor:.
<p>
<p>References <a class="el" href="stringDimensions_8h-source.html#l00030">lineSpacingFactor</a>, <a class="el" href="stringDimensions_8h-source.html#l00029">ymax</a>, and <a class="el" href="stringDimensions_8h-source.html#l00028">ymin</a>.</p>
<p>Referenced by <a class="el" href="psDoc_8cpp-source.html#l00341">LASi::PostscriptDocument::get_dimensions()</a>.</p>
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="41ee8226f88016fee772b111f5f99c75"></a><!-- doxytag: member="StringDimensions::xadv" ref="41ee8226f88016fee772b111f5f99c75" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double <a class="el" href="classStringDimensions.html#41ee8226f88016fee772b111f5f99c75">StringDimensions::xadv</a><code> [private]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>Referenced by <a class="el" href="stringDimensions_8h-source.html#l00054">accrueXAdvance()</a>, <a class="el" href="stringDimensions_8h-source.html#l00066">getXAdvance()</a>, and <a class="el" href="stringDimensions_8h-source.html#l00035">StringDimensions()</a>.</p>
</div>
</div><p>
<a class="anchor" name="dd90080bcdecc910b8acb635afebd9a4"></a><!-- doxytag: member="StringDimensions::ymin" ref="dd90080bcdecc910b8acb635afebd9a4" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double <a class="el" href="classStringDimensions.html#dd90080bcdecc910b8acb635afebd9a4">StringDimensions::ymin</a><code> [private]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>Referenced by <a class="el" href="stringDimensions_8h-source.html#l00074">getLineSpacing()</a>, <a class="el" href="stringDimensions_8h-source.html#l00067">getYMin()</a>, <a class="el" href="stringDimensions_8h-source.html#l00059">setYMin()</a>, and <a class="el" href="stringDimensions_8h-source.html#l00035">StringDimensions()</a>.</p>
</div>
</div><p>
<a class="anchor" name="d4de9c5572ca572491eef4e848c0b366"></a><!-- doxytag: member="StringDimensions::ymax" ref="d4de9c5572ca572491eef4e848c0b366" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double <a class="el" href="classStringDimensions.html#d4de9c5572ca572491eef4e848c0b366">StringDimensions::ymax</a><code> [private]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>Referenced by <a class="el" href="stringDimensions_8h-source.html#l00074">getLineSpacing()</a>, <a class="el" href="stringDimensions_8h-source.html#l00068">getYMax()</a>, <a class="el" href="stringDimensions_8h-source.html#l00063">setYMax()</a>, and <a class="el" href="stringDimensions_8h-source.html#l00035">StringDimensions()</a>.</p>
</div>
</div><p>
<a class="anchor" name="1ce95e111d24ddcdd9e050f314bddcac"></a><!-- doxytag: member="StringDimensions::lineSpacingFactor" ref="1ce95e111d24ddcdd9e050f314bddcac" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double <a class="el" href="classStringDimensions.html#1ce95e111d24ddcdd9e050f314bddcac">StringDimensions::lineSpacingFactor</a><code> [private]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>Referenced by <a class="el" href="stringDimensions_8h-source.html#l00074">getLineSpacing()</a>, and <a class="el" href="stringDimensions_8h-source.html#l00035">StringDimensions()</a>.</p>
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="stringDimensions_8h-source.html">stringDimensions.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sat May 10 22:27:07 2008 for LASi by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
</body>
</html>
|