PLplot  5.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
plplotter.c File Reference
#include "plserver.h"
#include "pltkwd.h"
#include "tcpip.h"

Go to the source code of this file.

Classes

struct  PlPlotter

Macros

#define NEED_PLDEBUG
#define NDEV   100
#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 *)
int plPlotterCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char **argv)
static void PlPlotterConfigureEH (ClientData clientData, register XEvent *eventPtr)
static void PlPlotterExposeEH (ClientData clientData, register XEvent *eventPtr)
static void PlPlotterLeaveEH (ClientData clientData, register XEvent *PL_UNUSED(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 PL_UNUSED(argc), CONST char **PL_UNUSED(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 PL_UNUSED(argc), CONST char **PL_UNUSED(argv))
static int NextPage (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int argc, CONST char **PL_UNUSED(argv))
static int Page (Tcl_Interp *interp, register PlPlotter *plPlotterPtr, int argc, CONST char **argv)
static int Redraw (Tcl_Interp *PL_UNUSED(interp), register PlPlotter *plPlotterPtr, int PL_UNUSED(argc), CONST char **PL_UNUSED(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 []

Macro Definition 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   100

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 1986 of file plplotter.c.

static int Closelink ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **   
)
static
static int Closelink ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int   PL_UNUSEDargc,
CONST char **  PL_UNUSEDargv 
)
static

Definition at line 2441 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 1730 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 2052 of file plplotter.c.

static void CreateRband ( PlPlotter plPlotterPtr)
static

Definition at line 1252 of file plplotter.c.

static void CreateXhairs ( PlPlotter plPlotterPtr)
static

Definition at line 1154 of file plplotter.c.

static void DestroyPlPlotter ( ClientData  clientData)
static

Definition at line 807 of file plplotter.c.

static void DestroyRband ( PlPlotter plPlotterPtr)
static

Definition at line 1304 of file plplotter.c.

static void DestroyXhairs ( PlPlotter plPlotterPtr)
static

Definition at line 1192 of file plplotter.c.

static void DisplayPlPlotter ( ClientData  clientData)
static

Definition at line 1477 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 2195 of file plplotter.c.

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

Definition at line 1319 of file plplotter.c.

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

Definition at line 1207 of file plplotter.c.

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

Definition at line 3208 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 2294 of file plplotter.c.

static void Install_cmap ( PlPlotter plPlotterPtr)
static

Definition at line 1427 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 **  PL_UNUSEDargv 
)
static

Definition at line 2722 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 2356 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 2586 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 2748 of file plplotter.c.

void PlplotterAtBop ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr 
)

Definition at line 2518 of file plplotter.c.

void PlplotterAtEop ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr 
)

Definition at line 2508 of file plplotter.c.

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

Definition at line 1128 of file plplotter.c.

int plPlotterCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
int plPlotterCmd ( ClientData   PL_UNUSEDclientData,
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 892 of file plplotter.c.

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

Definition at line 1072 of file plplotter.c.

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

Definition at line 974 of file plplotter.c.

static void PlPlotterFirstInit ( ClientData  clientData)
static

Definition at line 1348 of file plplotter.c.

static void PlPlotterInit ( ClientData  clientData)
static

Definition at line 1389 of file plplotter.c.

static void PlPlotterLeaveEH ( ClientData  ,
register XEvent *   
)
static
static void PlPlotterLeaveEH ( ClientData  clientData,
register XEvent *  PL_UNUSEDeventPtr 
)
static

Definition at line 1109 of file plplotter.c.

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

Definition at line 1038 of file plplotter.c.

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

Definition at line 504 of file plplotter.c.

static int Print ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **   
)
static
static int Print ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr,
int   PL_UNUSEDargc,
CONST char **  PL_UNUSEDargv 
)
static

Definition at line 2629 of file plplotter.c.

static int process_data ( Tcl_Interp *  interp,
register PlPlotter plPlotterPtr 
)
static

Definition at line 2470 of file plplotter.c.

static int ReadData ( ClientData  clientData,
int  mask 
)
static

Definition at line 2536 of file plplotter.c.

static int Redraw ( Tcl_Interp *  ,
PlPlotter ,
int  ,
CONST char **   
)
static
static int Redraw ( Tcl_Interp *  PL_UNUSEDinterp,
register PlPlotter plPlotterPtr,
int   PL_UNUSEDargc,
CONST char **  PL_UNUSEDargv 
)
static

Definition at line 2789 of file plplotter.c.

static int report ( 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 3097 of file plplotter.c.

static int Save ( 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 2813 of file plplotter.c.

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

Definition at line 1613 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 1659 of file plplotter.c.

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

Definition at line 3079 of file plplotter.c.

static void UpdateHScrollbar ( register PlPlotter plPlotterPtr)
static

Definition at line 3181 of file plplotter.c.

static void UpdateRband ( PlPlotter plPlotterPtr)
static

Definition at line 1338 of file plplotter.c.

static void UpdateVScrollbar ( register PlPlotter plPlotterPtr)
static

Definition at line 3155 of file plplotter.c.

static void UpdateXhairs ( PlPlotter plPlotterPtr)
static

Definition at line 1232 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 2945 of file plplotter.c.

Variable Documentation

Tk_ConfigSpec configSpecs[]
static

Definition at line 225 of file plplotter.c.