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

phNetImageWindow.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 _PHNETIMAGEWINDOW_H
00027 #define _PHNETIMAGEWINDOW_H
00028 
00029 /* 1.) Display header files here */
00030 /* ---------------------------- */
00031 #include <phServerSocket.h>
00032 #include <phImage.h>
00033 #include <phImageWindow.h>
00034 #include <phNetClientThread.h>
00035 
00036 /* ---------------------------------------------------------------------- */
00042 PHAPI(class) phNetImageWindow : public phImageWindow
00043 {
00044 private:
00045     /* Display Specific variables */
00046     uint32_t            m_portNum;
00047     phImage             m_convImage;
00048     phServerSocket      m_server;
00049     volatile uint32_t   m_client_running;
00050     phConditionCounter  m_clientCountVar;
00051     
00052     /* end GUI TK specific variables */
00053 
00054     virtual int private_show    (); /* unimplemented */
00055     virtual int private_hide    (); /* unimplemented */
00056 
00057     virtual int private_redraw  (); /* unimplemented */
00058     virtual int private_update  ();
00059     virtual int private_resize  ( uint32_t w, uint32_t h ); /* unimplemented */
00060     virtual int private_move    ( int32_t  x, int32_t  y ); /* unimplemented */
00061     virtual int private_minsize ( uint32_t min_w, uint32_t min_h);
00062 
00063 protected:
00064     virtual int run();
00065     virtual int wakeup();
00066 
00067 public:
00068     phNetImageWindow( int32_t  x, int32_t  y,
00069                       uint32_t w, uint32_t h,
00070                       char    *title,
00071                       uint32_t flags = phNOFLAG );
00072     ~phNetImageWindow();
00073 
00074     /* These are only supported by NetDisplay */
00075     int                 setPort( uint32_t portNum );
00076     uint32_t            getPort();
00077 
00078     virtual int         isOpen();
00079     
00080     virtual int         setFormats( uint32_t formats );
00081         
00082     virtual uint32_t    getWidth();
00083     virtual uint32_t    getHeight();
00084 
00085     virtual phImage    *getImage();
00086 };
00087 
00088 #endif /* _PHNETIMAGEWINDOW_H */
00089 




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