tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT > Class Template Reference
#include <bbgrid.h>
List of all members.
Public Member Functions |
| | BBGrid () |
| | BBGrid (int gridsize, const ICOORD &bleft, const ICOORD &tright) |
| virtual | ~BBGrid () |
| void | Init (int gridsize, const ICOORD &bleft, const ICOORD &tright) |
| void | Clear () |
| void | ClearGridData (void(*free_method)(BBC *)) |
| int | gridsize () const |
| int | gridwidth () const |
| int | gridheight () const |
| ICOORD | bleft () const |
| ICOORD | tright () const |
| void | InsertBBox (bool h_spread, bool v_spread, BBC *bbox) |
| void | RemoveBBox (BBC *bbox) |
| void | GridCoords (int x, int y, int *grid_x, int *grid_y) |
| void | ClipGridCoords (int *x, int *y) |
| ScrollView * | MakeWindow (int x, int y, const char *window_name) |
| void | DisplayBoxes (ScrollView *window) |
| void | AssertNoDuplicates () |
| virtual void | HandleClick (int x, int y) |
Protected Attributes |
| int | gridsize_ |
| int | gridwidth_ |
| int | gridheight_ |
| int | gridbuckets_ |
| ICOORD | bleft_ |
| ICOORD | tright_ |
| BBC_CLIST * | grid_ |
Friends |
| class | GridSearch< BBC, BBC_CLIST, BBC_C_IT > |
template<class BBC, class BBC_CLIST, class BBC_C_IT>
class tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >
Constructor & Destructor Documentation
template<class BBC , class BBC_CLIST , class BBC_C_IT >
template<class BBC , class BBC_CLIST , class BBC_C_IT >
template<class BBC , class BBC_CLIST , class BBC_C_IT >
Member Function Documentation
template<class BBC , class BBC_CLIST , class BBC_C_IT >
template<class BBC, class BBC_CLIST, class BBC_C_IT>
template<class BBC , class BBC_CLIST , class BBC_C_IT >
template<class BBC, class BBC_CLIST , class BBC_C_IT >
| void tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::ClearGridData |
( |
void(*)(BBC *) |
free_method |
) |
[inline] |
template<class BBC , class BBC_CLIST , class BBC_C_IT >
| void tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::ClipGridCoords |
( |
int * |
x, |
|
|
int * |
y | |
|
) |
| | [inline] |
template<class BBC , class BBC_CLIST , class BBC_C_IT >
template<class BBC , class BBC_CLIST , class BBC_C_IT >
| void tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::GridCoords |
( |
int |
x, |
|
|
int |
y, |
|
|
int * |
grid_x, |
|
|
int * |
grid_y | |
|
) |
| | [inline] |
template<class BBC, class BBC_CLIST, class BBC_C_IT>
template<class BBC, class BBC_CLIST, class BBC_C_IT>
template<class BBC, class BBC_CLIST, class BBC_C_IT>
template<class BBC , class BBC_CLIST , class BBC_C_IT >
| void tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::HandleClick |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | [inline, virtual] |
template<class BBC , class BBC_CLIST , class BBC_C_IT >
template<class BBC, class BBC_CLIST , class BBC_C_IT >
template<class BBC , class BBC_CLIST , class BBC_C_IT >
template<class BBC, class BBC_CLIST , class BBC_C_IT >
| void tesseract::BBGrid< BBC, BBC_CLIST, BBC_C_IT >::RemoveBBox |
( |
BBC * |
bbox |
) |
[inline] |
template<class BBC, class BBC_CLIST, class BBC_C_IT>
Friends And Related Function Documentation
template<class BBC, class BBC_CLIST, class BBC_C_IT>
friend class GridSearch< BBC, BBC_CLIST, BBC_C_IT > [friend] |
Member Data Documentation
template<class BBC, class BBC_CLIST, class BBC_C_IT>
template<class BBC, class BBC_CLIST, class BBC_C_IT>
template<class BBC, class BBC_CLIST, class BBC_C_IT>
template<class BBC, class BBC_CLIST, class BBC_C_IT>
template<class BBC, class BBC_CLIST, class BBC_C_IT>
template<class BBC, class BBC_CLIST, class BBC_C_IT>
template<class BBC, class BBC_CLIST, class BBC_C_IT>
The documentation for this class was generated from the following file: