|
tesseract v5.3.3.20231005
|
page block More...
#include <pdblock.h>
Public Member Functions | |
| PDBLK () | |
| empty constructor More... | |
| PDBLK (TDimension xmin, TDimension ymin, TDimension xmax, TDimension ymax) | |
| simple constructor More... | |
| void | set_sides (ICOORDELT_LIST *left, ICOORDELT_LIST *right) |
| ~PDBLK () | |
| destructor More... | |
| POLY_BLOCK * | poly_block () const |
| void | set_poly_block (POLY_BLOCK *blk) |
| set the poly block More... | |
| void | bounding_box (ICOORD &bottom_left, ICOORD &top_right) const |
| get box More... | |
| const TBOX & | bounding_box () const |
| get real box More... | |
| int | index () const |
| void | set_index (int value) |
| bool | contains (ICOORD pt) |
| is pt inside block More... | |
| void | move (const ICOORD vec) |
| reposition block More... | |
| Image | render_mask (const FCOORD &rerotation, TBOX *mask_box) |
| void | plot (ScrollView *window, int32_t serial, ScrollView::Color colour) |
| PDBLK & | operator= (const PDBLK &source) |
Protected Attributes | |
| POLY_BLOCK * | hand_poly |
| weird as well More... | |
| ICOORDELT_LIST | leftside |
| left side vertices More... | |
| ICOORDELT_LIST | rightside |
| right side vertices More... | |
| TBOX | box |
| bounding box More... | |
| int | index_ |
| Serial number of this block. More... | |
Friends | |
| class | BLOCK_RECT_IT |
| block iterator More... | |
| class | BLOCK |
| Page Block. More... | |
|
inline |
| tesseract::PDBLK::PDBLK | ( | TDimension | xmin, |
| TDimension | ymin, | ||
| TDimension | xmax, | ||
| TDimension | ymax | ||
| ) |
simple constructor
| xmin | bottom left |
| xmax | top right |
Definition at line 44 of file pdblock.cpp.
|
inline |
|
inline |
| bool tesseract::PDBLK::contains | ( | ICOORD | pt | ) |
is pt inside block
Definition at line 93 of file pdblock.cpp.
|
inline |
| void tesseract::PDBLK::move | ( | const ICOORD | vec | ) |
reposition block
Definition at line 117 of file pdblock.cpp.
assignment
| source | from this |
Definition at line 245 of file pdblock.cpp.
| void tesseract::PDBLK::plot | ( | ScrollView * | window, |
| int32_t | serial, | ||
| ScrollView::Color | colour | ||
| ) |
draw histogram
| window | window to draw in |
| serial | serial number |
| colour | colour to draw in |
Definition at line 185 of file pdblock.cpp.
|
inline |
Definition at line 137 of file pdblock.cpp.
|
inline |
|
inline |
| void tesseract::PDBLK::set_sides | ( | ICOORDELT_LIST * | left, |
| ICOORDELT_LIST * | right | ||
| ) |
set vertex lists
| left | list of left vertices |
| right | list of right vertices |
Definition at line 71 of file pdblock.cpp.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |