#include "wxPLplotwindow.h"
|
virtual void | OnPaint (wxPaintEvent &event) |
| Paint event.
|
|
virtual void | OnSize (wxSizeEvent &event) |
| Size event.
|
|
virtual void | OnErase (wxEraseEvent &event) |
| Background erase event.
|
|
virtual void | OnCreate (wxWindowCreateEvent &event) |
| Window created event.
|
|
void | OnRenderTimer (wxTimerEvent &event) |
| Timer used in delayed rendering after resize.
|
|
void | OnMouse (wxMouseEvent &event) |
| Mouse events.
|
|
template<class WXWINDOW>
class wxPLplotwindow< WXWINDOW >
Definition at line 37 of file wxPLplotwindow.h.
◆ wxPLplotwindow()
Constructor.
Constructor initialises variables, creates the wxStream and connects methods with events. The WXWINDOW default constructor is used.
Definition at line 94 of file wxPLplotwindow.h.
◆ ~wxPLplotwindow()
Destructor.
Destructor - delete the dc and gcdc if needed.
Definition at line 127 of file wxPLplotwindow.h.
◆ GetStream()
◆ IsReady()
◆ OnCreate()
template<class WXWINDOW>
void wxPLplotwindow< WXWINDOW >::OnCreate |
( |
wxWindowCreateEvent & | event | ) |
|
|
protectedvirtual |
Window created event.
This is called when the window is created, i.e., after WXWINDOW::Create has been called. We note that this has been called to avoid attempting to redraw a plot on a window that hasn't been created yet.
Definition at line 265 of file wxPLplotwindow.h.
◆ OnErase()
Background erase event.
This is called before each paint event
Definition at line 253 of file wxPLplotwindow.h.
◆ OnLocate()
◆ OnMouse()
◆ OnPaint()
Paint event.
In the OnPaint Method we check if the Windows was resized (will be moved to OnSize() sometimes later), we also implement our own double buffering here (since the PLplot wxWidgets driver draws into a wxMemoryDC).
Definition at line 142 of file wxPLplotwindow.h.
◆ OnRenderTimer()
template<class WXWINDOW>
void wxPLplotwindow< WXWINDOW >::OnRenderTimer |
( |
wxTimerEvent & | event | ) |
|
|
protected |
◆ OnSize()
Size event.
This is called when the plot is resized
Definition at line 211 of file wxPLplotwindow.h.
◆ RenewPlot()
Redo plot.
Redo the whole plot, only if the window has been Created
Definition at line 389 of file wxPLplotwindow.h.
◆ SavePlot()
template<class WXWINDOW>
bool wxPLplotwindow< WXWINDOW >::SavePlot |
( |
const wxString & | devname, |
|
|
const wxString & | filename ) |
Save plot using a different driver.
Save plot.
Definition at line 402 of file wxPLplotwindow.h.
◆ setCanvasColour()
template<class WXWINDOW>
void wxPLplotwindow< WXWINDOW >::setCanvasColour |
( |
const wxColour & | colour | ) |
|
◆ setUseGraphicsContext()
Set whether we wish to use wxGCDC instead of a wxDC.
Definition at line 436 of file wxPLplotwindow.h.
◆ ID_RENDERTIMER
◆ m_bitmap
◆ m_canvasColour
◆ m_completedFirstRender
◆ m_created
Flag to indicate the window has been Created.
Definition at line 59 of file wxPLplotwindow.h.
◆ m_initialSize
◆ m_memoryDc
◆ m_renderTimer
◆ m_resizeRenderDelay
◆ m_resizing
◆ m_stream
◆ m_useGraphicsContext
Flag to indicate whether we should use a wxGCDC.
Definition at line 62 of file wxPLplotwindow.h.
The documentation for this class was generated from the following file: