GLConsole.h

00001 // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
00002 /* 
00003  * Copyright (C) 2008 Micha Hersch, EPFL
00004  * RobotCub Consortium, European Commission FP6 Project IST-004370
00005  * email:   micha.hersch@robotcub.org
00006  * website: www.robotcub.org
00007  * Permission is granted to copy, distribute, and/or modify this program
00008  * under the terms of the GNU General Public License, version 2 or any
00009  * later version published by the Free Software Foundation.
00010  *
00011  * A copy of the license can be found at
00012  * http://www.robotcub.org/icub/license/gpl.txt
00013  *
00014  * This program is distributed in the hope that it will be useful, but
00015  * WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
00017  * Public License for more details
00018  */
00019 #ifndef __GLCONSOLE_H__
00020 #define __GLCONSOLE_H__
00021 
00022 
00023 #include <GL/glut.h>
00024 
00025 
00026 #include "GLSubWindow.h"
00027 #include "Console.h"
00028 #include "Timer.h"
00029 
00030 
00031 class GLConsole : public Console, public GLSubWindow
00032 {
00033 protected:
00034   int           m_FontHeight;
00035   int           m_CursorStatus;
00036   Timer         m_CursorTimer;
00037 
00038   //int   m_Width;
00039   //int   m_Height;
00040 public:
00041   GLConsole(pGLSubWindow parentWindow = NULL);
00042   ~GLConsole();
00043 
00044   virtual   void  Render();
00045 //            void  Resize(int width, int height);
00046   virtual   int   AutoCompletion();
00047 
00048   virtual void  Resize(int w, int h);
00049   virtual void  OnNormalKey(char key);
00050   virtual void  OnSpecialKey(int key);
00051 
00052 };
00053 typedef GLConsole *pGLConsole;
00054 
00055 #endif
 All Data Structures Functions Variables

Generated on Wed Sep 22 16:51:25 2010 for Body_Schema_Learning by  doxygen 1.6.1