tesseract::ShapeTable Class Reference
#include <shapetable.h>
List of all members.
Public Member Functions |
| | ShapeTable () |
| | ShapeTable (const UNICHARSET &unicharset) |
| bool | Serialize (FILE *fp) const |
| bool | DeSerialize (bool swap, FILE *fp) |
| int | NumShapes () const |
| const UNICHARSET & | unicharset () const |
| void | set_unicharset (const UNICHARSET &unicharset) |
| STRING | DebugStr (int shape_id) const |
| STRING | SummaryStr () const |
| int | AddShape (int unichar_id, int font_id) |
| int | AddShape (const Shape &other) |
| void | DeleteShape (int shape_id) |
| void | AddToShape (int shape_id, int unichar_id, int font_id) |
| void | AddShapeToShape (int shape_id, const Shape &other) |
| int | FindShape (int unichar_id, int font_id) const |
| void | GetFirstUnicharAndFont (int shape_id, int *unichar_id, int *font_id) const |
| const Shape & | GetShape (int shape_id) const |
| Shape * | MutableShape (int shape_id) |
| int | BuildFromShape (const Shape &shape, const ShapeTable &master_shapes) |
| bool | AlreadyMerged (int shape_id1, int shape_id2) |
| bool | AnyMultipleUnichars () |
| int | MaxNumUnichars () const |
| void | ForceFontMerges (int start, int end) |
| int | MasterUnicharCount (int shape_id) const |
| int | MasterFontCount (int shape_id) const |
| int | MergedUnicharCount (int shape_id1, int shape_id2) const |
| void | MergeShapes (int shape_id1, int shape_id2) |
| void | AppendMasterShapes (const ShapeTable &other) |
| int | NumMasterShapes () const |
| int | MasterDestinationIndex (int shape_id) const |
Constructor & Destructor Documentation
| tesseract::ShapeTable::ShapeTable |
( |
|
) |
|
| tesseract::ShapeTable::ShapeTable |
( |
const UNICHARSET & |
unicharset |
) |
[explicit] |
Member Function Documentation
| int tesseract::ShapeTable::AddShape |
( |
const Shape & |
other |
) |
|
| int tesseract::ShapeTable::AddShape |
( |
int |
unichar_id, |
|
|
int |
font_id | |
|
) |
| | |
| void tesseract::ShapeTable::AddShapeToShape |
( |
int |
shape_id, |
|
|
const Shape & |
other | |
|
) |
| | |
| void tesseract::ShapeTable::AddToShape |
( |
int |
shape_id, |
|
|
int |
unichar_id, |
|
|
int |
font_id | |
|
) |
| | |
| bool tesseract::ShapeTable::AlreadyMerged |
( |
int |
shape_id1, |
|
|
int |
shape_id2 | |
|
) |
| | |
| bool tesseract::ShapeTable::AnyMultipleUnichars |
( |
|
) |
|
| void tesseract::ShapeTable::AppendMasterShapes |
( |
const ShapeTable & |
other |
) |
|
| int tesseract::ShapeTable::BuildFromShape |
( |
const Shape & |
shape, |
|
|
const ShapeTable & |
master_shapes | |
|
) |
| | |
| STRING tesseract::ShapeTable::DebugStr |
( |
int |
shape_id |
) |
const |
| void tesseract::ShapeTable::DeleteShape |
( |
int |
shape_id |
) |
|
| bool tesseract::ShapeTable::DeSerialize |
( |
bool |
swap, |
|
|
FILE * |
fp | |
|
) |
| | |
| int tesseract::ShapeTable::FindShape |
( |
int |
unichar_id, |
|
|
int |
font_id | |
|
) |
| | const |
| void tesseract::ShapeTable::ForceFontMerges |
( |
int |
start, |
|
|
int |
end | |
|
) |
| | |
| void tesseract::ShapeTable::GetFirstUnicharAndFont |
( |
int |
shape_id, |
|
|
int * |
unichar_id, |
|
|
int * |
font_id | |
|
) |
| | const |
| const Shape& tesseract::ShapeTable::GetShape |
( |
int |
shape_id |
) |
const [inline] |
| int tesseract::ShapeTable::MasterDestinationIndex |
( |
int |
shape_id |
) |
const |
| int tesseract::ShapeTable::MasterFontCount |
( |
int |
shape_id |
) |
const |
| int tesseract::ShapeTable::MasterUnicharCount |
( |
int |
shape_id |
) |
const |
| int tesseract::ShapeTable::MaxNumUnichars |
( |
|
) |
const |
| int tesseract::ShapeTable::MergedUnicharCount |
( |
int |
shape_id1, |
|
|
int |
shape_id2 | |
|
) |
| | const |
| void tesseract::ShapeTable::MergeShapes |
( |
int |
shape_id1, |
|
|
int |
shape_id2 | |
|
) |
| | |
| Shape* tesseract::ShapeTable::MutableShape |
( |
int |
shape_id |
) |
[inline] |
| int tesseract::ShapeTable::NumMasterShapes |
( |
|
) |
const |
| int tesseract::ShapeTable::NumShapes |
( |
|
) |
const [inline] |
| bool tesseract::ShapeTable::Serialize |
( |
FILE * |
fp |
) |
const |
| void tesseract::ShapeTable::set_unicharset |
( |
const UNICHARSET & |
unicharset |
) |
[inline] |
| STRING tesseract::ShapeTable::SummaryStr |
( |
|
) |
const |
| const UNICHARSET& tesseract::ShapeTable::unicharset |
( |
|
) |
const [inline] |
The documentation for this class was generated from the following files: