$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 using namespace bmtk; 00029 00030 // Methods 00031 int startGUI(Mesh* m_); 00032 void controlCB(int control); 00033 void myGlutKeyboard(unsigned char Key, int x, int y); 00034 void myGlutMenu(int value); 00035 void myGlutIdle(void); 00036 void myGlutMouse(int button, int button_state, int x, int y); 00037 void myGlutMotion(int x, int y); 00038 void myGlutReshape(int x, int y); 00039 void drawMesh(void); 00040 void update(); 00041 void takeScreenShot(); 00042 void myGlutDisplay(void); 00043 int startGUI(Mesh *m_); 00044 void saveOptions(); 00045 void loadOptions(); 00046 00047 #endif