1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
// $Id: plserver.h 12007 2011-10-28 12:02:58Z andrewross $
//
// Maurice LeBrun
// 6-May-93
//
// Declarations for plserver and associated files.
//
#ifndef __PLSERVER_H__
#define __PLSERVER_H__
#include "plDevs.h"
#include "pltkd.h"
#include "pltcl.h"
// State info for the rendering code
typedef struct
{
char *client; // Name of client main window
PDFstrm *pdfs; // PDF stream descriptor
PLiodev *iodev; // I/O info
int nbytes; // data bytes waiting to be read
int at_bop, at_eop; // bop/eop condition flags
short xmin, xmax, ymin, ymax; // Data minima and maxima
PLFLT xold, yold; // Endpoints of last line plotted
} PLRDev;
// External function prototypes.
// Note that tcl command functions are added during Pltk_Init and don't
// need to be called directly by the user
// plframe.c
// Invoked to process the "plframe" Tcl command.
int
plFrameCmd( ClientData clientData, Tcl_Interp *interp,
int argc, const char **argv );
int
plPlotterCmd( ClientData clientData, Tcl_Interp *interp,
int argc, const char **argv );
// plr.c
// Set default state parameters before anyone else has a chance to.
PLDLLIMPEXP_TCLTK void
plr_start( PLRDev *plr );
// Read & process commands until "nbyte_max" bytes have been read.
PLDLLIMPEXP_TCLTK int
plr_process( PLRDev *plr );
#endif // __PLSERVER_H__
|