next up previous contents
Next: object.cpp Up: CHO Data Previous: cell.cpp

cell.h

 

//////////////////////////////////////////////////////////////////////////
//
//
//                               cell.h    
//
//
//                           Michael Boland
//                          2 September 1995
//
//
//////////////////////////////////////////////////////////////////////////


#ifndef CELL_H
#define CELL_H

#include 
#include 

#include "object.h"


class Cell {

 private:
	List objects ;
	int    cell_num_objects ;
	int    cell_num_pixels ;
	int    cell_num_colors ;
	double cell_intensity[MAX_COLORS + 1] ;

 public:
	Cell() ;
	Cell(ifstream& infile) ;
	~Cell() ;

	int     cell_number_pixels() ;
	int     cell_number_colors() ;
	int     cell_number_objects() ;
	int     cell_add_object(Object* o) ;
	double  cell_color_intensity(int color) ;
	Object* cell_first_object() ;
	Object* cell_next_object() ;
	Pixel*  cell_pixel_array() ;

} ;


inline int Cell::cell_number_pixels()
{
	return(cell_num_pixels) ;
}

inline int Cell::cell_number_colors()
{
	return(cell_num_colors) ;
}

inline int Cell::cell_number_objects()
{
	return(cell_num_objects) ;
}

inline Object* Cell::cell_first_object()
{
	return(objects.list_top()) ;
}

inline Object* Cell::cell_next_object()
{
	return(objects.list_next()) ;
}


#endif

 



Copyright ©1999 Michael V. Boland
1999-09-18