#include "wxPLplotwindow.h"
template<class WXWINDOW>
class wxPLplotwindow< WXWINDOW >
Definition at line 37 of file wxPLplotwindow.h.
◆ wxPLplotwindow()
template<class WXWINDOW >
wxPLplotwindow< WXWINDOW >::wxPLplotwindow |
( |
bool |
useGraphicsContext = true , |
|
|
wxSize |
clientSize = wxDefaultSize , |
|
|
int |
resizeRenderDelay_ms = 0 |
|
) |
| |
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()
template<class WXWINDOW >
Destructor.
Destructor - delete the dc and gcdc if needed.
Definition at line 127 of file wxPLplotwindow.h.
◆ GetStream()
template<class WXWINDOW >
◆ IsReady()
template<class WXWINDOW >
◆ 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()
template<class WXWINDOW >
Background erase event.
This is called before each paint event
Definition at line 253 of file wxPLplotwindow.h.
◆ OnLocate()
template<class WXWINDOW >
◆ OnMouse()
template<class WXWINDOW >
◆ OnPaint()
template<class WXWINDOW >
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()
template<class WXWINDOW >
Size event.
This is called when the plot is resized
Definition at line 211 of file wxPLplotwindow.h.
◆ RenewPlot()
template<class WXWINDOW >
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()
template<class WXWINDOW >
void wxPLplotwindow< WXWINDOW >::setUseGraphicsContext |
( |
bool |
useGraphicsContext | ) |
|
Set whether we wish to use wxGCDC instead of a wxDC.
Definition at line 436 of file wxPLplotwindow.h.
◆ ID_RENDERTIMER
template<class WXWINDOW >
◆ m_bitmap
template<class WXWINDOW >
◆ m_canvasColour
template<class WXWINDOW >
◆ m_completedFirstRender
template<class WXWINDOW >
◆ m_created
template<class WXWINDOW >
Flag to indicate the window has been Created.
Definition at line 59 of file wxPLplotwindow.h.
◆ m_initialSize
template<class WXWINDOW >
◆ m_memoryDc
template<class WXWINDOW >
◆ m_renderTimer
template<class WXWINDOW >
◆ m_resizeRenderDelay
template<class WXWINDOW >
◆ m_resizing
template<class WXWINDOW >
◆ m_stream
template<class WXWINDOW >
◆ m_useGraphicsContext
template<class WXWINDOW >
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: