tesseract
3.05.02
|
#include <polyblk.h>
Public Member Functions | |||
POLY_BLOCK () | |||
POLY_BLOCK (const TBOX &box, PolyBlockType type) | |||
POLY_BLOCK (ICOORDELT_LIST *points, PolyBlockType type) | |||
~POLY_BLOCK () | |||
TBOX * | bounding_box () | ||
ICOORDELT_LIST * | points () | ||
PolyBlockType | isA () const | ||
bool | IsText () const | ||
POLY_BLOCK::compute_bb | |||
Compute the bounding box from the outline points. | |||
void | compute_bb () | ||
POLY_BLOCK::rotate | |||
Rotate the POLY_BLOCK.
| |||
void | rotate (FCOORD rotation) | ||
POLY_BLOCK::winding_number | |||
Return the winding number of the outline around the given point.
| |||
bool | contains (POLY_BLOCK *other) | ||
inT16 | winding_number (const ICOORD &test_pt) | ||
POLY_BLOCK::reflect_in_y_axis | |
Reflect the coords of the polygon in the y-axis. (Flip the sign of x.) | |
void | reflect_in_y_axis () |
void | move (ICOORD shift) |
void | plot (ScrollView *window, inT32 num) |
void | fill (ScrollView *window, ScrollView::Color colour) |
bool | overlap (POLY_BLOCK *other) |
static ScrollView::Color | ColorForPolyBlockType (PolyBlockType type) |
Returns a color to draw the given type. More... | |
POLY_BLOCK::POLY_BLOCK | ( | const TBOX & | box, |
PolyBlockType | type | ||
) |
Definition at line 47 of file polyblk.cpp.
POLY_BLOCK::POLY_BLOCK | ( | ICOORDELT_LIST * | points, |
PolyBlockType | type | ||
) |
Definition at line 36 of file polyblk.cpp.
|
inline |
|
static |
Returns a color to draw the given type.
Definition at line 397 of file polyblk.cpp.
void POLY_BLOCK::compute_bb | ( | ) |
Definition at line 65 of file polyblk.cpp.
bool POLY_BLOCK::contains | ( | POLY_BLOCK * | other | ) |
void POLY_BLOCK::fill | ( | ScrollView * | window, |
ScrollView::Color | colour | ||
) |
Definition at line 272 of file polyblk.cpp.
|
inline |
void POLY_BLOCK::move | ( | ICOORD | shift | ) |
Move the POLY_BLOCK.
shift | x,y translation vector |
Definition at line 230 of file polyblk.cpp.
bool POLY_BLOCK::overlap | ( | POLY_BLOCK * | other | ) |
void POLY_BLOCK::plot | ( | ScrollView * | window, |
inT32 | num | ||
) |
Definition at line 245 of file polyblk.cpp.
|
inline |
void POLY_BLOCK::reflect_in_y_axis | ( | ) |
Definition at line 209 of file polyblk.cpp.
void POLY_BLOCK::rotate | ( | FCOORD | rotation | ) |
Definition at line 185 of file polyblk.cpp.
Definition at line 101 of file polyblk.cpp.