00001
00002
00003
00004 #ifndef __OPIE_H
00005 #define __OPIE_H
00006
00007 #ifndef __ALL_H
00008 #include <ALL.H>
00009 #endif
00010
00011 enum { MAX_DEGREE = 360 };
00012
00013
00014
00016 class PieChart {
00017 private:
00019 struct PiePoint {
00020 int x, y;
00021 };
00022
00023 PiePoint pie_point_table[MAX_DEGREE];
00024
00025 char* slot_icon_ptr;
00026
00027 int pie_radius;
00028 int box_width;
00029
00030 float last_degree;
00031
00032 public:
00033 void init(char* =NULL);
00034
00035 void init_image(int= -1);
00036 void put_image(int,int);
00037 void draw_slice(float,int);
00038 };
00039
00040 extern PieChart pie_chart;
00041
00042
00043 #endif