// FILE: pixel.h // written for the course 2172, 1999 // #if !defined(_PIXEL_H_) #define _PIXEL_H_ #include "color.h" /* pixel is a color which belongs to * a specific figure designated by id */ class pixel { private: long id; // id of the shape it belongs to color c; // color public: pixel(color=0); // black by default // properties long get_id() const; void set_id(long); color get_color() const; void set_color(const color&); }; #endif