All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
BLOCK_RES Class Reference

#include <pageres.h>

Inheritance diagram for BLOCK_RES:
ELIST_LINK

Public Member Functions

 BLOCK_RES ()
 
 BLOCK_RES (bool merge_similar_words, 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 97 of file pageres.h.

Constructor & Destructor Documentation

BLOCK_RES::BLOCK_RES ( )
inline

Definition at line 112 of file pageres.h.

112  {
113  } // empty constructor
BLOCK_RES::BLOCK_RES ( bool  merge_similar_words,
BLOCK the_block 
)

Definition at line 84 of file pageres.cpp.

84  {
85  ROW_IT row_it (the_block->row_list ());
86  ROW_RES_IT row_res_it(&row_res_list);
87 
88  char_count = 0;
89  rej_count = 0;
90  font_class = -1; //not assigned
91  x_height = -1.0;
93  bold = FALSE;
94  italic = FALSE;
95  row_count = 0;
96 
97  block = the_block;
98 
99  for (row_it.mark_cycle_pt(); !row_it.cycled_list(); row_it.forward()) {
100  row_res_it.add_to_end(new ROW_RES(merge_similar_words, row_it.data()));
101  }
102 }
BOOL8 font_assigned
Definition: pageres.h:105
BLOCK * block
Definition: pageres.h:99
float x_height
Definition: pageres.h:104
BOOL8 italic
Definition: pageres.h:108
inT32 char_count
Definition: pageres.h:100
inT32 rej_count
Definition: pageres.h:101
ROW_RES_LIST row_res_list
Definition: pageres.h:110
inT16 font_class
Definition: pageres.h:102
#define FALSE
Definition: capi.h:29
inT16 row_count
Definition: pageres.h:103
ROW_LIST * row_list()
get rows
Definition: ocrblock.h:120
BOOL8 bold
Definition: pageres.h:107
BLOCK_RES::~BLOCK_RES ( )
inline

Definition at line 117 of file pageres.h.

117  { // destructor
118  }

Member Data Documentation

BLOCK* BLOCK_RES::block

Definition at line 99 of file pageres.h.

BOOL8 BLOCK_RES::bold

Definition at line 107 of file pageres.h.

inT32 BLOCK_RES::char_count

Definition at line 100 of file pageres.h.

BOOL8 BLOCK_RES::font_assigned

Definition at line 105 of file pageres.h.

inT16 BLOCK_RES::font_class

Definition at line 102 of file pageres.h.

BOOL8 BLOCK_RES::italic

Definition at line 108 of file pageres.h.

inT32 BLOCK_RES::rej_count

Definition at line 101 of file pageres.h.

inT16 BLOCK_RES::row_count

Definition at line 103 of file pageres.h.

ROW_RES_LIST BLOCK_RES::row_res_list

Definition at line 110 of file pageres.h.

float BLOCK_RES::x_height

Definition at line 104 of file pageres.h.


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