<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.14"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>tesseract: tesseract::WordWithBox Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">tesseract  <span id="projectnumber">3.05.02</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.14 --> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ var searchBox = new SearchBox("searchBox", "search",false,'Search'); /* @license-end */ </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('a04837.html','');}); /* @license-end */ </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="a04834.html">List of all members</a> </div> <div class="headertitle"> <div class="title">tesseract::WordWithBox Class Reference</div> </div> </div><!--header--> <div class="contents"> <p><code>#include <<a class="el" href="a01448_source.html">textord.h</a>></code></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:aaefd6c0c2da3eea49d3e00b64fd35f95"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a04837.html#aaefd6c0c2da3eea49d3e00b64fd35f95">WordWithBox</a> ()</td></tr> <tr class="separator:aaefd6c0c2da3eea49d3e00b64fd35f95"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a505edbf7f96e77e135bb59e2b3a634ab"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a04837.html#a505edbf7f96e77e135bb59e2b3a634ab">WordWithBox</a> (<a class="el" href="a02741.html">WERD</a> *<a class="el" href="a04837.html#a1b0fb5845740232694c27de9a0ac5c41">word</a>)</td></tr> <tr class="separator:a505edbf7f96e77e135bb59e2b3a634ab"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aafeb5b32804777ef49b3128487d1ebb3"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="a02713.html">TBOX</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="a04837.html#aafeb5b32804777ef49b3128487d1ebb3">bounding_box</a> () const</td></tr> <tr class="separator:aafeb5b32804777ef49b3128487d1ebb3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af4af0d9270884ed38d17a09087c7764a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a02713.html">TBOX</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a04837.html#af4af0d9270884ed38d17a09087c7764a">true_bounding_box</a> () const</td></tr> <tr class="separator:af4af0d9270884ed38d17a09087c7764a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2d09087aa854122e721d5030548af861"><td class="memItemLeft" align="right" valign="top">C_BLOB_LIST * </td><td class="memItemRight" valign="bottom"><a class="el" href="a04837.html#a2d09087aa854122e721d5030548af861">RejBlobs</a> () const</td></tr> <tr class="separator:a2d09087aa854122e721d5030548af861"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1b0fb5845740232694c27de9a0ac5c41"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="a02741.html">WERD</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a04837.html#a1b0fb5845740232694c27de9a0ac5c41">word</a> () const</td></tr> <tr class="separator:a1b0fb5845740232694c27de9a0ac5c41"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"> <p class="definition">Definition at line <a class="el" href="a01448_source.html#l00041">41</a> of file <a class="el" href="a01448_source.html">textord.h</a>.</p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a id="aaefd6c0c2da3eea49d3e00b64fd35f95"></a> <h2 class="memtitle"><span class="permalink"><a href="#aaefd6c0c2da3eea49d3e00b64fd35f95">◆ </a></span>WordWithBox() <span class="overload">[1/2]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">tesseract::WordWithBox::WordWithBox </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="a01448_source.html#l00043">43</a> of file <a class="el" href="a01448_source.html">textord.h</a>.</p> <div class="fragment"><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> : word_(NULL) {}</div></div><!-- fragment --> </div> </div> <a id="a505edbf7f96e77e135bb59e2b3a634ab"></a> <h2 class="memtitle"><span class="permalink"><a href="#a505edbf7f96e77e135bb59e2b3a634ab">◆ </a></span>WordWithBox() <span class="overload">[2/2]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">tesseract::WordWithBox::WordWithBox </td> <td>(</td> <td class="paramtype"><a class="el" href="a02741.html">WERD</a> * </td> <td class="paramname"><em>word</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="a01448_source.html#l00044">44</a> of file <a class="el" href="a01448_source.html">textord.h</a>.</p> <div class="fragment"><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  : word_(<a class="code" href="a04837.html#a1b0fb5845740232694c27de9a0ac5c41">word</a>), bounding_box_(<a class="code" href="a04837.html#a1b0fb5845740232694c27de9a0ac5c41">word</a>-><a class="code" href="a02741.html#ad35a2fd78555195a3dedcdd01094d0d4">bounding_box</a>()) {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordtype">int</span> height = bounding_box_.<a class="code" href="a02713.html#a394f08490216767215b7d6aea0c35270">height</a>();</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  bounding_box_.<a class="code" href="a02713.html#ad78f4f7e9746def02b0d2e8e8a2b3ceb">pad</a>(height, height);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  }</div><div class="ttc" id="a02713_html_a394f08490216767215b7d6aea0c35270"><div class="ttname"><a href="a02713.html#a394f08490216767215b7d6aea0c35270">TBOX::height</a></div><div class="ttdeci">inT16 height() const</div><div class="ttdef"><b>Definition:</b> <a href="a00401_source.html#l00104">rect.h:104</a></div></div> <div class="ttc" id="a02713_html_ad78f4f7e9746def02b0d2e8e8a2b3ceb"><div class="ttname"><a href="a02713.html#ad78f4f7e9746def02b0d2e8e8a2b3ceb">TBOX::pad</a></div><div class="ttdeci">void pad(int xpad, int ypad)</div><div class="ttdef"><b>Definition:</b> <a href="a00401_source.html#l00127">rect.h:127</a></div></div> <div class="ttc" id="a04837_html_a1b0fb5845740232694c27de9a0ac5c41"><div class="ttname"><a href="a04837.html#a1b0fb5845740232694c27de9a0ac5c41">tesseract::WordWithBox::word</a></div><div class="ttdeci">const WERD * word() const</div><div class="ttdef"><b>Definition:</b> <a href="a01448_source.html#l00054">textord.h:54</a></div></div> <div class="ttc" id="a02741_html_ad35a2fd78555195a3dedcdd01094d0d4"><div class="ttname"><a href="a02741.html#ad35a2fd78555195a3dedcdd01094d0d4">WERD::bounding_box</a></div><div class="ttdeci">TBOX bounding_box() const</div><div class="ttdef"><b>Definition:</b> <a href="a00440_source.html#l00160">werd.cpp:160</a></div></div> </div><!-- fragment --> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a id="aafeb5b32804777ef49b3128487d1ebb3"></a> <h2 class="memtitle"><span class="permalink"><a href="#aafeb5b32804777ef49b3128487d1ebb3">◆ </a></span>bounding_box()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="a02713.html">TBOX</a>& tesseract::WordWithBox::bounding_box </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="a01448_source.html#l00050">50</a> of file <a class="el" href="a01448_source.html">textord.h</a>.</p> <div class="fragment"><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> { <span class="keywordflow">return</span> bounding_box_; }</div></div><!-- fragment --> </div> </div> <a id="a2d09087aa854122e721d5030548af861"></a> <h2 class="memtitle"><span class="permalink"><a href="#a2d09087aa854122e721d5030548af861">◆ </a></span>RejBlobs()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">C_BLOB_LIST* tesseract::WordWithBox::RejBlobs </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="a01448_source.html#l00053">53</a> of file <a class="el" href="a01448_source.html">textord.h</a>.</p> <div class="fragment"><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> { <span class="keywordflow">return</span> word_-><a class="code" href="a02741.html#a0c26b86030e756d76e2425b1d2daf908">rej_cblob_list</a>(); }</div><div class="ttc" id="a02741_html_a0c26b86030e756d76e2425b1d2daf908"><div class="ttname"><a href="a02741.html#a0c26b86030e756d76e2425b1d2daf908">WERD::rej_cblob_list</a></div><div class="ttdeci">C_BLOB_LIST * rej_cblob_list()</div><div class="ttdef"><b>Definition:</b> <a href="a00443_source.html#l00095">werd.h:95</a></div></div> </div><!-- fragment --> </div> </div> <a id="af4af0d9270884ed38d17a09087c7764a"></a> <h2 class="memtitle"><span class="permalink"><a href="#af4af0d9270884ed38d17a09087c7764a">◆ </a></span>true_bounding_box()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a02713.html">TBOX</a> tesseract::WordWithBox::true_bounding_box </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="a01448_source.html#l00052">52</a> of file <a class="el" href="a01448_source.html">textord.h</a>.</p> <div class="fragment"><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> { <span class="keywordflow">return</span> word_-><a class="code" href="a02741.html#adbbe2795868f62122d184674ffc5f120">true_bounding_box</a>(); }</div><div class="ttc" id="a02741_html_adbbe2795868f62122d184674ffc5f120"><div class="ttname"><a href="a02741.html#adbbe2795868f62122d184674ffc5f120">WERD::true_bounding_box</a></div><div class="ttdeci">TBOX true_bounding_box() const</div><div class="ttdef"><b>Definition:</b> <a href="a00440_source.html#l00181">werd.cpp:181</a></div></div> </div><!-- fragment --> </div> </div> <a id="a1b0fb5845740232694c27de9a0ac5c41"></a> <h2 class="memtitle"><span class="permalink"><a href="#a1b0fb5845740232694c27de9a0ac5c41">◆ </a></span>word()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="a02741.html">WERD</a>* tesseract::WordWithBox::word </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="a01448_source.html#l00054">54</a> of file <a class="el" href="a01448_source.html">textord.h</a>.</p> <div class="fragment"><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> { <span class="keywordflow">return</span> word_; }</div></div><!-- fragment --> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>textord/<a class="el" href="a01448_source.html">textord.h</a></li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="a01738.html">tesseract</a></li><li class="navelem"><a class="el" href="a04837.html">WordWithBox</a></li> <li class="footer">Generated on Mon Oct 29 2018 11:28:07 for tesseract by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li> </ul> </div> </body> </html>