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