PLplot 5.15.0
Loading...
Searching...
No Matches
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
16typedef 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
35int
36plFrameCmd( ClientData clientData, Tcl_Interp *interp,
37 int argc, const char **argv );
38int
39plPlotterCmd( 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
46plr_start( PLRDev *plr );
47
48// Read & process commands until "nbyte_max" bytes have been read.
49
51plr_process( PLRDev *plr );
52
53#endif // __PLSERVER_H__
#define PLDLLIMPEXP_TCLTK
Definition pldll.h:134
float PLFLT
Definition plplot.h:163
int plFrameCmd(ClientData clientData, Tcl_Interp *interp, int argc, const char **argv)
PLDLLIMPEXP_TCLTK void plr_start(PLRDev *plr)
Definition plr.c:95
PLDLLIMPEXP_TCLTK int plr_process(PLRDev *plr)
Definition plr.c:115
int plPlotterCmd(ClientData clientData, Tcl_Interp *interp, int argc, const char **argv)
static int argc
Definition qt.cpp:48
static char ** argv
Definition qt.cpp:49
Definition pdf.h:50
PLFLT xold
Definition plserver.h:25
char * client
Definition plserver.h:18
int at_bop
Definition plserver.h:22
short xmax
Definition plserver.h:24
int nbytes
Definition plserver.h:21
PLiodev * iodev
Definition plserver.h:20
PDFstrm * pdfs
Definition plserver.h:19
Definition pdf.h:62
static Tcl_Interp * interp
Definition tkMain.c:120