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

page block More...

#include <pdblock.h>

Collaboration diagram for PDBLK:

Public Member Functions

 PDBLK ()
 empty constructor More...
 
 PDBLK (int16_t xmin, int16_t ymin, int16_t xmax, int16_t ymax)
 simple constructor More...
 
void set_sides (ICOORDELT_LIST *left, ICOORDELT_LIST *right)
 
 ~PDBLK ()
 destructor More...
 
POLY_BLOCKpoly_block () const
 
void set_poly_block (POLY_BLOCK *blk)
 set the poly block More...
 
void bounding_box (ICOORD &bottom_left, ICOORD &top_right) const
 get box More...
 
const TBOXbounding_box () const
 get real box More...
 
int index () const
 
void set_index (int value)
 
bool contains (ICOORD pt)
 is pt inside block More...
 
void move (const ICOORD vec)
 reposition block More...
 
Pix * render_mask (const FCOORD &rerotation, TBOX *mask_box)
 
void plot (ScrollView *window, int32_t serial, ScrollView::Color colour)
 
PDBLKoperator= (const PDBLK &source)
 

Protected Attributes

POLY_BLOCKhand_poly
 
ICOORDELT_LIST leftside
 
ICOORDELT_LIST rightside
 
TBOX box
 
int index_
 

Friends

class BLOCK_RECT_IT
 
class BLOCK
 

Detailed Description

page block

Constructor & Destructor Documentation

◆ PDBLK() [1/2]

PDBLK::PDBLK ( )
inline

empty constructor

◆ PDBLK() [2/2]

PDBLK::PDBLK ( int16_t  xmin,
int16_t  ymin,
int16_t  xmax,
int16_t  ymax 
)

simple constructor

◆ ~PDBLK()

PDBLK::~PDBLK ( )
inline

destructor

Member Function Documentation

◆ bounding_box() [1/2]

void PDBLK::bounding_box ( ICOORD bottom_left,
ICOORD top_right 
) const
inline

get box

◆ bounding_box() [2/2]

const TBOX& PDBLK::bounding_box ( ) const
inline

get real box

◆ contains()

bool PDBLK::contains ( ICOORD  pt)

is pt inside block

◆ index()

int PDBLK::index ( ) const
inline

◆ move()

void PDBLK::move ( const ICOORD  vec)

reposition block

◆ operator=()

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

assignment

Parameters
sourcefrom this

◆ plot()

void PDBLK::plot ( ScrollView window,
int32_t  serial,
ScrollView::Color  colour 
)

draw histogram

Parameters
windowwindow to draw in
serialserial number
colourcolour to draw in

◆ poly_block()

POLY_BLOCK* PDBLK::poly_block ( ) const
inline

◆ render_mask()

Pix * PDBLK::render_mask ( const FCOORD rerotation,
TBOX mask_box 
)

◆ set_index()

void PDBLK::set_index ( int  value)
inline

◆ set_poly_block()

void PDBLK::set_poly_block ( POLY_BLOCK blk)
inline

set the poly block

◆ set_sides()

void PDBLK::set_sides ( ICOORDELT_LIST *  left,
ICOORDELT_LIST *  right 
)

set vertex lists

Parameters
leftlist of left vertices
rightlist of right vertices

Friends And Related Function Documentation

◆ BLOCK

friend class BLOCK
friend

◆ BLOCK_RECT_IT

friend class BLOCK_RECT_IT
friend

Member Data Documentation

◆ box

TBOX PDBLK::box
protected

◆ hand_poly

POLY_BLOCK* PDBLK::hand_poly
protected

◆ index_

int PDBLK::index_
protected

◆ leftside

ICOORDELT_LIST PDBLK::leftside
protected

◆ rightside

ICOORDELT_LIST PDBLK::rightside
protected

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