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

SDLDisplay.cpp

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 /* ---------------------------------------------------------------------- */
00027 /* plugins/display/sdl/SDLDisplay.cpp
00028  *
00029  * SDLDisplay : cross platform fast image displaying utility
00030  *      (cross platform except possibly the phImage class)
00031  *      
00032  * ---------------------------------------------------------------------- */
00033 #ifdef HAVE_CONFIG_H
00034     #include <phissionconfig.h>
00035 #endif
00036 
00037 #include <phStandard.h>
00038 
00039 #include <SDLDisplay.h>
00040 #include <phSDLImageWindow.h>
00041 
00042 #include <phError.h>
00043 #include <phMemory.h>
00044 #include <phPrint.h>
00045 
00046 /* ---------------------------------------------------------------------- */
00047 SDLDisplay::SDLDisplay(uint32_t width, uint32_t height, char *title ) : 
00048                 phDisplayInterface(width,height,title)
00049 {
00050     phFUNCTION("SDLDisplay::SDLDisplay()")
00051     uint32_t    x = 0;
00052     uint32_t    y = 0;
00053     
00054     rc = this->lock();
00055     phPRINT_RC(rc,NULL,"this->lock()");
00056 
00057     this->setName("SDLDisplay");
00058 
00059     if (this->m_imageWindow == NULL)
00060     {
00061         if (title == NULL)
00062         {
00063             title = "Phission: SDLDisplay";
00064         }
00065 
00066         /* Create the image window */
00067         this->m_imageWindow = new phSDLImageWindow(x,y,
00068                                     width, height, title   );
00069         phPRINT_NULLPTR(  this->m_imageWindow,
00070                     "new phSDLImageWindow",
00071                     "new phSDLImageWindow failed.");
00072     }
00073 
00074     rc = this->unlock();
00075     phPRINT_RC(rc,NULL,"this->unlock()");
00076 }
00077     
00078 
00079 




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