#if !defined(_DRAWABLE_H_) #define _DRAWABLE_H_ #include "color.h" #include "coordsys.h" #include "canvas.h" class drawable { protected: coordsys system; color pen_color; int depth; int order; static long last_id; long id; coordinate rotation_center; bool rotate; double rotation_angle; public: drawable(const coordsys&); void set_depth(int); void set_order(int); void set_pen_color(const color&); void set_rotate(bool = true); void set_rotation_center(const coordinate&); void set_rotation_angle(double); void set_id(long); int get_depth() const; int get_order() const; const color& get_pen_color() const; const coordinate& get_rotation_center() const; double get_rotation_angle() const; long get_id() const; virtual void draw(canvas&) = 0; }; int round(double); #endif