#include <textoutputentities.h>
Public Types | |
| typedef libs::Rectangle | BBox |
| typedef boost::shared_ptr < PageFragment > | PageFragmentPtr |
| typedef std::vector < PageFragmentPtr > | PageFragments |
| typedef PageFragments::const_iterator | Iterator |
Public Member Functions | |
| virtual void | push_back (PageFragmentPtr f) |
| virtual void | sort () |
| Iterator | begin () const |
| Iterator | end () const |
| bool | empty () const |
| BBox | bbox () const |
| virtual | ~PageLine () |
| std::string | text () const |
Protected Attributes | |
| BBox | _bbox |
| PageFragments | _words |
Class representing one sentence on a page.
| typedef libs::Rectangle textoutput::PageLine::BBox |
| typedef PageFragments::const_iterator textoutput::PageLine::Iterator |
| typedef boost::shared_ptr<PageFragment> textoutput::PageLine::PageFragmentPtr |
| typedef std::vector<PageFragmentPtr> textoutput::PageLine::PageFragments |
| virtual textoutput::PageLine::~PageLine | ( | ) | [inline, virtual] |
| BBox textoutput::PageLine::bbox | ( | ) | const [inline] |
Return apporximate bbox.
References _bbox.
Referenced by textoutput::SimpleLineEngine::LinePart::line_part().
| Iterator textoutput::PageLine::begin | ( | ) | const [inline] |
Return first simple fragment iterator.
References _words.
| bool textoutput::PageLine::empty | ( | ) | const [inline] |
Is container empty.
References _words.
| Iterator textoutput::PageLine::end | ( | ) | const [inline] |
Return last simple fragment iterator.
References _words.
| void textoutput::PageLine::push_back | ( | PageFragmentPtr | f | ) | [virtual] |
| void textoutput::PageLine::sort | ( | ) | [virtual] |
Sort lines.
| std::string textoutput::PageLine::text | ( | ) | const [inline] |
References _words.
BBox textoutput::PageLine::_bbox [protected] |
Approximate bbox.
Referenced by bbox(), and push_back().
PageFragments textoutput::PageLine::_words [protected] |
Container of all words from one line.
Referenced by begin(), empty(), end(), push_back(), and text().