Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

OPIE.H Source File
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

OPIE.H

Go to the documentation of this file.
00001 //Filename    : OPIE.H
00002 //Description : Object Pie Chart
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];         // points of the pie, 0-360, total 361 points
00024 
00025     char* slot_icon_ptr;
00026 
00027     int   pie_radius;
00028     int   box_width;
00029 
00030     float last_degree;                            // degree of the last drawn slice
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

Generated on Fri Aug 23 01:38:10 2002 for VirtualU by doxygen1.2.17