POLY_BLOCK Class Reference

#include <polyblk.h>

List of all members.

Public Member Functions

 POLY_BLOCK ()
 POLY_BLOCK (const TBOX &box, PolyBlockType type)
 POLY_BLOCK (ICOORDELT_LIST *points, PolyBlockType type)
 ~POLY_BLOCK ()
TBOXbounding_box ()
ICOORDELT_LIST * points ()
PolyBlockType isA () const
bool IsText () const
POLY_BLOCK::compute_bb

Compute the bounding box from the outline points.

void compute_bb ()
POLY_BLOCK::rotate

Rotate the POLY_BLOCK.

Parameters:
rotation cos, sin of angle
void rotate (FCOORD rotation)
POLY_BLOCK::winding_number

Return the winding number of the outline around the given point.

Parameters:
point point to wind around
bool contains (POLY_BLOCK *other)
 true if other is inside this.
inT16 winding_number (const ICOORD &test_pt)

POLY_BLOCK::reflect_in_y_axis

Reflect the coords of the polygon in the y-axis. (Flip the sign of x.)



void reflect_in_y_axis ()
void move (ICOORD shift)
void plot (ScrollView *window, inT32 num)
void fill (ScrollView *window, ScrollView::Color colour)
bool overlap (POLY_BLOCK *other)
 true if the polygons of other and this overlap.
static ScrollView::Color ColorForPolyBlockType (PolyBlockType type)
 Returns a color to draw the given type.

Constructor & Destructor Documentation

POLY_BLOCK::POLY_BLOCK (  )  [inline]
POLY_BLOCK::POLY_BLOCK ( const TBOX box,
PolyBlockType  type 
)
POLY_BLOCK::POLY_BLOCK ( ICOORDELT_LIST *  points,
PolyBlockType  type 
)
POLY_BLOCK::~POLY_BLOCK (  )  [inline]

Member Function Documentation

TBOX* POLY_BLOCK::bounding_box (  )  [inline]
ScrollView::Color POLY_BLOCK::ColorForPolyBlockType ( PolyBlockType  type  )  [static]

Returns a color to draw the given type.

void POLY_BLOCK::compute_bb (  ) 
bool POLY_BLOCK::contains ( POLY_BLOCK other  ) 

true if other is inside this.

void POLY_BLOCK::fill ( ScrollView window,
ScrollView::Color  colour 
)
PolyBlockType POLY_BLOCK::isA (  )  const [inline]
bool POLY_BLOCK::IsText (  )  const [inline]
void POLY_BLOCK::move ( ICOORD  shift  ) 

POLY_BLOCK::move

Move the POLY_BLOCK.

Parameters:
shift x,y translation vector
bool POLY_BLOCK::overlap ( POLY_BLOCK other  ) 

true if the polygons of other and this overlap.

void POLY_BLOCK::plot ( ScrollView window,
inT32  num 
)
ICOORDELT_LIST* POLY_BLOCK::points (  )  [inline]
void POLY_BLOCK::reflect_in_y_axis (  ) 
void POLY_BLOCK::rotate ( FCOORD  rotation  ) 
inT16 POLY_BLOCK::winding_number ( const ICOORD test_pt  ) 

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