22 #if !defined ( WXPLPLOTWINDOW_H__INCLUDED_ )
23 #define WXPLPLOTWINDOW_H__INCLUDED_
25 #include <wx/window.h>
26 #include <wx/dcmemory.h>
38 wxPLplotwindow( wxWindow * parent, wxWindowID
id = -1,
const wxPoint& pos = wxDefaultPosition,
39 const wxSize& size = wxDefaultSize,
long style = 0,
43 void RenewPlot(
void );
44 bool SavePlot(
const wxString& driver,
const wxString& filename );
49 virtual void OnPaint( wxPaintEvent& event );
50 virtual void OnErase( wxEraseEvent & WXUNUSED( event ) );
51 virtual void OnSize( wxSizeEvent & WXUNUSED( event ) );
70 #endif // !defined( WXPLPLOTWINDOW_H__INCLUDED_ )
int m_width
Saved width of plot, to find out if size changed.
int bitmapWidth
Width of bitmap, only changed if plot gets bigger.
wxPLplotstream is inherited from plstream, which is the C++ interface
wxMemoryDC * MemPlotDC
Pointer to wxMemoryDC, used for double buffering.
wxBitmap * MemPlotDCBitmap
Pointer to bitmap, used for double buffering.
A plot widget which takes care of double buffering and other stuff, but does not. ...
wxPLplotstream * m_stream
Pointer to the wxPLplotstream which belongs to this plot widget.
int m_height
Saved height of plot, to find out if size changed.
wxPLplotstream * GetStream()
Get pointer to wxPLplotstream of this widget.
int bitmapHeight
Height of bitmap, only changed if plot gets bigger.