Classes | Defines | Typedefs | Functions | Variables

plplotter.c File Reference

#include "plserver.h"
#include "pltkwd.h"
#include "tcpip.h"

Go to the source code of this file.

Classes

struct  PlPlotter

Defines

#define NEED_PLDEBUG
#define NDEV   20
#define REFRESH_PENDING   1
#define RESIZE_PENDING   2
#define REDRAW_PENDING   4
#define UPDATE_V_SCROLLBAR   8
#define UPDATE_H_SCROLLBAR   16
#define DEF_PLFRAME_BG_COLOR   "Black"
#define DEF_PLFRAME_BG_MONO   "White"
#define DEF_PLFRAME_BORDER_WIDTH   "0"
#define DEF_PLFRAME_CURSOR   ( (char *) NULL )
#define DEF_PLFRAME_HEIGHT   "250"
#define DEF_PLFRAME_RELIEF   "flat"
#define DEF_PLFRAME_WIDTH   "250"
#define INSTALL_COLORMAP_IN_TK

Typedefs

typedef struct PlPlotter PlPlotter

Functions

int plPlotterCmd (ClientData, Tcl_Interp *, int, const char **)
void PlplotterAtEop (Tcl_Interp *interp, register PlPlotter *plPlotterPtr)
void PlplotterAtBop (Tcl_Interp *interp, register PlPlotter *plPlotterPtr)
static void DestroyPlPlotter (ClientData)
static void DisplayPlPlotter (ClientData)
static void PlPlotterInit (ClientData)
static void PlPlotterFirstInit (ClientData clientData)
static void PlPlotterConfigureEH (ClientData, XEvent *)
static void PlPlotterExposeEH (ClientData, XEvent *)
static void PlPlotterMotionEH (ClientData, register XEvent *)
static void PlPlotterEnterEH (ClientData, register XEvent *)
static void PlPlotterLeaveEH (ClientData, register XEvent *)
static void PlPlotterButtonPressEH (ClientData clientData, register XEvent *)
static int PlPlotterWidgetCmd (ClientData, Tcl_Interp *, int, CONST char **)
static int ReadData (ClientData, int)
static void Install_cmap (PlPlotter *plPlotterPtr)
static int Closelink (Tcl_Interp *, PlPlotter *, int, CONST char **)
static int Cmd (Tcl_Interp *, PlPlotter *, int, CONST char **)
static int ConfigurePlPlotter (Tcl_Interp *, PlPlotter *, int, CONST char **, int)
static int Draw (Tcl_Interp *, PlPlotter *, int, CONST char **)
static int Info (Tcl_Interp *, PlPlotter *, int, CONST char **)
static int Openlink (Tcl_Interp *, PlPlotter *, int, CONST char **)
static int Orient (Tcl_Interp *, PlPlotter *, int, CONST char **)
static int Page (Tcl_Interp *, PlPlotter *, int, CONST char **)
static int NextPage (Tcl_Interp *, PlPlotter *, int, CONST char **)
static int Print (Tcl_Interp *, PlPlotter *, int, CONST char **)
static int Redraw (Tcl_Interp *, PlPlotter *, int, CONST char **)
static int Save (Tcl_Interp *, PlPlotter *, int, CONST char **)
static int View (Tcl_Interp *, PlPlotter *, int, CONST char **)
static int Scroll (Tcl_Interp *, PlPlotter *)
static int report (Tcl_Interp *, PlPlotter *, int, CONST char **)
static void ActiveState (register PlPlotter *plPlotterPtr, int on)
static void CreateXhairs (PlPlotter *)
static void DestroyXhairs (PlPlotter *)
static void DrawXhairs (PlPlotter *, int, int)
static void UpdateXhairs (PlPlotter *)
static void CreateRband (PlPlotter *)
static void DestroyRband (PlPlotter *)
static void DrawRband (PlPlotter *, int, int)
static void UpdateRband (PlPlotter *)
static void gbox (PLFLT *, PLFLT *, PLFLT *, PLFLT *, CONST char **)
static void UpdateVScrollbar (register PlPlotter *)
static void UpdateHScrollbar (register PlPlotter *)
static void PlPlotterConfigureEH (ClientData clientData, register XEvent *eventPtr)
static void PlPlotterExposeEH (ClientData clientData, register XEvent *eventPtr)
static int scol0 (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int i, CONST char *col, int *p_changed)
static int scol1 (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int i, CONST char *col, CONST char *pos, CONST char *rev, int *p_changed)
static int Cmd (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int argc, CONST char **argv)
static int ConfigurePlPlotter (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int argc, CONST char **argv, int flags)
static int Draw (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int argc, CONST char **argv)
static int Info (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int argc, CONST char **argv)
static int Openlink (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int argc, CONST char **argv)
static int Closelink (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int argc, CONST char **argv)
static int process_data (Tcl_Interp *interp, register PlPlotter *plPlotterPtr)
static int Orient (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int argc, CONST char **argv)
static int Print (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int argc, CONST char **argv)
static int NextPage (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int argc, CONST char **argv)
static int Page (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int argc, CONST char **argv)
static int Redraw (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int argc, CONST char **argv)
static int Save (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int argc, CONST char **argv)
static int View (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int argc, CONST char **argv)
static int Scroll (Tcl_Interp *interp, register PlPlotter *plPlotterPtr)
static int report (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int argc, CONST char **argv)

Variables

static Tk_ConfigSpec configSpecs []

Define Documentation

#define DEF_PLFRAME_BG_COLOR   "Black"

Definition at line 215 of file plplotter.c.

#define DEF_PLFRAME_BG_MONO   "White"

Definition at line 216 of file plplotter.c.

#define DEF_PLFRAME_BORDER_WIDTH   "0"

Definition at line 217 of file plplotter.c.

#define DEF_PLFRAME_CURSOR   ( (char *) NULL )

Definition at line 218 of file plplotter.c.

#define DEF_PLFRAME_HEIGHT   "250"

Definition at line 219 of file plplotter.c.

#define DEF_PLFRAME_RELIEF   "flat"

Definition at line 220 of file plplotter.c.

#define DEF_PLFRAME_WIDTH   "250"

Definition at line 221 of file plplotter.c.

#define INSTALL_COLORMAP_IN_TK
#define NDEV   20

Definition at line 94 of file plplotter.c.

#define NEED_PLDEBUG

Definition at line 66 of file plplotter.c.

#define REDRAW_PENDING   4

Definition at line 209 of file plplotter.c.

#define REFRESH_PENDING   1

Definition at line 207 of file plplotter.c.

#define RESIZE_PENDING   2

Definition at line 208 of file plplotter.c.

#define UPDATE_H_SCROLLBAR   16

Definition at line 211 of file plplotter.c.

#define UPDATE_V_SCROLLBAR   8

Definition at line 210 of file plplotter.c.


Typedef Documentation

typedef struct PlPlotter PlPlotter

Function Documentation

static void ActiveState ( register PlPlotter plPlotterPtr,
int  on 
) [static]

Definition at line 1966 of file plplotter.c.

static int Closelink ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **   
) [static]
static int Closelink ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int  argc,
CONST char **  argv 
) [static]

Definition at line 2421 of file plplotter.c.

static int Cmd ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **   
) [static]
static int Cmd ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int  argc,
CONST char **  argv 
) [static]

Definition at line 1716 of file plplotter.c.

static int ConfigurePlPlotter ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **  ,
int   
) [static]
static int ConfigurePlPlotter ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int  argc,
CONST char **  argv,
int  flags 
) [static]

Definition at line 2032 of file plplotter.c.

static void CreateRband ( PlPlotter plPlotterPtr  )  [static]

Definition at line 1238 of file plplotter.c.

static void CreateXhairs ( PlPlotter plPlotterPtr  )  [static]

Definition at line 1140 of file plplotter.c.

static void DestroyPlPlotter ( ClientData  clientData  )  [static]

Definition at line 793 of file plplotter.c.

static void DestroyRband ( PlPlotter plPlotterPtr  )  [static]

Definition at line 1290 of file plplotter.c.

static void DestroyXhairs ( PlPlotter plPlotterPtr  )  [static]

Definition at line 1178 of file plplotter.c.

static void DisplayPlPlotter ( ClientData  clientData  )  [static]

Definition at line 1463 of file plplotter.c.

static int Draw ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **   
) [static]
static int Draw ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int  argc,
CONST char **  argv 
) [static]

Definition at line 2175 of file plplotter.c.

static void DrawRband ( PlPlotter plPlotterPtr,
int  x0,
int  y0 
) [static]

Definition at line 1305 of file plplotter.c.

static void DrawXhairs ( PlPlotter plPlotterPtr,
int  x0,
int  y0 
) [static]

Definition at line 1193 of file plplotter.c.

static void gbox ( PLFLT xl,
PLFLT yl,
PLFLT xr,
PLFLT yr,
CONST char **  argv 
) [static]

Definition at line 3186 of file plplotter.c.

static int Info ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **   
) [static]
static int Info ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int  argc,
CONST char **  argv 
) [static]

Definition at line 2274 of file plplotter.c.

static void Install_cmap ( PlPlotter plPlotterPtr  )  [static]

Definition at line 1413 of file plplotter.c.

static int NextPage ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **   
) [static]
static int NextPage ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int  argc,
CONST char **  argv 
) [static]

Definition at line 2702 of file plplotter.c.

static int Openlink ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **   
) [static]
static int Openlink ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int  argc,
CONST char **  argv 
) [static]

Definition at line 2336 of file plplotter.c.

static int Orient ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **   
) [static]
static int Orient ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int  argc,
CONST char **  argv 
) [static]

Definition at line 2566 of file plplotter.c.

static int Page ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **   
) [static]
static int Page ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int  argc,
CONST char **  argv 
) [static]

Definition at line 2728 of file plplotter.c.

void PlplotterAtBop ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr 
)

Definition at line 2498 of file plplotter.c.

void PlplotterAtEop ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr 
)

Definition at line 2488 of file plplotter.c.

static void PlPlotterButtonPressEH ( ClientData  clientData,
register XEvent *  eventPtr 
) [static]

Definition at line 1114 of file plplotter.c.

int plPlotterCmd ( ClientData  clientData,
Tcl_Interp *  interp,
int  argc,
const char **  argv 
)

Definition at line 348 of file plplotter.c.

static void PlPlotterConfigureEH ( ClientData  ,
XEvent *   
) [static]
static void PlPlotterConfigureEH ( ClientData  clientData,
register XEvent *  eventPtr 
) [static]

Definition at line 878 of file plplotter.c.

static void PlPlotterEnterEH ( ClientData  clientData,
register XEvent *  eventPtr 
) [static]

Definition at line 1058 of file plplotter.c.

static void PlPlotterExposeEH ( ClientData  ,
XEvent *   
) [static]
static void PlPlotterExposeEH ( ClientData  clientData,
register XEvent *  eventPtr 
) [static]

Definition at line 960 of file plplotter.c.

static void PlPlotterFirstInit ( ClientData  clientData  )  [static]

Definition at line 1334 of file plplotter.c.

static void PlPlotterInit ( ClientData  clientData  )  [static]

Definition at line 1375 of file plplotter.c.

static void PlPlotterLeaveEH ( ClientData  clientData,
register XEvent *  eventPtr 
) [static]

Definition at line 1095 of file plplotter.c.

static void PlPlotterMotionEH ( ClientData  clientData,
register XEvent *  eventPtr 
) [static]

Definition at line 1024 of file plplotter.c.

static int PlPlotterWidgetCmd ( ClientData  clientData,
Tcl_Interp *  interp,
int  argc,
CONST char **  argv 
) [static]

Definition at line 490 of file plplotter.c.

static int Print ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int  argc,
CONST char **  argv 
) [static]

Definition at line 2609 of file plplotter.c.

static int Print ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **   
) [static]
static int process_data ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr 
) [static]

Definition at line 2450 of file plplotter.c.

static int ReadData ( ClientData  clientData,
int  mask 
) [static]

Definition at line 2516 of file plplotter.c.

static int Redraw ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int  argc,
CONST char **  argv 
) [static]

Definition at line 2769 of file plplotter.c.

static int Redraw ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **   
) [static]
static int report ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int  argc,
CONST char **  argv 
) [static]

Definition at line 3077 of file plplotter.c.

static int report ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **   
) [static]
static int Save ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int  argc,
CONST char **  argv 
) [static]

Definition at line 2793 of file plplotter.c.

static int Save ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **   
) [static]
static int scol0 ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int  i,
CONST char *  col,
int *  p_changed 
) [static]

Definition at line 1599 of file plplotter.c.

static int scol1 ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int  i,
CONST char *  col,
CONST char *  pos,
CONST char *  rev,
int *  p_changed 
) [static]

Definition at line 1645 of file plplotter.c.

static int Scroll ( Tcl_Interp *  ,
PlPlotter  
) [static]
static int Scroll ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr 
) [static]

Definition at line 3059 of file plplotter.c.

static void UpdateHScrollbar ( register PlPlotter plPlotterPtr  )  [static]

Definition at line 3159 of file plplotter.c.

static void UpdateRband ( PlPlotter plPlotterPtr  )  [static]

Definition at line 1324 of file plplotter.c.

static void UpdateVScrollbar ( register PlPlotter plPlotterPtr  )  [static]

Definition at line 3133 of file plplotter.c.

static void UpdateXhairs ( PlPlotter plPlotterPtr  )  [static]

Definition at line 1218 of file plplotter.c.

static int View ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **   
) [static]
static int View ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int  argc,
CONST char **  argv 
) [static]

Definition at line 2925 of file plplotter.c.


Variable Documentation

Tk_ConfigSpec configSpecs[] [static]

Definition at line 225 of file plplotter.c.