#include <ratngs.h>
List of all members.
Detailed Description
Definition at line 32 of file ratngs.h.
Constructor & Destructor Documentation
BLOB_CHOICE::BLOB_CHOICE |
( |
| ) |
[inline] |
Definition at line 35 of file ratngs.h.
{
unichar_id_ = INVALID_UNICHAR_ID;
fontinfo_id_ = -1;
fontinfo_id2_ = -1;
rating_ = MAX_FLOAT32;
certainty_ = -MAX_FLOAT32;
script_id_ = -1;
language_model_state_ = NULL;
min_xheight_ = 0;
max_xheight_ = 0;
adapted_ = false;
}
BLOB_CHOICE::BLOB_CHOICE |
( |
UNICHAR_ID |
src_unichar_id, |
|
|
float |
src_rating, |
|
|
float |
src_cert, |
|
|
inT16 |
src_fontinfo_id, |
|
|
inT16 |
src_fontinfo_id2, |
|
|
int |
src_script_id, |
|
|
inT16 |
min_xheight, |
|
|
inT16 |
max_xheight, |
|
|
bool |
adapted |
|
) |
| |
BLOB_CHOICE::BLOB_CHOICE
Constructor to build a BLOB_CHOICE from a char, rating and certainty.
Definition at line 66 of file ratngs.cpp.
{
unichar_id_ = src_unichar_id;
rating_ = src_rating;
certainty_ = src_cert;
fontinfo_id_ = src_fontinfo_id;
fontinfo_id2_ = src_fontinfo_id2;
script_id_ = src_script_id;
language_model_state_ = NULL;
min_xheight_ = min_xheight;
max_xheight_ = max_xheight;
adapted_ = adapted;
}
BLOB_CHOICE::~BLOB_CHOICE |
( |
| ) |
[inline] |
Member Function Documentation
bool BLOB_CHOICE::adapted |
( |
| ) |
const [inline] |
float BLOB_CHOICE::certainty |
( |
| ) |
const [inline] |
inT16 BLOB_CHOICE::fontinfo_id |
( |
| ) |
const [inline] |
inT16 BLOB_CHOICE::fontinfo_id2 |
( |
| ) |
const [inline] |
Definition at line 71 of file ratngs.h.
{
return fontinfo_id2_;
}
void* BLOB_CHOICE::language_model_state |
( |
| ) |
[inline] |
Definition at line 77 of file ratngs.h.
{
return language_model_state_;
}
inT16 BLOB_CHOICE::max_xheight |
( |
| ) |
const [inline] |
inT16 BLOB_CHOICE::min_xheight |
( |
| ) |
const [inline] |
void BLOB_CHOICE::print |
( |
const UNICHARSET * |
unicharset | ) |
[inline] |
float BLOB_CHOICE::rating |
( |
| ) |
const [inline] |
int BLOB_CHOICE::script_id |
( |
| ) |
const [inline] |
void BLOB_CHOICE::set_adapted |
( |
bool |
adapted | ) |
[inline] |
void BLOB_CHOICE::set_certainty |
( |
float |
newrat | ) |
[inline] |
void BLOB_CHOICE::set_fontinfo_id |
( |
inT16 |
newfont | ) |
[inline] |
Definition at line 105 of file ratngs.h.
{
fontinfo_id_ = newfont;
}
void BLOB_CHOICE::set_fontinfo_id2 |
( |
inT16 |
newfont | ) |
[inline] |
Definition at line 108 of file ratngs.h.
{
fontinfo_id2_ = newfont;
}
void BLOB_CHOICE::set_language_model_state |
( |
void * |
language_model_state | ) |
[inline] |
void BLOB_CHOICE::set_rating |
( |
float |
newrat | ) |
[inline] |
void BLOB_CHOICE::set_script |
( |
int |
newscript_id | ) |
[inline] |
Definition at line 111 of file ratngs.h.
{
script_id_ = newscript_id;
}
void BLOB_CHOICE::set_unichar_id |
( |
UNICHAR_ID |
newunichar_id | ) |
[inline] |
Definition at line 96 of file ratngs.h.
{
unichar_id_ = newunichar_id;
}
void BLOB_CHOICE::set_xgap_after |
( |
inT16 |
gap | ) |
[inline] |
void BLOB_CHOICE::set_xgap_before |
( |
inT16 |
gap | ) |
[inline] |
UNICHAR_ID BLOB_CHOICE::unichar_id |
( |
| ) |
const [inline] |
inT16 BLOB_CHOICE::xgap_after |
( |
| ) |
const [inline] |
inT16 BLOB_CHOICE::xgap_before |
( |
| ) |
const [inline] |
The documentation for this class was generated from the following files: