#include <tabvector.h>
Public Member Functions | |
TabVector () | |
~TabVector () | |
TabVector (const TabVector &src, TabAlignment alignment, const ICOORD &vertical_skew, BLOBNBOX *blob) | |
const ICOORD & | startpt () const |
const ICOORD & | endpt () const |
int | extended_ymax () const |
int | extended_ymin () const |
int | sort_key () const |
void | set_top_constraints (TabConstraint_LIST *constraints) |
void | set_bottom_constraints (TabConstraint_LIST *constraints) |
TabVector_CLIST * | partners () |
int | XAtY (int y) const |
int | VOverlap (const TabVector &other) const |
int | VOverlap (int top_y, int bottom_y) const |
int | ExtendedOverlap (int top_y, int bottom_y) const |
bool | IsLeftTab () const |
bool | IsRightTab () const |
bool | IsSeparator () const |
bool | IsRagged () const |
bool | IsLeftOf (const TabVector &other) const |
bool | Partnerless () |
int | BoxCount () |
void | Freeze () |
void | XYFlip () |
void | ExtendToBox (BLOBNBOX *blob) |
void | SetYStart (int start_y) |
void | SetYEnd (int end_y) |
void | Rotate (const FCOORD &rotation) |
void | SetupConstraints () |
void | SetupPartnerConstraints () |
void | SetupPartnerConstraints (TabVector *partner) |
void | ApplyConstraints () |
bool | SimilarTo (const ICOORD &vertical, const TabVector &other, BlobGrid *grid) const |
void | MergeWith (const ICOORD &vertical, TabVector *other) |
void | AddPartner (TabVector *partner) |
bool | IsAPartner (const TabVector *other) |
void | Print (const char *prefix) |
void | Debug (const char *prefix) |
void | Display (ScrollView *tab_win) |
void | FitAndEvaluateIfNeeded (const ICOORD &vertical, TabFind *finder) |
void | Evaluate (const ICOORD &vertical, TabFind *finder) |
bool | Fit (ICOORD vertical, bool force_parallel) |
TabVector * | VerticalTextlinePartner () |
Static Public Member Functions | |
static TabVector * | FitVector (TabAlignment alignment, ICOORD vertical, int extended_start_y, int extended_end_y, BLOBNBOX_CLIST *good_points, int *vertical_x, int *vertical_y) |
static int | SortKey (const ICOORD &vertical, int x, int y) |
static int | XAtY (const ICOORD &vertical, int sort_key, int y) |
static int | SortVectorsByKey (const void *v1, const void *v2) |
static void | MergeSimilarTabVectors (const ICOORD &vertical, TabVector_LIST *vectors, BlobGrid *grid) |
tesseract::TabVector::TabVector | ( | ) | [inline] |
tesseract::TabVector::~TabVector | ( | ) |
tesseract::TabVector::TabVector | ( | const TabVector & | src, | |
TabAlignment | alignment, | |||
const ICOORD & | vertical_skew, | |||
BLOBNBOX * | blob | |||
) |
void tesseract::TabVector::AddPartner | ( | TabVector * | partner | ) |
void tesseract::TabVector::ApplyConstraints | ( | ) |
int tesseract::TabVector::BoxCount | ( | ) | [inline] |
void tesseract::TabVector::Debug | ( | const char * | prefix | ) |
void tesseract::TabVector::Display | ( | ScrollView * | tab_win | ) |
const ICOORD& tesseract::TabVector::endpt | ( | ) | const [inline] |
int tesseract::TabVector::extended_ymax | ( | ) | const [inline] |
int tesseract::TabVector::extended_ymin | ( | ) | const [inline] |
int tesseract::TabVector::ExtendedOverlap | ( | int | top_y, | |
int | bottom_y | |||
) | const [inline] |
void tesseract::TabVector::ExtendToBox | ( | BLOBNBOX * | blob | ) |
TabVector * tesseract::TabVector::FitVector | ( | TabAlignment | alignment, | |
ICOORD | vertical, | |||
int | extended_start_y, | |||
int | extended_end_y, | |||
BLOBNBOX_CLIST * | good_points, | |||
int * | vertical_x, | |||
int * | vertical_y | |||
) | [static] |
void tesseract::TabVector::Freeze | ( | ) | [inline] |
bool tesseract::TabVector::IsLeftTab | ( | ) | const [inline] |
bool tesseract::TabVector::IsRagged | ( | ) | const [inline] |
bool tesseract::TabVector::IsRightTab | ( | ) | const [inline] |
bool tesseract::TabVector::IsSeparator | ( | ) | const [inline] |
void tesseract::TabVector::MergeSimilarTabVectors | ( | const ICOORD & | vertical, | |
TabVector_LIST * | vectors, | |||
BlobGrid * | grid | |||
) | [static] |
bool tesseract::TabVector::Partnerless | ( | ) | [inline] |
TabVector_CLIST* tesseract::TabVector::partners | ( | ) | [inline] |
void tesseract::TabVector::Print | ( | const char * | prefix | ) |
void tesseract::TabVector::Rotate | ( | const FCOORD & | rotation | ) |
void tesseract::TabVector::set_bottom_constraints | ( | TabConstraint_LIST * | constraints | ) | [inline] |
void tesseract::TabVector::set_top_constraints | ( | TabConstraint_LIST * | constraints | ) | [inline] |
void tesseract::TabVector::SetupConstraints | ( | ) |
void tesseract::TabVector::SetupPartnerConstraints | ( | TabVector * | partner | ) |
void tesseract::TabVector::SetupPartnerConstraints | ( | ) |
void tesseract::TabVector::SetYEnd | ( | int | end_y | ) |
void tesseract::TabVector::SetYStart | ( | int | start_y | ) |
bool tesseract::TabVector::SimilarTo | ( | const ICOORD & | vertical, | |
const TabVector & | other, | |||
BlobGrid * | grid | |||
) | const |
int tesseract::TabVector::sort_key | ( | ) | const [inline] |
static int tesseract::TabVector::SortKey | ( | const ICOORD & | vertical, | |
int | x, | |||
int | y | |||
) | [inline, static] |
static int tesseract::TabVector::SortVectorsByKey | ( | const void * | v1, | |
const void * | v2 | |||
) | [inline, static] |
const ICOORD& tesseract::TabVector::startpt | ( | ) | const [inline] |
TabVector * tesseract::TabVector::VerticalTextlinePartner | ( | ) |
int tesseract::TabVector::VOverlap | ( | int | top_y, | |
int | bottom_y | |||
) | const [inline] |
int tesseract::TabVector::VOverlap | ( | const TabVector & | other | ) | const [inline] |
static int tesseract::TabVector::XAtY | ( | const ICOORD & | vertical, | |
int | sort_key, | |||
int | y | |||
) | [inline, static] |
int tesseract::TabVector::XAtY | ( | int | y | ) | const [inline] |
void tesseract::TabVector::XYFlip | ( | ) | [inline] |