TBOX Class Reference

#include <rect.h>

List of all members.

Public Member Functions

 TBOX ()
 TBOX (const ICOORD pt1, const ICOORD pt2)
 TBOX (inT16 left, inT16 bottom, inT16 right, inT16 top)
 TBOX (const FCOORD pt)
bool null_box () const
bool operator== (const TBOX &other) const
inT16 top () const
void set_top (int y)
inT16 bottom () const
void set_bottom (int y)
inT16 left () const
void set_left (int x)
inT16 right () const
void set_right (int x)
const ICOORDbotleft () const
ICOORD botright () const
ICOORD topleft () const
const ICOORDtopright () const
inT16 height () const
inT16 width () const
inT32 area () const
void pad (int xpad, int ypad)
void move_bottom_edge (const inT16 y)
void move_left_edge (const inT16 x)
void move_right_edge (const inT16 x)
void move_top_edge (const inT16 y)
void move (const ICOORD vec)
void move (const FCOORD vec)
void scale (const float f)
void scale (const FCOORD vec)
void rotate (const FCOORD &vec)
void rotate_large (const FCOORD &vec)
bool contains (const FCOORD pt) const
bool contains (const TBOX &box) const
bool overlap (const TBOX &box) const
bool major_overlap (const TBOX &box) const
bool x_overlap (const TBOX &box) const
int x_gap (const TBOX &box) const
int y_gap (const TBOX &box) const
bool major_x_overlap (const TBOX &box) const
bool y_overlap (const TBOX &box) const
bool major_y_overlap (const TBOX &box) const
double overlap_fraction (const TBOX &box) const
double x_overlap_fraction (const TBOX &box) const
double y_overlap_fraction (const TBOX &box) const
bool x_almost_equal (const TBOX &box, int tolerance) const
bool almost_equal (const TBOX &box, int tolerance) const
TBOX intersection (const TBOX &box) const
TBOX bounding_union (const TBOX &box) const
void set_to_given_coords (int x_min, int y_min, int x_max, int y_max)
void print () const
void append_debug (STRING *str) const
void plot (ScrollView *fd) const
void plot (ScrollView *fd, ScrollView::Color fill_colour, ScrollView::Color border_colour) const
bool Serialize (FILE *fp) const
bool DeSerialize (bool swap, FILE *fp)

Friends

TBOXoperator+= (TBOX &, const TBOX &)
TBOXoperator&= (TBOX &, const TBOX &)

Constructor & Destructor Documentation

TBOX::TBOX (  )  [inline]
TBOX::TBOX ( const ICOORD  pt1,
const ICOORD  pt2 
)
TBOX::TBOX ( inT16  left,
inT16  bottom,
inT16  right,
inT16  top 
)
TBOX::TBOX ( const FCOORD  pt  )  [inline]

Member Function Documentation

bool TBOX::almost_equal ( const TBOX box,
int  tolerance 
) const
void TBOX::append_debug ( STRING str  )  const [inline]
inT32 TBOX::area (  )  const [inline]
const ICOORD& TBOX::botleft (  )  const [inline]
ICOORD TBOX::botright (  )  const [inline]
inT16 TBOX::bottom (  )  const [inline]
TBOX TBOX::bounding_union ( const TBOX box  )  const
bool TBOX::contains ( const TBOX box  )  const [inline]
bool TBOX::contains ( const FCOORD  pt  )  const [inline]
bool TBOX::DeSerialize ( bool  swap,
FILE *  fp 
)
inT16 TBOX::height (  )  const [inline]
TBOX TBOX::intersection ( const TBOX box  )  const
inT16 TBOX::left (  )  const [inline]
bool TBOX::major_overlap ( const TBOX box  )  const [inline]
bool TBOX::major_x_overlap ( const TBOX box  )  const [inline]
bool TBOX::major_y_overlap ( const TBOX box  )  const [inline]
void TBOX::move ( const FCOORD  vec  )  [inline]
void TBOX::move ( const ICOORD  vec  )  [inline]
void TBOX::move_bottom_edge ( const inT16  y  )  [inline]
void TBOX::move_left_edge ( const inT16  x  )  [inline]
void TBOX::move_right_edge ( const inT16  x  )  [inline]
void TBOX::move_top_edge ( const inT16  y  )  [inline]
bool TBOX::null_box (  )  const [inline]
bool TBOX::operator== ( const TBOX other  )  const [inline]
bool TBOX::overlap ( const TBOX box  )  const [inline]
double TBOX::overlap_fraction ( const TBOX box  )  const [inline]
void TBOX::pad ( int  xpad,
int  ypad 
) [inline]
void TBOX::plot ( ScrollView fd,
ScrollView::Color  fill_colour,
ScrollView::Color  border_colour 
) const
void TBOX::plot ( ScrollView fd  )  const [inline]
void TBOX::print (  )  const [inline]
inT16 TBOX::right (  )  const [inline]
void TBOX::rotate ( const FCOORD vec  )  [inline]
void TBOX::rotate_large ( const FCOORD vec  ) 
void TBOX::scale ( const FCOORD  vec  )  [inline]
void TBOX::scale ( const float  f  )  [inline]
bool TBOX::Serialize ( FILE *  fp  )  const
void TBOX::set_bottom ( int  y  )  [inline]
void TBOX::set_left ( int  x  )  [inline]
void TBOX::set_right ( int  x  )  [inline]
void TBOX::set_to_given_coords ( int  x_min,
int  y_min,
int  x_max,
int  y_max 
) [inline]
void TBOX::set_top ( int  y  )  [inline]
inT16 TBOX::top (  )  const [inline]
ICOORD TBOX::topleft (  )  const [inline]
const ICOORD& TBOX::topright (  )  const [inline]
inT16 TBOX::width (  )  const [inline]
bool TBOX::x_almost_equal ( const TBOX box,
int  tolerance 
) const
int TBOX::x_gap ( const TBOX box  )  const [inline]
bool TBOX::x_overlap ( const TBOX box  )  const [inline]
double TBOX::x_overlap_fraction ( const TBOX box  )  const [inline]
int TBOX::y_gap ( const TBOX box  )  const [inline]
bool TBOX::y_overlap ( const TBOX box  )  const [inline]
double TBOX::y_overlap_fraction ( const TBOX box  )  const [inline]

Friends And Related Function Documentation

TBOX& operator&= ( TBOX op1,
const TBOX op2 
) [friend]
TBOX& operator+= ( TBOX op1,
const TBOX op2 
) [friend]

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