00001 //---------------------------------------------------------------------- 00002 // The Motion Strategy Library (MSL) 00003 //---------------------------------------------------------------------- 00004 // 00005 // Copyright (c) 1998-2000 Iowa State University and Steve LaValle. 00006 // All Rights Reserved. 00007 // 00008 // Permission to use, copy, and distribute this software and its 00009 // documentation is hereby granted free of charge, provided that 00010 // (1) it is not a component of a commercial product, and 00011 // (2) this notice appears in all copies of the software and 00012 // related documentation. 00013 // 00014 // Iowa State University and the author make no representations 00015 // about the suitability or fitness of this software for any purpose. 00016 // It is provided "as is" without express or implied warranty. 00017 //---------------------------------------------------------------------- 00018 00019 #ifndef MSL_GUI_H 00020 #define MSL_GUI_H 00021 00022 #include <LEDA/list.h> 00023 #include <LEDA/matrix.h> 00024 #include <LEDA/point.h> 00025 #include <LEDA/polygon.h> 00026 #include <LEDA/stream.h> 00027 #include <LEDA/string.h> 00028 #include <LEDA/vector.h> 00029 #include <LEDA/window.h> 00030 #include <LEDA/menu.h> 00031 00032 #include "problem.h" 00033 #include "scene.h" 00034 #include "render.h" 00035 00036 class Render; // This needs to be here because of mutual reference 00037 00038 #include <LEDA/REDEFINE_NAMES.h> 00039 00041 00052 class Gui { 00053 protected: 00054 window *W; 00055 Render *R; 00056 string FilePath; 00057 00059 virtual void CreateMenuWindow() {}; 00060 00062 virtual void ButtonHandle(int b) {}; 00063 00065 virtual void Init(); 00066 00068 virtual void MainLoop(); 00069 00070 public: 00071 Gui(Render *render); 00072 virtual ~Gui() {}; 00073 00075 virtual void Start(); 00076 00078 bool Finished; 00079 00081 virtual void HandleEvents(); 00082 00083 }; 00084 00085 #include <LEDA/UNDEFINE_NAMES.h> 00086 00087 #endif