00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
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:
00051 void OnPaint( wxPaintEvent& event );
00052
00053
00054 private:
00055 bool _new_image_available;
00056 bool _drawing;
00057 int _canvas_height;
00058 int _canvas_width;
00059 wxBitmap _new_wxbitmap;
00060
00061
00062
00063 protected:
00064
00065 DECLARE_EVENT_TABLE()
00066
00067 };
00068
00069
00070 #endif