tesseract
5.0.0-alpha-619-ge9db
|
#include <tabvector.h>
Public Member Functions | |
TabVector ()=default | |
~TabVector ()=default | |
TabVector (const TabVector &src, TabAlignment alignment, const ICOORD &vertical_skew, BLOBNBOX *blob) | |
TabVector * | ShallowCopy () const |
const ICOORD & | startpt () const |
const ICOORD & | endpt () const |
int | extended_ymax () const |
int | extended_ymin () const |
int | sort_key () const |
int | mean_width () const |
void | set_top_constraints (TabConstraint_LIST *constraints) |
void | set_bottom_constraints (TabConstraint_LIST *constraints) |
TabVector_CLIST * | partners () |
void | set_startpt (const ICOORD &start) |
void | set_endpt (const ICOORD &end) |
bool | intersects_other_lines () const |
void | set_intersects_other_lines (bool value) |
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 | IsCenterTab () const |
bool | IsRagged () const |
bool | IsLeftOf (const TabVector &other) const |
bool | Partnerless () |
int | BoxCount () |
void | Freeze () |
void | XYFlip () |
void | ReflectInYAxis () |
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 () |
TabVector * | GetSinglePartner () |
Public Member Functions inherited from ELIST2_LINK | |
ELIST2_LINK () | |
ELIST2_LINK (const ELIST2_LINK &) | |
void | operator= (const ELIST2_LINK &) |
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) |
Definition at line 111 of file tabvector.h.
|
default |
|
default |
tesseract::TabVector::TabVector | ( | const TabVector & | src, |
TabAlignment | alignment, | ||
const ICOORD & | vertical_skew, | ||
BLOBNBOX * | blob | ||
) |
Definition at line 198 of file tabvector.cpp.
void tesseract::TabVector::AddPartner | ( | TabVector * | partner | ) |
Definition at line 484 of file tabvector.cpp.
void tesseract::TabVector::ApplyConstraints | ( | ) |
Definition at line 345 of file tabvector.cpp.
|
inline |
Definition at line 244 of file tabvector.h.
void tesseract::TabVector::Debug | ( | const char * | prefix | ) |
Definition at line 527 of file tabvector.cpp.
void tesseract::TabVector::Display | ( | ScrollView * | tab_win | ) |
Definition at line 539 of file tabvector.cpp.
|
inline |
Definition at line 148 of file tabvector.h.
Definition at line 579 of file tabvector.cpp.
|
inline |
Definition at line 151 of file tabvector.h.
|
inline |
Definition at line 154 of file tabvector.h.
|
inline |
Definition at line 207 of file tabvector.h.
void tesseract::TabVector::ExtendToBox | ( | BLOBNBOX * | blob | ) |
Definition at line 238 of file tabvector.cpp.
bool tesseract::TabVector::Fit | ( | ICOORD | vertical, |
bool | force_parallel | ||
) |
Definition at line 780 of file tabvector.cpp.
Definition at line 565 of file tabvector.cpp.
|
static |
Definition at line 176 of file tabvector.cpp.
|
inline |
Definition at line 249 of file tabvector.h.
TabVector * tesseract::TabVector::GetSinglePartner | ( | ) |
Definition at line 866 of file tabvector.cpp.
|
inline |
Definition at line 178 of file tabvector.h.
bool tesseract::TabVector::IsAPartner | ( | const TabVector * | other | ) |
Definition at line 497 of file tabvector.cpp.
|
inline |
Definition at line 224 of file tabvector.h.
|
inline |
Definition at line 234 of file tabvector.h.
|
inline |
Definition at line 212 of file tabvector.h.
|
inline |
Definition at line 228 of file tabvector.h.
|
inline |
Definition at line 216 of file tabvector.h.
|
inline |
Definition at line 220 of file tabvector.h.
|
inline |
Definition at line 160 of file tabvector.h.
|
static |
Definition at line 353 of file tabvector.cpp.
Definition at line 450 of file tabvector.cpp.
|
inline |
Definition at line 239 of file tabvector.h.
|
inline |
Definition at line 169 of file tabvector.h.
void tesseract::TabVector::Print | ( | const char * | prefix | ) |
Definition at line 517 of file tabvector.cpp.
|
inline |
Definition at line 264 of file tabvector.h.
void tesseract::TabVector::Rotate | ( | const FCOORD & | rotation | ) |
Definition at line 273 of file tabvector.cpp.
|
inline |
Definition at line 166 of file tabvector.h.
|
inline |
Definition at line 175 of file tabvector.h.
|
inline |
Definition at line 181 of file tabvector.h.
|
inline |
Definition at line 172 of file tabvector.h.
|
inline |
Definition at line 163 of file tabvector.h.
void tesseract::TabVector::SetupConstraints | ( | ) |
Definition at line 288 of file tabvector.cpp.
void tesseract::TabVector::SetupPartnerConstraints | ( | ) |
Definition at line 294 of file tabvector.cpp.
void tesseract::TabVector::SetupPartnerConstraints | ( | TabVector * | partner | ) |
Definition at line 333 of file tabvector.cpp.
void tesseract::TabVector::SetYEnd | ( | int | end_y | ) |
Definition at line 267 of file tabvector.cpp.
void tesseract::TabVector::SetYStart | ( | int | start_y | ) |
Definition at line 262 of file tabvector.cpp.
TabVector * tesseract::TabVector::ShallowCopy | ( | ) | const |
Definition at line 225 of file tabvector.cpp.
bool tesseract::TabVector::SimilarTo | ( | const ICOORD & | vertical, |
const TabVector & | other, | ||
BlobGrid * | grid | ||
) | const |
Definition at line 386 of file tabvector.cpp.
|
inline |
Definition at line 157 of file tabvector.h.
|
inlinestatic |
Definition at line 279 of file tabvector.h.
|
inlinestatic |
Definition at line 293 of file tabvector.h.
|
inline |
Definition at line 145 of file tabvector.h.
TabVector * tesseract::TabVector::VerticalTextlinePartner | ( | ) |
Definition at line 876 of file tabvector.cpp.
|
inline |
Definition at line 198 of file tabvector.h.
|
inline |
Definition at line 203 of file tabvector.h.
|
inlinestatic |
|
inline |
|
inline |