|
tesseract
4.0.0-1-g2a2b
|
page block More...
#include <pdblock.h>
Public Member Functions | |
| PDBLK () | |
| empty constructor More... | |
| PDBLK (int16_t xmin, int16_t ymin, int16_t xmax, int16_t 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... | |
| Pix * | 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 |
| ICOORDELT_LIST | leftside |
| ICOORDELT_LIST | rightside |
| TBOX | box |
| int | index_ |
Friends | |
| class | BLOCK_RECT_IT |
| class | BLOCK |
| PDBLK::PDBLK | ( | int16_t | xmin, |
| int16_t | ymin, | ||
| int16_t | xmax, | ||
| int16_t | ymax | ||
| ) |
|
inline |
| bool PDBLK::contains | ( | ICOORD | pt | ) |
is pt inside block
Definition at line 89 of file pdblock.cpp.
| void PDBLK::move | ( | const ICOORD | vec | ) |
| void 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 180 of file pdblock.cpp.
|
inline |
Definition at line 131 of file pdblock.cpp.
|
inline |
| void 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 67 of file pdblock.cpp.
|
friend |
|
protected |