Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #if !defined ( WXPLPLOTWINDOW_H__INCLUDED_ )
00023 #define WXPLPLOTWINDOW_H__INCLUDED_
00024
00025 #include <wx/window.h>
00026 #include <wx/dcmemory.h>
00027
00028 #include "wxPLplotstream.h"
00029
00030
00032
00033
00034
00035 class PLDLLIMPEXP_WX wxPLplotwindow : public wxWindow
00036 {
00037 public:
00038 wxPLplotwindow( wxWindow * parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition,
00039 const wxSize& size = wxDefaultSize, long style = 0,
00040 int pl_style = wxPLPLOT_NONE );
00041 ~wxPLplotwindow( void );
00042
00043 void RenewPlot( void );
00044 bool SavePlot( const wxString& driver, const wxString& filename );
00045 wxPLplotstream* GetStream() { return m_stream; }
00046 int getBackend() { return m_backend; }
00047
00048 protected:
00049 virtual void OnPaint( wxPaintEvent& event );
00050 virtual void OnErase( wxEraseEvent & WXUNUSED( event ) );
00051 virtual void OnSize( wxSizeEvent & WXUNUSED( event ) );
00052
00053 private:
00054
00055 wxMemoryDC* MemPlotDC;
00056 int m_width;
00057 int m_height;
00058 int bitmapWidth;
00059 int bitmapHeight;
00060 wxBitmap * MemPlotDCBitmap;
00061 int m_backend;
00062
00063 protected:
00064 wxPLplotstream* m_stream;
00065
00066 DECLARE_EVENT_TABLE()
00067 };
00068
00069
00070 #endif // !defined( WXPLPLOTWINDOW_H__INCLUDED_ )