Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

phFLImageWindow.h

Go to the documentation of this file.
00001 /* ---------------------------------------------------------------------------
00002     Phission : 
00003         Realtime Vision Processing System
00004     
00005     Copyright (C) 2003-2006 Philip D.S. Thoren (pthoren@cs.uml.edu)
00006     University of Massachusetts at Lowell,
00007     Laboratory for Artificial Intelligence and Robotics
00008     
00009     This file is part of Phission.
00010 
00011     Phission is free software; you can redistribute it and/or modify
00012     it under the terms of the GNU Lesser General Public License as published by
00013     the Free Software Foundation; either version 2 of the License, or
00014     (at your option) any later version.
00015 
00016     Phission is distributed in the hope that it will be useful,
00017     but WITHOUT ANY WARRANTY; without even the implied warranty of
00018     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019     GNU Lesser General Public License for more details.
00020 
00021     You should have received a copy of the GNU Lesser General Public License
00022     along with Phission; if not, write to the Free Software
00023     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00024 
00025  ---------------------------------------------------------------------------*/
00026 #ifndef _PHFLIMAGEWINDOW_H
00027 #define _PHFLIMAGEWINDOW_H
00028 
00029 #include <phStandard.h>
00030 /* 1.) GUI TK header files here */
00031 #include <FL/Fl.H>
00032 #include <FL/Fl_Double_Window.H>
00033 #include <FL/fl_draw.H>
00034 /* ---------------------------- */
00035 #include <phImageWindow.h>
00036 
00037 /* ------------------------------------------------------------------------ */
00043 PHAPI(class) phFLImageWindow : public Fl_Double_Window, public phImageWindow
00044 {
00045 private:
00046     int         m_redraw;
00047     int         m_exit_now;
00048 
00049     virtual int setup();
00050     virtual int wakeup();
00051     virtual int run();
00052 
00053     virtual int private_show();
00054     virtual int private_hide();
00055     
00056     virtual int private_redraw  ();
00057     virtual int private_update  ();
00058     virtual int private_resize  ( uint32_t w,     uint32_t h    );
00059     virtual int private_move    ( int32_t  x,     int32_t  y    );
00060     virtual int private_minsize ( uint32_t min_w, uint32_t min_h);
00061 
00062 public:
00063     phFLImageWindow( int32_t  x, int32_t  y,
00064                      uint32_t w, uint32_t h,
00065                      char    *title,
00066                      uint32_t flags = phNOFLAG );
00067     ~phFLImageWindow();
00068 
00069     void draw       (); /* Fl_Double_Window */
00070     void resize     ( int x, int y, int w, int h ); /* Fl_Double_Window */
00071     void user_close ( void *ptr );
00072 
00073     virtual void hide();
00074     int handle(int event);
00075     
00076     virtual int isOpen();
00077 };
00078 
00079 #endif /* _PHFLIMAGEWINDOW_H */




Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

Generated on Sat Jun 16 02:44:03 2007 for phission by  doxygen 1.4.4