37 Create( dc, width, height, style );
48 const size_t bufferSize = 256;
60 char drvopt[bufferSize],
buffer[bufferSize];
62 #ifdef WX_TEMP_PL_HAVE_FREETYPE_IS_ON
63 sprintf( buffer,
"freetype=%d,smooth=%d,",
66 strcat( drvopt, buffer );
77 sprintf( buffer,
"hrshsym=%d,text=%d,backend=%d",
81 strncat( drvopt, buffer, bufferSize - strlen( drvopt ) );
83 setopt(
"-drvopt", drvopt );
132 m_image =
new wxImage( width, height );
135 wxSize size( width, height );
140 wxSize size( width, height );
145 m_image =
new wxImage( width, height );
172 wxBitmap bitmap( *
m_image, -1 );
173 MemoryDC.SelectObject( bitmap );
175 MemoryDC.SelectObject( wxNullBitmap );
void Create(wxDC *dc, int width, int height, int style)
void cmd(PLINT op, void *ptr)
void RenewPlot()
Redo plot and update memory dc.
int m_height
Height of dc/plot area.
int m_width
Width of dc/plot area.
void set_stream()
Calls some code before every PLplot command.
void spage(PLFLT xp, PLFLT yp, PLINT xleng, PLINT yleng, PLINT xoff, PLINT yoff)
void Update()
Update memory dc, but don't redo plot.
int m_backend
driver backend used
wxImage * m_image
pointer to wxImage
int m_style
style of this plot
void sdev(const char *devname)
void SetSize(int width, int height)
Set new size of plot area.
int setopt(const char *opt, const char *optarg)
wxDC * m_dc
Pointer to wxDC to plot into.
wxPLplotstream()
Constructor.
virtual void set_stream(void)