tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
ROW Class Reference

#include <ocrrow.h>

Inheritance diagram for ROW:
Collaboration diagram for ROW:

Public Member Functions

 ROW ()=default
 
 ROW (int32_t spline_size, int32_t *xstarts, double *coeffs, float x_height, float ascenders, float descenders, int16_t kern, int16_t space)
 
 ROW (TO_ROW *row, int16_t kern, int16_t space)
 
WERD_LIST * word_list ()
 
float base_line (float xpos) const
 
float x_height () const
 
void set_x_height (float new_xheight)
 
int32_t kern () const
 
float body_size () const
 
void set_body_size (float new_size)
 
int32_t space () const
 
float ascenders () const
 
float descenders () const
 
TBOX bounding_box () const
 
TBOX restricted_bounding_box (bool upper_dots, bool lower_dots) const
 
void set_lmargin (int16_t lmargin)
 
void set_rmargin (int16_t rmargin)
 
int16_t lmargin () const
 
int16_t rmargin () const
 
void set_has_drop_cap (bool has)
 
bool has_drop_cap () const
 
void set_para (PARA *p)
 
PARApara () const
 
void recalc_bounding_box ()
 
void move (const ICOORD vec)
 
void print (FILE *fp)
 
void plot (ScrollView *window, ScrollView::Color colour)
 
void plot (ScrollView *window)
 
void plot_baseline (ScrollView *window, ScrollView::Color colour)
 
ROWoperator= (const ROW &source)
 

Private Member Functions

 ROW (const ROW &source)
 

Private Attributes

int32_t kerning
 
int32_t spacing
 
TBOX bound_box
 
float xheight
 
float ascrise
 
float descdrop
 
float bodysize
 
WERD_LIST words
 
QSPLINE baseline
 
bool has_drop_cap_
 
int16_t lmargin_
 
int16_t rmargin_
 
PARApara_
 

Friends

void tweak_row_baseline (ROW *, double, double)
 

Constructor & Destructor Documentation

◆ ROW() [1/4]

ROW::ROW ( )
default

◆ ROW() [2/4]

ROW::ROW ( int32_t  spline_size,
int32_t *  xstarts,
double *  coeffs,
float  x_height,
float  ascenders,
float  descenders,
int16_t  kern,
int16_t  space 
)

◆ ROW() [3/4]

ROW::ROW ( TO_ROW row,
int16_t  kern,
int16_t  space 
)

◆ ROW() [4/4]

ROW::ROW ( const ROW source)
private

Member Function Documentation

◆ ascenders()

float ROW::ascenders ( ) const
inline

◆ base_line()

float ROW::base_line ( float  xpos) const
inline

◆ body_size()

float ROW::body_size ( ) const
inline

◆ bounding_box()

TBOX ROW::bounding_box ( ) const
inline

◆ descenders()

float ROW::descenders ( ) const
inline

◆ has_drop_cap()

bool ROW::has_drop_cap ( ) const
inline

◆ kern()

int32_t ROW::kern ( ) const
inline

◆ lmargin()

int16_t ROW::lmargin ( ) const
inline

◆ move()

void ROW::move ( const ICOORD  vec)

◆ operator=()

ROW & ROW::operator= ( const ROW source)

◆ para()

PARA* ROW::para ( ) const
inline

◆ plot() [1/2]

void ROW::plot ( ScrollView window,
ScrollView::Color  colour 
)

◆ plot() [2/2]

void ROW::plot ( ScrollView window)

◆ plot_baseline()

void ROW::plot_baseline ( ScrollView window,
ScrollView::Color  colour 
)
inline

◆ print()

void ROW::print ( FILE *  fp)

◆ recalc_bounding_box()

void ROW::recalc_bounding_box ( )

◆ restricted_bounding_box()

TBOX ROW::restricted_bounding_box ( bool  upper_dots,
bool  lower_dots 
) const

◆ rmargin()

int16_t ROW::rmargin ( ) const
inline

◆ set_body_size()

void ROW::set_body_size ( float  new_size)
inline

◆ set_has_drop_cap()

void ROW::set_has_drop_cap ( bool  has)
inline

◆ set_lmargin()

void ROW::set_lmargin ( int16_t  lmargin)
inline

◆ set_para()

void ROW::set_para ( PARA p)
inline

◆ set_rmargin()

void ROW::set_rmargin ( int16_t  rmargin)
inline

◆ set_x_height()

void ROW::set_x_height ( float  new_xheight)
inline

◆ space()

int32_t ROW::space ( ) const
inline

◆ word_list()

WERD_LIST* ROW::word_list ( )
inline

◆ x_height()

float ROW::x_height ( ) const
inline

Friends And Related Function Documentation

◆ tweak_row_baseline

void tweak_row_baseline ( ROW ,
double  ,
double   
)
friend

Member Data Documentation

◆ ascrise

float ROW::ascrise
private

◆ baseline

QSPLINE ROW::baseline
private

◆ bodysize

float ROW::bodysize
private

◆ bound_box

TBOX ROW::bound_box
private

◆ descdrop

float ROW::descdrop
private

◆ has_drop_cap_

bool ROW::has_drop_cap_
private

◆ kerning

int32_t ROW::kerning
private

◆ lmargin_

int16_t ROW::lmargin_
private

◆ para_

PARA* ROW::para_
private

◆ rmargin_

int16_t ROW::rmargin_
private

◆ spacing

int32_t ROW::spacing
private

◆ words

WERD_LIST ROW::words
private

◆ xheight

float ROW::xheight
private

The documentation for this class was generated from the following files: