|
Tesseract 3.01
|
page block More...
#include <pdblock.h>
Public Member Functions | |
| PDBLK () | |
| empty constructor | |
| PDBLK (inT16 xmin, inT16 ymin, inT16 xmax, inT16 ymax) | |
| simple constructor | |
| void | set_sides (ICOORDELT_LIST *left, ICOORDELT_LIST *right) |
| ~PDBLK () | |
| destructor | |
| POLY_BLOCK * | poly_block () |
| void | set_poly_block (POLY_BLOCK *blk) |
| set the poly block | |
| void | bounding_box (ICOORD &bottom_left, ICOORD &top_right) const |
| get box | |
| const TBOX & | bounding_box () const |
| get real box | |
| int | index () const |
| void | set_index (int value) |
| BOOL8 | contains (ICOORD pt) |
| is pt inside block | |
| void | move (const ICOORD vec) |
| reposition block | |
| Pix * | render_mask (const FCOORD &rerotation) |
| void | plot (ScrollView *window, inT32 serial, ScrollView::Color colour) |
| void | show (IMAGE *image, ScrollView *window) |
| 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 |
page block
| PDBLK::PDBLK | ( | ) | [inline] |
empty constructor
| PDBLK::~PDBLK | ( | ) | [inline] |
destructor
| const TBOX& PDBLK::bounding_box | ( | ) | const [inline] |
get real box
| int PDBLK::index | ( | ) | const [inline] |
| void PDBLK::move | ( | const ICOORD | vec | ) |
reposition block
| void PDBLK::plot | ( | ScrollView * | window, |
| inT32 | serial, | ||
| ScrollView::Color | colour | ||
| ) |
draw histogram
| window | window to draw in |
| serial | serial number |
| colour | colour to draw in |
| POLY_BLOCK* PDBLK::poly_block | ( | ) | [inline] |
| Pix * PDBLK::render_mask | ( | const FCOORD & | rerotation | ) |
| void PDBLK::set_index | ( | int | value | ) | [inline] |
| void PDBLK::set_poly_block | ( | POLY_BLOCK * | blk | ) | [inline] |
set the poly block
| void PDBLK::set_sides | ( | ICOORDELT_LIST * | left, |
| ICOORDELT_LIST * | right | ||
| ) |
set vertex lists
| left | list of left vertices |
| right | list of right vertices |
| void PDBLK::show | ( | IMAGE * | image, |
| ScrollView * | window | ||
| ) |
show image
| image | image to show |
| window | window to show in |
friend class BLOCK_RECT_IT [friend] |
Reimplemented in BLOCK.
TBOX PDBLK::box [protected] |
POLY_BLOCK* PDBLK::hand_poly [protected] |
int PDBLK::index_ [protected] |
ICOORDELT_LIST PDBLK::leftside [protected] |
ICOORDELT_LIST PDBLK::rightside [protected] |