Tesseract
3.02
|
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 () const |
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 |
|
inline |
simple constructor
Definition at line 42 of file pdblock.cpp.
|
inline |
|
inline |
is pt inside block
Definition at line 91 of file pdblock.cpp.
void PDBLK::move | ( | const ICOORD | vec | ) |
reposition block
Definition at line 115 of file pdblock.cpp.
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 |
Definition at line 181 of file pdblock.cpp.
|
inline |
Pix * PDBLK::render_mask | ( | const FCOORD & | rerotation | ) |
Definition at line 133 of file pdblock.cpp.
|
inline |
|
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 68 of file pdblock.cpp.
void PDBLK::show | ( | IMAGE * | image, |
ScrollView * | window | ||
) |
show image
image | image to show |
window | window to show in |
Definition at line 244 of file pdblock.cpp.
|
friend |
|
protected |