PDBLK Class Reference

page block More...

#include <pdblock.h>

Inheritance diagram for PDBLK:
BLOCK

List of all members.

Public Member Functions

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

Protected Attributes

POLY_BLOCKhand_poly
ICOORDELT_LIST leftside
ICOORDELT_LIST rightside
TBOX box
int index_

Friends

class BLOCK_RECT_IT

Detailed Description

page block


Constructor & Destructor Documentation

PDBLK::PDBLK (  )  [inline]

empty constructor

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

simple constructor

PDBLK::~PDBLK (  )  [inline]

destructor


Member Function Documentation

const TBOX& PDBLK::bounding_box (  )  const [inline]

get real box

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

get box

BOOL8 PDBLK::contains ( ICOORD  pt  ) 

is pt inside block

int PDBLK::index (  )  const [inline]
void PDBLK::move ( const ICOORD  vec  ) 

reposition block

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

assignment

Parameters:
source from this
void PDBLK::plot ( ScrollView window,
inT32  serial,
ScrollView::Color  colour 
)

draw histogram

Parameters:
window window to draw in
serial serial number
colour colour to draw in
POLY_BLOCK* PDBLK::poly_block (  )  const [inline]
Pix * PDBLK::render_mask ( const FCOORD rerotation  ) 
void PDBLK::set_index ( int  value  )  [inline]
void PDBLK::set_poly_block ( POLY_BLOCK blk  )  [inline]

set the poly block

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

set vertex lists

Parameters:
left list of left vertices
right list of right vertices
void PDBLK::show ( IMAGE image,
ScrollView window 
)

show image

Parameters:
image image to show
window window to show in

Friends And Related Function Documentation

friend class BLOCK_RECT_IT [friend]

Reimplemented in BLOCK.


Member Data Documentation

TBOX PDBLK::box [protected]
int PDBLK::index_ [protected]
ICOORDELT_LIST PDBLK::leftside [protected]
ICOORDELT_LIST PDBLK::rightside [protected]

The documentation for this class was generated from the following files:
Generated on Thu Feb 2 08:19:24 2012 for Tesseract by  doxygen 1.6.3