PLplot  5.11.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
wxPLplotwindow< WXWINDOW > Class Template Reference

#include "wxPLplotwindow.h"

Public Member Functions

 wxPLplotwindow (bool useGraphicsContext=true)
 Constructor.
 ~wxPLplotwindow (void)
 Destructor.
void RenewPlot (void)
 Redo plot.
bool SavePlot (const wxString &driver, const wxString &filename)
 Save plot using a different driver.
wxPLplotstreamGetStream ()
 Get pointer to wxPLplotstream of this widget.
void setUseGraphicsContext (bool useGraphicsContext)
 Set whether we wish to use wxGCDC instead of a wxDC.
void setCanvasColour (const wxColour &colour)

Protected Member Functions

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.

Protected Attributes

wxPLplotstream m_stream
 The wxPLplotstream which belongs to this plot widget.
bool m_created
 Flag to indicate the window has been Created.

Private Attributes

bool m_useGraphicsContext
 Flag to indicate whether we should use a wxGCDC.
wxBitmap m_bitmap
wxMemoryDC * m_memoryDc
wxColour m_canvasColour

Detailed Description

template<class WXWINDOW>
class wxPLplotwindow< WXWINDOW >

Definition at line 37 of file wxPLplotwindow.h.

Constructor & Destructor Documentation

template<class WXWINDOW >
wxPLplotwindow< WXWINDOW >::wxPLplotwindow ( bool  useGraphicsContext = true)

Constructor.

Constructor initialises variables, creates the wxStream and connects.

Definition at line 76 of file wxPLplotwindow.h.

template<class WXWINDOW >
wxPLplotwindow< WXWINDOW >::~wxPLplotwindow ( void  )

Destructor.

Destructor - delete the dc and gcdc if needed.

Definition at line 101 of file wxPLplotwindow.h.

Member Function Documentation

template<class WXWINDOW >
wxPLplotstream* wxPLplotwindow< WXWINDOW >::GetStream ( )
inline

Get pointer to wxPLplotstream of this widget.

Definition at line 45 of file wxPLplotwindow.h.

template<class WXWINDOW >
void wxPLplotwindow< WXWINDOW >::OnCreate ( wxWindowCreateEvent &  event)
protectedvirtual

Window created event.

This is called when the widow is created i.e. after WXWINDOW::Create.

Definition at line 181 of file wxPLplotwindow.h.

template<class WXWINDOW >
void wxPLplotwindow< WXWINDOW >::OnErase ( wxEraseEvent &  event)
protectedvirtual

Background erase event.

This is called before each paint event.

Definition at line 172 of file wxPLplotwindow.h.

template<class WXWINDOW >
void wxPLplotwindow< WXWINDOW >::OnPaint ( wxPaintEvent &  event)
protectedvirtual

Paint event.

In the OnPaint Method we check if the Windows was resized (will be moved to OnSize() sometimes.

Definition at line 115 of file wxPLplotwindow.h.

template<class WXWINDOW >
void wxPLplotwindow< WXWINDOW >::OnSize ( wxSizeEvent &  event)
protectedvirtual

Size event.

This is called when the plot is resized.

Definition at line 162 of file wxPLplotwindow.h.

template<class WXWINDOW >
void wxPLplotwindow< WXWINDOW >::RenewPlot ( void  )

Redo plot.

Redo the whole plot, only if the window has been Created.

Definition at line 219 of file wxPLplotwindow.h.

template<class WXWINDOW >
bool wxPLplotwindow< WXWINDOW >::SavePlot ( const wxString &  driver,
const wxString &  filename 
)

Save plot using a different driver.

Save plot.

Definition at line 231 of file wxPLplotwindow.h.

template<class WXWINDOW >
void wxPLplotwindow< WXWINDOW >::setCanvasColour ( const wxColour &  colour)

Definition at line 284 of file wxPLplotwindow.h.

template<class WXWINDOW >
void wxPLplotwindow< WXWINDOW >::setUseGraphicsContext ( bool  useGraphicsContext)

Set whether we wish to use wxGCDC instead of a wxDC.

Definition at line 263 of file wxPLplotwindow.h.

Member Data Documentation

template<class WXWINDOW >
wxBitmap wxPLplotwindow< WXWINDOW >::m_bitmap
private

Definition at line 59 of file wxPLplotwindow.h.

template<class WXWINDOW >
wxColour wxPLplotwindow< WXWINDOW >::m_canvasColour
private

Definition at line 68 of file wxPLplotwindow.h.

template<class WXWINDOW >
bool wxPLplotwindow< WXWINDOW >::m_created
protected

Flag to indicate the window has been Created.

Definition at line 55 of file wxPLplotwindow.h.

template<class WXWINDOW >
wxMemoryDC* wxPLplotwindow< WXWINDOW >::m_memoryDc
private

Definition at line 64 of file wxPLplotwindow.h.

template<class WXWINDOW >
wxPLplotstream wxPLplotwindow< WXWINDOW >::m_stream
protected

The wxPLplotstream which belongs to this plot widget.

Definition at line 54 of file wxPLplotwindow.h.

template<class WXWINDOW >
bool wxPLplotwindow< WXWINDOW >::m_useGraphicsContext
private

Flag to indicate whether we should use a wxGCDC.

Definition at line 58 of file wxPLplotwindow.h.


The documentation for this class was generated from the following file: