BLOCK Class Reference

#include <ocrblock.h>

Inheritance diagram for BLOCK:
ELIST_LINK PDBLK

List of all members.

Public Member Functions

 BLOCK ()
 BLOCK (const char *name, BOOL8 prop, inT16 kern, inT16 space, inT16 xmin, inT16 ymin, inT16 xmax, inT16 ymax)
 ~BLOCK ()
void set_stats (BOOL8 prop, inT16 kern, inT16 space, inT16 ch_pitch)
void set_xheight (inT32 height)
void set_font_class (inT16 font)
BOOL8 prop () const
inT32 fixed_pitch () const
inT16 kern () const
inT16 font () const
inT16 space () const
const char * name () const
inT32 x_height () const
float cell_over_xheight () const
void set_cell_over_xheight (float ratio)
ROW_LIST * row_list ()
C_BLOB_LIST * blob_list ()
C_BLOB_LIST * reject_blobs ()
FCOORD re_rotation () const
void set_re_rotation (const FCOORD &rotation)
FCOORD classify_rotation () const
void set_classify_rotation (const FCOORD &rotation)
FCOORD skew () const
void set_skew (const FCOORD &skew)
const ICOORDmedian_size () const
void set_median_size (int x, int y)
void rotate (const FCOORD &rotation)
void sort_rows ()
void compress ()
void check_pitch ()
void compress (const ICOORD vec)
void print (FILE *fp, BOOL8 dump)
void prep_serialise ()
void dump (FILE *f)
void de_dump (FILE *f)
 make_serialise (BLOCK) BLOCK &operator

Friends

class BLOCK_RECT_IT

Constructor & Destructor Documentation

BLOCK::BLOCK (  )  [inline]
BLOCK::BLOCK ( const char *  name,
BOOL8  prop,
inT16  kern,
inT16  space,
inT16  xmin,
inT16  ymin,
inT16  xmax,
inT16  ymax 
)
BLOCK::~BLOCK (  )  [inline]

Member Function Documentation

C_BLOB_LIST* BLOCK::blob_list (  )  [inline]
float BLOCK::cell_over_xheight (  )  const [inline]
void BLOCK::check_pitch (  ) 
FCOORD BLOCK::classify_rotation (  )  const [inline]
void BLOCK::compress ( const ICOORD  vec  ) 
void BLOCK::compress (  ) 
void BLOCK::de_dump ( FILE *  f  )  [inline]
void BLOCK::dump ( FILE *  f  )  [inline]
inT32 BLOCK::fixed_pitch (  )  const [inline]
inT16 BLOCK::font (  )  const [inline]
inT16 BLOCK::kern (  )  const [inline]
BLOCK::make_serialise ( BLOCK   ) 
const ICOORD& BLOCK::median_size (  )  const [inline]
const char* BLOCK::name (  )  const [inline]
void BLOCK::prep_serialise (  )  [inline]
void BLOCK::print ( FILE *  fp,
BOOL8  dump 
)
BOOL8 BLOCK::prop (  )  const [inline]
FCOORD BLOCK::re_rotation (  )  const [inline]
C_BLOB_LIST* BLOCK::reject_blobs (  )  [inline]
void BLOCK::rotate ( const FCOORD rotation  ) 
ROW_LIST* BLOCK::row_list (  )  [inline]
void BLOCK::set_cell_over_xheight ( float  ratio  )  [inline]
void BLOCK::set_classify_rotation ( const FCOORD rotation  )  [inline]
void BLOCK::set_font_class ( inT16  font  )  [inline]
void BLOCK::set_median_size ( int  x,
int  y 
) [inline]
void BLOCK::set_re_rotation ( const FCOORD rotation  )  [inline]
void BLOCK::set_skew ( const FCOORD skew  )  [inline]
void BLOCK::set_stats ( BOOL8  prop,
inT16  kern,
inT16  space,
inT16  ch_pitch 
) [inline]
void BLOCK::set_xheight ( inT32  height  )  [inline]
FCOORD BLOCK::skew (  )  const [inline]
void BLOCK::sort_rows (  ) 
inT16 BLOCK::space (  )  const [inline]
inT32 BLOCK::x_height (  )  const [inline]

Friends And Related Function Documentation

friend class BLOCK_RECT_IT [friend]

Reimplemented from PDBLK.


The documentation for this class was generated from the following files:
Generated on Sun Jul 18 17:11:03 2010 for Tesseract by  doxygen 1.6.3