Files Classes Functions Hierarchy
00001 #ifndef DISKINTTEST_H 00002 #define DISKINTTEST_H 00003 00004 #include <cylinder.h> 00005 #include <disk.h> 00006 #include <gobj.h> 00007 #include <graphmisc.h> 00008 #include <plane.h> 00009 00013 class diskinttest 00014 { 00015 public: 00016 00018 gobjContainer xGraphics; 00019 00021 void test01(int & argc, char** argv); 00022 00024 void test02(int & argc, char** argv); 00026 void test03(int & argc, char** argv); 00027 00029 static void display01(); 00030 00032 static void keyboard01(unsigned char key, int x, int y); 00034 static void keyboard02(unsigned char key, int x, int y); 00036 static void keyboard03(unsigned char key, int x, int y); 00037 00038 static disk * D1ptr; 00039 static disk * D2ptr; 00040 static plane * P1ptr; 00041 static gobjMyCircleDraw * D1cd; 00042 static gobjMyCircleDraw * D2cd; 00043 00045 static gobjContainer * diskintersection; 00046 00047 static cylinder * C1ptr; 00048 static cylinder * C2ptr; 00049 00050 static gobjContainer * cylinderintersection; 00051 static bool cylinderscollide; 00052 00053 static gobjgluCylinder * C1cd; 00054 static gobjgluCylinder * C2cd; 00055 00056 /* Adjust the transparency in test03. */ 00057 static float transparency; 00058 00060 static bool * help; 00061 00062 /* Update for test01 before graphics display. */ 00063 static void update01(); 00064 /* Update for test02 before graphics display. */ 00065 static void update02(); 00066 /* Update for test03 before graphics display. */ 00067 static void update03(); 00068 /* Spliting the work of update03. */ 00069 static void update03lineline(); 00070 00071 }; 00072 00073 00074 #endif 00075 00076
1.5.8