display_canvas.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright (C) Massimo Cora' 2006 <maxcvs@gmail.com>
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00019 #ifndef _DISPLAY_CANVAS_H_
00020 #define _DISPLAY_CANVAS_H_
00021 
00022 #if defined(__GNUG__) && !defined(__APPLE__)
00023 #pragma interface "display_image_frame.cpp"
00024 #endif
00025 
00026 
00027 #include <cv.h>
00028 #include <highgui.h>
00029 
00030 
00031 
00036 
00037 #include "wx/wx.h"
00039 
00040 
00041 class DisplayCanvas : public wxWindow {
00042 
00043 public: 
00044         DisplayCanvas( wxWindow *frame, const wxSize& size );
00045         virtual ~DisplayCanvas( );
00046 
00047         void DrawIplImage( IplImage* ipl_image );
00048         void Draw( wxDC& dc );
00049 
00050 private:        // functions
00051         void OnPaint( wxPaintEvent& event );
00052 
00053 
00054 private:        // data
00055         bool _new_image_available;
00056         bool _drawing;
00057         int _canvas_height;
00058         int _canvas_width;
00059         wxBitmap _new_wxbitmap;
00060 
00061 
00062 // protected data
00063 protected:
00064 
00065         DECLARE_EVENT_TABLE()
00066 
00067 };
00068 
00069 
00070 #endif

Generated on Tue Dec 26 10:32:38 2006 for Omnimeeting by  doxygen 1.4.7