Tesseract  3.02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BLOCK_RES Class Reference

#include <pageres.h>

Inheritance diagram for BLOCK_RES:
ELIST_LINK

Public Member Functions

 BLOCK_RES ()
 
 BLOCK_RES (BLOCK *the_block)
 
 ~BLOCK_RES ()
 
- Public Member Functions inherited from ELIST_LINK
 ELIST_LINK ()
 
 ELIST_LINK (const ELIST_LINK &)
 
void operator= (const ELIST_LINK &)
 

Public Attributes

BLOCKblock
 
inT32 char_count
 
inT32 rej_count
 
inT16 font_class
 
inT16 row_count
 
float x_height
 
BOOL8 font_assigned
 
BOOL8 bold
 
BOOL8 italic
 
ROW_RES_LIST row_res_list
 

Detailed Description

Definition at line 256 of file pageres.h.

Constructor & Destructor Documentation

BLOCK_RES::BLOCK_RES ( )
inline

Definition at line 271 of file pageres.h.

271  {
272  } // empty constructor
BLOCK_RES::BLOCK_RES ( BLOCK the_block)

Definition at line 110 of file pageres.cpp.

110  {
111  ROW_IT row_it (the_block->row_list ());
112  ROW_RES_IT row_res_it(&row_res_list);
113 
114  char_count = 0;
115  rej_count = 0;
116  font_class = -1; //not assigned
117  x_height = -1.0;
119  bold = FALSE;
120  italic = FALSE;
121  row_count = 0;
122 
123  block = the_block;
124 
125  for (row_it.mark_cycle_pt(); !row_it.cycled_list(); row_it.forward()) {
126  row_res_it.add_to_end(new ROW_RES(row_it.data()));
127  }
128 }
BOOL8 font_assigned
Definition: pageres.h:264
BLOCK * block
Definition: pageres.h:258
inT32 char_count
Definition: pageres.h:259
ROW_LIST * row_list()
get rows
Definition: ocrblock.h:121
BOOL8 bold
Definition: pageres.h:266
#define FALSE
Definition: capi.h:28
inT16 font_class
Definition: pageres.h:261
inT32 rej_count
Definition: pageres.h:260
float x_height
Definition: pageres.h:263
ROW_RES_LIST row_res_list
Definition: pageres.h:269
inT16 row_count
Definition: pageres.h:262
BOOL8 italic
Definition: pageres.h:267
BLOCK_RES::~BLOCK_RES ( )
inline

Definition at line 276 of file pageres.h.

276  { // destructor
277  }

Member Data Documentation

BLOCK* BLOCK_RES::block

Definition at line 258 of file pageres.h.

BOOL8 BLOCK_RES::bold

Definition at line 266 of file pageres.h.

inT32 BLOCK_RES::char_count

Definition at line 259 of file pageres.h.

BOOL8 BLOCK_RES::font_assigned

Definition at line 264 of file pageres.h.

inT16 BLOCK_RES::font_class

Definition at line 261 of file pageres.h.

BOOL8 BLOCK_RES::italic

Definition at line 267 of file pageres.h.

inT32 BLOCK_RES::rej_count

Definition at line 260 of file pageres.h.

inT16 BLOCK_RES::row_count

Definition at line 262 of file pageres.h.

ROW_RES_LIST BLOCK_RES::row_res_list

Definition at line 269 of file pageres.h.

float BLOCK_RES::x_height

Definition at line 263 of file pageres.h.


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