PLplot 5.15.0
Loading...
Searching...
No Matches
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 ConfigureWidgetCompat (Tcl_Interp *interp, Tk_Window tkwin, const Tk_ConfigSpec *configSpecs, int argc, const char **argv, char *widgRec, int flags)
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

◆ DEF_PLFRAME_BG_COLOR

#define DEF_PLFRAME_BG_COLOR   "Black"

Definition at line 214 of file plplotter.c.

◆ DEF_PLFRAME_BG_MONO

#define DEF_PLFRAME_BG_MONO   "White"

Definition at line 215 of file plplotter.c.

◆ DEF_PLFRAME_BORDER_WIDTH

#define DEF_PLFRAME_BORDER_WIDTH   "0"

Definition at line 216 of file plplotter.c.

◆ DEF_PLFRAME_CURSOR

#define DEF_PLFRAME_CURSOR   ( (char *) NULL )

Definition at line 217 of file plplotter.c.

◆ DEF_PLFRAME_HEIGHT

#define DEF_PLFRAME_HEIGHT   "250"

Definition at line 218 of file plplotter.c.

◆ DEF_PLFRAME_RELIEF

#define DEF_PLFRAME_RELIEF   "flat"

Definition at line 219 of file plplotter.c.

◆ DEF_PLFRAME_WIDTH

#define DEF_PLFRAME_WIDTH   "250"

Definition at line 220 of file plplotter.c.

◆ INSTALL_COLORMAP_IN_TK

#define INSTALL_COLORMAP_IN_TK

◆ NDEV

#define NDEV   100

Definition at line 93 of file plplotter.c.

◆ NEED_PLDEBUG

#define NEED_PLDEBUG

Definition at line 65 of file plplotter.c.

◆ REDRAW_PENDING

#define REDRAW_PENDING   4

Definition at line 208 of file plplotter.c.

◆ REFRESH_PENDING

#define REFRESH_PENDING   1

Definition at line 206 of file plplotter.c.

◆ RESIZE_PENDING

#define RESIZE_PENDING   2

Definition at line 207 of file plplotter.c.

◆ UPDATE_H_SCROLLBAR

#define UPDATE_H_SCROLLBAR   16

Definition at line 210 of file plplotter.c.

◆ UPDATE_V_SCROLLBAR

#define UPDATE_V_SCROLLBAR   8

Definition at line 209 of file plplotter.c.

Typedef Documentation

◆ PlPlotter

typedef struct PlPlotter PlPlotter

Function Documentation

◆ ActiveState()

void ActiveState ( register PlPlotter * plPlotterPtr,
int on )
static

Definition at line 1985 of file plplotter.c.

◆ Closelink() [1/2]

int Closelink ( Tcl_Interp * ,
PlPlotter * ,
int ,
const char **  )
static

◆ Closelink() [2/2]

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

Definition at line 2479 of file plplotter.c.

◆ Cmd() [1/2]

int Cmd ( Tcl_Interp * ,
PlPlotter * ,
int ,
const char **  )
static

◆ Cmd() [2/2]

int Cmd ( Tcl_Interp * interp,
register PlPlotter * plPlotterPtr,
int argc,
const char ** argv )
static

Definition at line 1729 of file plplotter.c.

◆ ConfigurePlPlotter() [1/2]

int ConfigurePlPlotter ( Tcl_Interp * ,
PlPlotter * ,
int ,
const char ** ,
int  )
static

◆ ConfigurePlPlotter() [2/2]

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

Definition at line 2085 of file plplotter.c.

◆ ConfigureWidgetCompat()

int ConfigureWidgetCompat ( Tcl_Interp * interp,
Tk_Window tkwin,
const Tk_ConfigSpec * configSpecs,
int argc,
const char ** argv,
char * widgRec,
int flags )
static

Definition at line 2041 of file plplotter.c.

◆ CreateRband()

void CreateRband ( PlPlotter * plPlotterPtr)
static

Definition at line 1251 of file plplotter.c.

◆ CreateXhairs()

void CreateXhairs ( PlPlotter * plPlotterPtr)
static

Definition at line 1153 of file plplotter.c.

◆ DestroyPlPlotter()

void DestroyPlPlotter ( ClientData clientData)
static

Definition at line 806 of file plplotter.c.

◆ DestroyRband()

void DestroyRband ( PlPlotter * plPlotterPtr)
static

Definition at line 1303 of file plplotter.c.

◆ DestroyXhairs()

void DestroyXhairs ( PlPlotter * plPlotterPtr)
static

Definition at line 1191 of file plplotter.c.

◆ DisplayPlPlotter()

void DisplayPlPlotter ( ClientData clientData)
static

Definition at line 1476 of file plplotter.c.

◆ Draw() [1/2]

int Draw ( Tcl_Interp * ,
PlPlotter * ,
int ,
const char **  )
static

◆ Draw() [2/2]

int Draw ( Tcl_Interp * interp,
register PlPlotter * plPlotterPtr,
int argc,
const char ** argv )
static

Definition at line 2228 of file plplotter.c.

◆ DrawRband()

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

Definition at line 1318 of file plplotter.c.

◆ DrawXhairs()

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

Definition at line 1206 of file plplotter.c.

◆ gbox()

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

Definition at line 3246 of file plplotter.c.

◆ Info() [1/2]

int Info ( Tcl_Interp * ,
PlPlotter * ,
int ,
const char **  )
static

◆ Info() [2/2]

int Info ( Tcl_Interp * interp,
register PlPlotter * plPlotterPtr,
int argc,
const char ** argv )
static

Definition at line 2327 of file plplotter.c.

◆ Install_cmap()

void Install_cmap ( PlPlotter * plPlotterPtr)
static

Definition at line 1426 of file plplotter.c.

◆ NextPage() [1/2]

int NextPage ( Tcl_Interp * ,
PlPlotter * ,
int ,
const char **  )
static

◆ NextPage() [2/2]

int NextPage ( Tcl_Interp * interp,
register PlPlotter * plPlotterPtr,
int argc,
const char ** PL_UNUSEDargv )
static

Definition at line 2760 of file plplotter.c.

◆ Openlink() [1/2]

int Openlink ( Tcl_Interp * ,
PlPlotter * ,
int ,
const char **  )
static

◆ Openlink() [2/2]

int Openlink ( Tcl_Interp * interp,
register PlPlotter * plPlotterPtr,
int argc,
const char ** argv )
static

Definition at line 2389 of file plplotter.c.

◆ Orient() [1/2]

int Orient ( Tcl_Interp * ,
PlPlotter * ,
int ,
const char **  )
static

◆ Orient() [2/2]

int Orient ( Tcl_Interp * interp,
register PlPlotter * plPlotterPtr,
int argc,
const char ** argv )
static

Definition at line 2624 of file plplotter.c.

◆ Page() [1/2]

int Page ( Tcl_Interp * ,
PlPlotter * ,
int ,
const char **  )
static

◆ Page() [2/2]

int Page ( Tcl_Interp * interp,
register PlPlotter * plPlotterPtr,
int argc,
const char ** argv )
static

Definition at line 2786 of file plplotter.c.

◆ PlplotterAtBop()

void PlplotterAtBop ( Tcl_Interp * interp,
register PlPlotter * plPlotterPtr )

Definition at line 2556 of file plplotter.c.

◆ PlplotterAtEop()

void PlplotterAtEop ( Tcl_Interp * interp,
register PlPlotter * plPlotterPtr )

Definition at line 2546 of file plplotter.c.

◆ PlPlotterButtonPressEH()

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

Definition at line 1127 of file plplotter.c.

◆ plPlotterCmd() [1/2]

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

Definition at line 347 of file plplotter.c.

◆ plPlotterCmd() [2/2]

int plPlotterCmd ( ClientData ,
Tcl_Interp * ,
int ,
const char **  )

◆ PlPlotterConfigureEH() [1/2]

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

Definition at line 891 of file plplotter.c.

◆ PlPlotterConfigureEH() [2/2]

void PlPlotterConfigureEH ( ClientData ,
XEvent *  )
static

◆ PlPlotterEnterEH()

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

Definition at line 1071 of file plplotter.c.

◆ PlPlotterExposeEH() [1/2]

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

Definition at line 973 of file plplotter.c.

◆ PlPlotterExposeEH() [2/2]

void PlPlotterExposeEH ( ClientData ,
XEvent *  )
static

◆ PlPlotterFirstInit()

void PlPlotterFirstInit ( ClientData clientData)
static

Definition at line 1347 of file plplotter.c.

◆ PlPlotterInit()

void PlPlotterInit ( ClientData clientData)
static

Definition at line 1388 of file plplotter.c.

◆ PlPlotterLeaveEH() [1/2]

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

Definition at line 1108 of file plplotter.c.

◆ PlPlotterLeaveEH() [2/2]

void PlPlotterLeaveEH ( ClientData ,
register XEvent *  )
static

◆ PlPlotterMotionEH()

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

Definition at line 1037 of file plplotter.c.

◆ PlPlotterWidgetCmd()

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

Definition at line 503 of file plplotter.c.

◆ Print() [1/2]

int Print ( Tcl_Interp * ,
PlPlotter * ,
int ,
const char **  )
static

◆ Print() [2/2]

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

Definition at line 2667 of file plplotter.c.

◆ process_data()

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

Definition at line 2508 of file plplotter.c.

◆ ReadData()

int ReadData ( ClientData clientData,
int mask )
static

Definition at line 2574 of file plplotter.c.

◆ Redraw() [1/2]

int Redraw ( Tcl_Interp * ,
PlPlotter * ,
int ,
const char **  )
static

◆ Redraw() [2/2]

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

Definition at line 2827 of file plplotter.c.

◆ report() [1/2]

int report ( Tcl_Interp * ,
PlPlotter * ,
int ,
const char **  )
static

◆ report() [2/2]

int report ( Tcl_Interp * interp,
register PlPlotter * plPlotterPtr,
int argc,
const char ** argv )
static

Definition at line 3135 of file plplotter.c.

◆ Save() [1/2]

int Save ( Tcl_Interp * ,
PlPlotter * ,
int ,
const char **  )
static

◆ Save() [2/2]

int Save ( Tcl_Interp * interp,
register PlPlotter * plPlotterPtr,
int argc,
const char ** argv )
static

Definition at line 2851 of file plplotter.c.

◆ scol0()

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

Definition at line 1612 of file plplotter.c.

◆ scol1()

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

◆ Scroll() [1/2]

int Scroll ( Tcl_Interp * ,
PlPlotter *  )
static

◆ Scroll() [2/2]

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

Definition at line 3117 of file plplotter.c.

◆ UpdateHScrollbar()

void UpdateHScrollbar ( register PlPlotter * plPlotterPtr)
static

Definition at line 3219 of file plplotter.c.

◆ UpdateRband()

void UpdateRband ( PlPlotter * plPlotterPtr)
static

Definition at line 1337 of file plplotter.c.

◆ UpdateVScrollbar()

void UpdateVScrollbar ( register PlPlotter * plPlotterPtr)
static

Definition at line 3193 of file plplotter.c.

◆ UpdateXhairs()

void UpdateXhairs ( PlPlotter * plPlotterPtr)
static

Definition at line 1231 of file plplotter.c.

◆ View() [1/2]

int View ( Tcl_Interp * ,
PlPlotter * ,
int ,
const char **  )
static

◆ View() [2/2]

int View ( Tcl_Interp * interp,
register PlPlotter * plPlotterPtr,
int argc,
const char ** argv )
static

Definition at line 2983 of file plplotter.c.

Variable Documentation

◆ configSpecs

Tk_ConfigSpec configSpecs[]
static

Definition at line 224 of file plplotter.c.