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