Gazebo

DummyGui.hh

00001 /*
00002  *  Gazebo - Outdoor Multi-Robot Simulator
00003  *  Copyright (C) 2003
00004  *     Nate Koenig & Andrew Howard
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  *
00020  */
00021 /* Desc: FLTK Mainwindow
00022  * Author: Renaud Barate
00023  * Date: 16 Feb 2008
00024  */
00025 #ifndef DUMMYGUI_HH
00026 #define DUMMYGUI_HH
00027 
00028 
00029 #include <X11/Xlib.h>
00030 #include <X11/Xutil.h>
00031 #include <GL/glx.h>
00032 
00033 #include "Gui.hh"
00034 
00035 namespace gazebo
00036 {
00037 
00038 
00040   class DummyGui : public Gui
00041   {
00043     public: DummyGui(int x, int y, int w, int h, const std::string &t);
00044 
00046     public: virtual ~DummyGui();
00047 
00048     public: virtual void Init() {}
00049     public: virtual void Update();
00050 
00052     public: unsigned int GetWidth() const { return 1; }
00053 
00055     public: unsigned int GetHeight() const { return 1; }
00056 
00058     public: int handle(int event) { return 0; }
00059 
00061     public: Window GetWindowId() const;
00062 
00064     public: XVisualInfo *GetVisualInfo() const;
00065 
00067     public: Display *GetDisplay() const;
00068 
00070     protected: Window windowId;
00071 
00073     protected: XVisualInfo *visual;
00074 
00076     protected: Display *display;
00077 
00079     protected: GLXContext context;
00080   };
00081 
00082 }
00083 
00084 #endif
00085 
00086 

Last updated Aug 04 2007