Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Box Class Reference

#include <frame.h>

Inheritance diagram for Box:

Face List of all members.

Public Methods

 Box ()
 default constructor. More...

 Box (unsigned int width, unsigned int height, unsigned int x, unsigned int y)
 Box (Box &other)
virtual ~Box ()
 destructor. More...

virtual BOX_TYPE get_type ()
virtual Box * get_copy ()
unsigned int get_width ()
void set_width (unsigned int width)
unsigned int get_height ()
void set_height (unsigned int height)
unsigned int get_x ()
void set_x (unsigned int x)
unsigned int get_y ()
void set_y (unsigned int y)

Private Attributes

unsigned int x
unsigned int y
unsigned int width
unsigned int height

Constructor & Destructor Documentation

Box::Box  
 

default constructor.

Box::Box unsigned int    width,
unsigned int    height,
unsigned int    x,
unsigned int    y
 

initilise with several points

Parameters:
width  width of the box
height  height of the box
x  x value of upper left hand corner of the box
y  y value of upper left hand corner of the box

Box::Box Box &    other
 

Box::~Box   [virtual]
 

destructor.


Member Function Documentation

Box * Box::get_copy   [virtual]
 

Reimplemented in Face.

unsigned int Box::get_height  
 

Returns:
height of the box

BOX_TYPE Box::get_type   [virtual]
 

used to tell people using this class, when it is in an object, what type it really is so it can be cast to the proper thing

Reimplemented in Face.

unsigned int Box::get_width  
 

Returns:
width of the box

unsigned int Box::get_x  
 

Returns:
x value of box

unsigned int Box::get_y  
 

Returns:
y value of box

void Box::set_height unsigned int    height
 

sets the height of the box

Parameters:
height  the height of the box

void Box::set_width unsigned int    width
 

sets the width of the box

Parameters:
width  the width of the box

void Box::set_x unsigned int    x
 

sets the x value of the box

Parameters:
x  the nex x value

void Box::set_y unsigned int    y
 

sets the y value of the box

Parameters:
y  the nex y value


Member Data Documentation

unsigned int Box::height [private]
 

height of the box

unsigned int Box::width [private]
 

width of the box

unsigned int Box::x [private]
 

x value of the upper left hand corner of the box

unsigned int Box::y [private]
 

y value of the upper left hand corner of the box


The documentation for this class was generated from the following files:
Generated on Wed Apr 23 10:42:34 2003 for BioFilter by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002