Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

gui.h

Go to the documentation of this file.
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 "problem.h"
00023 #include "scene.h"
00024 #include "render.h"
00025 
00026 class Render;  // This needs to be here because of mutual reference
00027 
00029 
00040 class Gui {
00041  protected:
00042   string FilePath;
00043 
00045   virtual void CreateWindow() {};
00046 
00048   virtual void Init();
00049 
00051   virtual void MainLoop();
00052 
00054 
00055  public:
00056   Gui(Render *render);
00057   virtual ~Gui() {};
00058 
00059   Render *R;
00060 
00062   virtual void Start();
00063 
00065   bool Finished;
00066 
00068   virtual void HandleEvents() = 0;
00069 
00071   virtual void ButtonHandle(int b) {};
00072 };
00073 
00074 #endif
Motion Strategy Library


Web page maintained by Steve LaValle
Partial support provided by NSF CAREER Award IRI-970228 (LaValle), Honda Research, and Iowa State University.
Contributors: Anna Atramentov, Peng Cheng, James Kuffner, Steve LaValle, and Libo Yang.