$search
00001 #ifndef GUI_HH 00002 #define GUI_HH 00003 00004 /* 00005 James R. Diebel 00006 Stanford University 00007 00008 Started: 30 August 2004 00009 Last revised: 30 Sugust 2004 00010 00011 gui.hh - defines GUI namespace and set of methods that contains 00012 functionality required to create a graphical user interface to view a 00013 Mesh object (MSH file) 00014 00015 Depends on: 00016 - Mesh class (mesh.hh) 00017 -- Vec3d class (vec3d.hh) 00018 -- Vert class (vert.hh) 00019 -- Edge class (edge.hh) 00020 -- Face class (face.hh) 00021 */ 00022 00023 #include "mesh.hh" 00024 #include <GL/glut.h> 00025 #include "glui.h" 00026 00027 using namespace std; 00028 00029 namespace bmtk { 00030 00031 // Methods 00032 int startGUI(Mesh* m_); 00033 int startGUI(Mesh* m1_, Mesh* m2_); 00034 void controlCB(int control); 00035 void myGlutKeyboard(unsigned char Key, int x, int y); 00036 void myGlutMenu(int value); 00037 void myGlutIdle(void); 00038 void myGlutMouse(int button, int button_state, int x, int y); 00039 void myGlutMotion(int x, int y); 00040 void myGlutReshape(int x, int y); 00041 void drawMesh(void); 00042 void update(); 00043 void myGlutDisplay(void); 00044 void saveOptions(); 00045 void loadOptions(); 00046 00047 } // namespace bmtk 00048 00049 #endif