PLplot  5.10.0
plserver.h
Go to the documentation of this file.
00001 // Maurice LeBrun
00002 // 6-May-93
00003 //
00004 // Declarations for plserver and associated files.
00005 //
00006 
00007 #ifndef __PLSERVER_H__
00008 #define __PLSERVER_H__
00009 
00010 #include "plDevs.h"
00011 #include "pltkd.h"
00012 #include "pltcl.h"
00013 
00014 // State info for the rendering code
00015 
00016 typedef struct
00017 {
00018     char    *client;                    // Name of client main window
00019     PDFstrm *pdfs;                      // PDF stream descriptor
00020     PLiodev *iodev;                     // I/O info
00021     int     nbytes;                     // data bytes waiting to be read
00022     int     at_bop, at_eop;             // bop/eop condition flags
00023 
00024     short   xmin, xmax, ymin, ymax;     // Data minima and maxima
00025     PLFLT   xold, yold;                 // Endpoints of last line plotted
00026 } PLRDev;
00027 
00028 // External function prototypes.
00029 // Note that tcl command functions are added during Pltk_Init and don't
00030 // need to be called directly by the user
00031 
00032 // plframe.c
00033 // Invoked to process the "plframe" Tcl command.
00034 
00035 int
00036 plFrameCmd( ClientData clientData, Tcl_Interp *interp,
00037             int argc, const char **argv );
00038 int
00039 plPlotterCmd( ClientData clientData, Tcl_Interp *interp,
00040               int argc, const char **argv );
00041 
00042 // plr.c
00043 // Set default state parameters before anyone else has a chance to.
00044 
00045 PLDLLIMPEXP_TCLTK void
00046 plr_start( PLRDev *plr );
00047 
00048 // Read & process commands until "nbyte_max" bytes have been read.
00049 
00050 PLDLLIMPEXP_TCLTK int
00051 plr_process( PLRDev *plr );
00052 
00053 #endif  // __PLSERVER_H__
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines