PLplot: plserver.h Source File

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
45 PLDLLIMPEXP_TCLTK void
46 plr_start( PLRDev *plr );
47
48 // Read & process commands until "nbyte_max" bytes have been read.
49
50 PLDLLIMPEXP_TCLTK int
51 plr_process( PLRDev *plr );
52
53 #endif // __PLSERVER_H__
PLiodev
Definition: pdf.h:61
argv
static char ** argv
Definition: qt.cpp:49
plPlotterCmd
int plPlotterCmd(ClientData clientData, Tcl_Interp *interp, int argc, const char **argv)
PLDLLIMPEXP_TCLTK
#define PLDLLIMPEXP_TCLTK
Definition: pldll.h:134
plr_start
PLDLLIMPEXP_TCLTK void plr_start(PLRDev *plr)
Definition: plr.c:95
PDFstrm
Definition: pdf.h:49
pltkd.h
argc
static int argc
Definition: qt.cpp:48
pltcl.h
plr_process
PLDLLIMPEXP_TCLTK int plr_process(PLRDev *plr)
Definition: plr.c:115
PLRDev::at_eop
int at_eop
Definition: plserver.h:22
PLRDev::yold
PLFLT yold
Definition: plserver.h:25
PLRDev::iodev
PLiodev * iodev
Definition: plserver.h:20
PLRDev::ymin
short ymin
Definition: plserver.h:24
plDevs.h
plFrameCmd
int plFrameCmd(ClientData clientData, Tcl_Interp *interp, int argc, const char **argv)
PLRDev::nbytes
int nbytes
Definition: plserver.h:21
PLRDev::client
char * client
Definition: plserver.h:18
PLRDev
Definition: plserver.h:16
PLFLT
float PLFLT
Definition: plplot.h:163
interp
static Tcl_Interp * interp
Definition: tkMain.c:120
PLRDev::pdfs
PDFstrm * pdfs
Definition: plserver.h:19