Files Classes Functions Hierarchy
00001 #ifndef PARTITIONSTEST_H 00002 #define PARTITIONSTEST_H 00003 00004 #include <vector> 00005 using namespace std; 00006 00007 #include <gobj.h> 00008 #include <partitionspace.h> 00009 #include <point.h> 00010 #include <typedefs.h> 00011 00015 class partitionstest 00016 { 00017 public: 00018 00019 typedef point2<double> pt2; 00020 typedef point3<double> pt3; 00021 00023 vector<pt2> vec; 00024 00026 static partitionstest * global; 00028 void set() 00029 { partitionstest::global=this; } 00030 00032 vector<uint> red; 00034 vector<uint> blue; 00035 00037 partitionspace<pt2> * ps; 00038 00040 partitionstest(int argc, char** argv); 00041 00043 partitionstest(); 00044 00046 uint width; 00048 uint height; 00049 00051 static void keyboard01(unsigned char key, int x, int y); 00053 static void display01(); 00054 00055 static void display02(); 00056 00058 static void reshape(GLsizei w1, GLsizei h1); 00059 00061 static void mousefunc01(int button, int state, int x, int y); 00062 00064 void addpoint(intc x, intc y); 00066 void addstar( intc k, intc x, intc y ); 00068 void addstarbig(intc x, intc y); 00069 00071 void test01(); 00072 00074 void test02(); 00075 00077 void test03(); 00078 00080 void test04(); 00082 void test05(); 00084 void test06(int argc, char** argv); 00085 00087 gobjContainer xGraphics; 00088 }; 00089 00090 00091 #endif 00092 00093
1.5.8