tesseract
5.0.0-alpha-619-ge9db
|
#include <bbgrid.h>
Public Member Functions | |
BBGrid () | |
BBGrid (int gridsize, const ICOORD &bleft, const ICOORD &tright) | |
~BBGrid () override | |
void | Init (int gridsize, const ICOORD &bleft, const ICOORD &tright) |
void | Clear () |
void | ClearGridData (void(*free_method)(BBC *)) |
void | InsertBBox (bool h_spread, bool v_spread, BBC *bbox) |
void | InsertPixPtBBox (int left, int bottom, Pix *pix, BBC *bbox) |
void | RemoveBBox (BBC *bbox) |
bool | RectangleEmpty (const TBOX &rect) |
IntGrid * | CountCellElements () |
ScrollView * | MakeWindow (int x, int y, const char *window_name) |
void | DisplayBoxes (ScrollView *window) |
void | AssertNoDuplicates () |
virtual void | HandleClick (int x, int y) |
Public Member Functions inherited from tesseract::GridBase | |
GridBase ()=default | |
GridBase (int gridsize, const ICOORD &bleft, const ICOORD &tright) | |
virtual | ~GridBase () |
void | Init (int gridsize, const ICOORD &bleft, const ICOORD &tright) |
int | gridsize () const |
int | gridwidth () const |
int | gridheight () const |
const ICOORD & | bleft () const |
const ICOORD & | tright () const |
void | GridCoords (int x, int y, int *grid_x, int *grid_y) const |
void | ClipGridCoords (int *x, int *y) const |
Protected Attributes | |
BBC_CLIST * | grid_ |
Protected Attributes inherited from tesseract::GridBase | |
int | gridsize_ |
int | gridwidth_ |
int | gridheight_ |
int | gridbuckets_ |
ICOORD | bleft_ |
ICOORD | tright_ |
Friends | |
class | GridSearch< BBC, BBC_CLIST, BBC_C_IT > |
tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::BBGrid | ( | ) |
tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::BBGrid | ( | int | gridsize, |
const ICOORD & | bleft, | ||
const ICOORD & | tright | ||
) |
|
override |
void tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::AssertNoDuplicates | ( | ) |
void tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::Clear | ( | ) |
void tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::ClearGridData | ( | void(*)(BBC *) | free_method | ) |
IntGrid * tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::CountCellElements | ( | ) |
void tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::DisplayBoxes | ( | ScrollView * | window | ) |
|
virtual |
Reimplemented in tesseract::StrokeWidth, and tesseract::ColPartitionGrid.
void tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::Init | ( | int | gridsize, |
const ICOORD & | bleft, | ||
const ICOORD & | tright | ||
) |
void tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::InsertBBox | ( | bool | h_spread, |
bool | v_spread, | ||
BBC * | bbox | ||
) |
void tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::InsertPixPtBBox | ( | int | left, |
int | bottom, | ||
Pix * | pix, | ||
BBC * | bbox | ||
) |
ScrollView * tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::MakeWindow | ( | int | x, |
int | y, | ||
const char * | window_name | ||
) |
bool tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::RectangleEmpty | ( | const TBOX & | rect | ) |
void tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::RemoveBBox | ( | BBC * | bbox | ) |
|
friend |
|
protected |