37 Create( dc, width, height, style );
53 plabort(
"wxPLplotstream::Create - Stream already created" );
56 const size_t bufferSize = 256;
65 char drvopt[bufferSize],
buffer[bufferSize];
68 sprintf( buffer,
"hrshsym=%d,text=%d",
71 strncat( drvopt, buffer, bufferSize - strlen( drvopt ) );
73 setopt(
"-drvopt", drvopt );
109 wxSize size( width, height );
void Create(wxDC *dc, int width, int height, int style)
Called from the constructor or can be called by the user if the default constructor is used...
void cmd(PLINT op, void *ptr)
void RenewPlot()
Redo plot and update dc.
~wxPLplotstream()
Destructor, although we have no resources to free.
void ImportBuffer(void *buffer, size_t size)
Import a buffer of plplot commands.
void sdevdata(void *data)
int m_height
Height of dc/plot area.
int m_width
Width of dc/plot area.
void plabort(PLCHAR_VECTOR errormsg)
void set_stream()
Calls some code before every PLplot command.
void SetFixedAspectRatio(bool fixed)
Set Fixed aspect ratio of the plot.
void spage(PLFLT xp, PLFLT yp, PLINT xleng, PLINT yleng, PLINT xoff, PLINT yoff)
#define PLESC_FLUSH_REMAINING_BUFFER
int m_style
style of this plot
void SetDC(wxDC *dc)
Set a new dc to write to.
#define PLESC_APPEND_BUFFER
void sdev(const char *devname)
void SetSize(int width, int height)
Set new size of plot area.
void AppendBuffer(void *buffer, size_t size)
Append a buffer of plplot commands.
wxPLplotstream()
Constructor.
PLINT setopt(const char *opt, const char *optarg)
#define PLESC_IMPORT_BUFFER
virtual void set_stream(void)