PLplot  5.11.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
tclAPI.c File Reference
#include "plplotP.h"
#include "pltcl.h"
#include "plplot_parameters.h"
#include "tclgen.h"
#include "tclgen_s.h"
#include "tclgen.c"

Go to the source code of this file.

Classes

struct  Command
struct  CmdInfo

Macros

#define PL_LIBRARY   ""
#define PLPLOT_EXTENDED_SEARCH

Typedefs

typedef struct Command Command

Functions

static int loopbackCmd (ClientData, Tcl_Interp *, int, const char **)
static int plcolorbarCmd (ClientData, Tcl_Interp *, int, const char **)
static int plcontCmd (ClientData, Tcl_Interp *, int, const char **)
static int pllegendCmd (ClientData, Tcl_Interp *, int, const char **)
static int plmeshCmd (ClientData, Tcl_Interp *, int, const char **)
static int plmeshcCmd (ClientData, Tcl_Interp *, int, const char **)
static int plot3dCmd (ClientData, Tcl_Interp *, int, const char **)
static int plot3dcCmd (ClientData, Tcl_Interp *, int, const char **)
static int plsurf3dCmd (ClientData, Tcl_Interp *, int, const char **)
static int plsurf3dlCmd (ClientData, Tcl_Interp *, int, const char **)
static int plsetoptCmd (ClientData, Tcl_Interp *, int, const char **)
static int plshadeCmd (ClientData, Tcl_Interp *, int, const char **)
static int plshadesCmd (ClientData, Tcl_Interp *, int, const char **)
static int plmapCmd (ClientData, Tcl_Interp *, int, const char **)
static int plmapfillCmd (ClientData, Tcl_Interp *, int, const char **)
static int plmaplineCmd (ClientData, Tcl_Interp *, int, const char **)
static int plmapstringCmd (ClientData, Tcl_Interp *, int, const char **)
static int plmaptexCmd (ClientData, Tcl_Interp *, int, const char **)
static int plmeridiansCmd (ClientData, Tcl_Interp *, int, const char **)
static int plstransformCmd (ClientData, Tcl_Interp *, int, const char **)
static int plsvectCmd (ClientData, Tcl_Interp *, int, const char **)
static int plvectCmd (ClientData, Tcl_Interp *, int, const char **)
static int plranddCmd (ClientData, Tcl_Interp *, int, const char **)
static int plgriddataCmd (ClientData, Tcl_Interp *, int, const char **)
static int plimageCmd (ClientData, Tcl_Interp *, int, const char **)
static int plimagefrCmd (ClientData, Tcl_Interp *, int, const char **)
static int plstripcCmd (ClientData, Tcl_Interp *, int, const char **)
static int plslabelfuncCmd (ClientData, Tcl_Interp *, int, const char **)
void mapform (PLINT n, PLFLT *x, PLFLT *y)
void labelform (PLINT axis, PLFLT value, char *string, PLINT string_length, PLPointer data)
PLFLT tclMatrix_feval (PLINT i, PLINT j, PLPointer p)
 PLDLLIMPEXP_TCLTK_DATA (char *)
static void plTclCmd_Init (Tcl_Interp *PL_UNUSED(interp))
int plTclCmd (char *cmdlist, Tcl_Interp *interp, int argc, const char **argv)
static int loopbackCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char **argv)
int PlbasicInit (Tcl_Interp *interp)
int Pltcl_Init (Tcl_Interp *interp)
int plWait_Until (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int PL_UNUSED(argc), const char **argv)
int pls_auto_path (Tcl_Interp *interp)
static int tcl_cmd (Tcl_Interp *interp, const char *cmd)
static int plcontCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plsvectCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plvectCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plmeshCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plmeshcCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plot3dCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plot3dcCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plsurf3dCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plsurf3dlCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plranddCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char **argv)
static int plsetoptCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char **argv)
static int plshadeCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plshadesCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plmapCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int * GetEntries (Tcl_Interp *interp, const char *string, int *n)
static int plmapfillCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plmaplineCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plmapstringCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plmaptexCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plmeridiansCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static void Tcl_transform (PLFLT x, PLFLT y, PLFLT *xt, PLFLT *yt, PLPointer PL_UNUSED(data))
static int plstransformCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plgriddataCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plimageCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plimagefrCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plstripcCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
void labelform (PLINT axis, PLFLT value, char *string, PLINT string_length, PLPointer PL_UNUSED(data))
static int plslabelfuncCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int * argv_to_ints (Tcl_Interp *interp, const char *list_numbers, int *number)
static double * argv_to_doubles (Tcl_Interp *interp, const char *list_numbers, int *number)
static char ** argv_to_chars (Tcl_Interp *interp, const char *list_strings, int *number)
static int pllegendCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])
static int plcolorbarCmd (ClientData PL_UNUSED(clientData), Tcl_Interp *interp, int argc, const char *argv[])

Variables

static CmdInfo Cmds []
static int cmdTable_initted
static Tcl_HashTable cmdTable
static PLINT pl_errcode
static char errmsg [160]
static char buf [200]
static int tclmateval_modx
static int tclmateval_mody
static const char * transform_name
static Tcl_Interp * tcl_interp
static int return_code
static Tcl_Interp * tcl_xform_interp = 0
static char * tcl_xform_procname = 0
static const char * tcl_xform_template = "set result [%s ${_##_x} ${_##_y}] ; lassign $result _##_x _##_y"
static char * tcl_xform_code = 0
static Tcl_Obj * label_objs [4] = { NULL, NULL, NULL, NULL }

Macro Definition Documentation

#define PL_LIBRARY   ""

Definition at line 151 of file tclAPI.c.

#define PLPLOT_EXTENDED_SEARCH

Typedef Documentation

typedef struct Command Command

Function Documentation

static char** argv_to_chars ( Tcl_Interp *  interp,
const char *  list_strings,
int *  number 
)
static

Definition at line 5010 of file tclAPI.c.

static double* argv_to_doubles ( Tcl_Interp *  interp,
const char *  list_numbers,
int *  number 
)
static

Definition at line 4983 of file tclAPI.c.

static int* argv_to_ints ( Tcl_Interp *  interp,
const char *  list_numbers,
int *  number 
)
static

Definition at line 4956 of file tclAPI.c.

static int* GetEntries ( Tcl_Interp *  interp,
const char *  string,
int *  n 
)
static

Definition at line 3778 of file tclAPI.c.

void labelform ( PLINT  axis,
PLFLT  value,
char *  string,
PLINT  string_length,
PLPointer  data 
)
void labelform ( PLINT  axis,
PLFLT  value,
char *  string,
PLINT  string_length,
PLPointer   PL_UNUSEDdata 
)

Definition at line 4858 of file tclAPI.c.

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

Definition at line 344 of file tclAPI.c.

void mapform ( PLINT  n,
PLFLT x,
PLFLT y 
)

Definition at line 3640 of file tclAPI.c.

int PlbasicInit ( Tcl_Interp *  interp)

Definition at line 406 of file tclAPI.c.

static int plcolorbarCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plcolorbarCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 5179 of file tclAPI.c.

static int plcontCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plcontCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 910 of file tclAPI.c.

PLDLLIMPEXP_TCLTK_DATA ( char *  )

Definition at line 154 of file tclAPI.c.

static int plgriddataCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plgriddataCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 4458 of file tclAPI.c.

static int plimageCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plimageCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 4558 of file tclAPI.c.

static int plimagefrCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plimagefrCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 4634 of file tclAPI.c.

static int pllegendCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int pllegendCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 5048 of file tclAPI.c.

static int plmapCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plmapCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 3715 of file tclAPI.c.

static int plmapfillCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plmapfillCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 3823 of file tclAPI.c.

static int plmaplineCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plmaplineCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 3934 of file tclAPI.c.

static int plmapstringCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plmapstringCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 4045 of file tclAPI.c.

static int plmaptexCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plmaptexCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 4161 of file tclAPI.c.

static int plmeridiansCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plmeridiansCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 4290 of file tclAPI.c.

static int plmeshcCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plmeshcCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 1791 of file tclAPI.c.

static int plmeshCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plmeshCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 1653 of file tclAPI.c.

static int plot3dcCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plot3dcCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 2167 of file tclAPI.c.

static int plot3dCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plot3dCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 2027 of file tclAPI.c.

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

Definition at line 2940 of file tclAPI.c.

int pls_auto_path ( Tcl_Interp *  interp)

Definition at line 704 of file tclAPI.c.

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

Definition at line 2963 of file tclAPI.c.

static int plshadeCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plshadeCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 3005 of file tclAPI.c.

static int plshadesCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plshadesCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 3328 of file tclAPI.c.

static int plslabelfuncCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plslabelfuncCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 4900 of file tclAPI.c.

static int plstransformCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plstransformCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 4420 of file tclAPI.c.

static int plstripcCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plstripcCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 4748 of file tclAPI.c.

static int plsurf3dCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plsurf3dCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 2406 of file tclAPI.c.

static int plsurf3dlCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plsurf3dlCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 2645 of file tclAPI.c.

static int plsvectCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plsvectCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 1249 of file tclAPI.c.

int Pltcl_Init ( Tcl_Interp *  interp)

Definition at line 621 of file tclAPI.c.

int plTclCmd ( char *  cmdlist,
Tcl_Interp *  interp,
int  argc,
const char **  argv 
)

Definition at line 277 of file tclAPI.c.

static void plTclCmd_Init ( Tcl_Interp *  PL_UNUSEDinterp)
static

Definition at line 222 of file tclAPI.c.

static int plvectCmd ( ClientData  ,
Tcl_Interp *  ,
int  ,
const char **   
)
static
static int plvectCmd ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int  argc,
const char *  argv[] 
)
static

Definition at line 1309 of file tclAPI.c.

int plWait_Until ( ClientData   PL_UNUSEDclientData,
Tcl_Interp *  interp,
int   PL_UNUSEDargc,
const char **  argv 
)

Definition at line 669 of file tclAPI.c.

static int tcl_cmd ( Tcl_Interp *  interp,
const char *  cmd 
)
static

Definition at line 836 of file tclAPI.c.

static void Tcl_transform ( PLFLT  x,
PLFLT  y,
PLFLT xt,
PLFLT yt,
PLPointer   PL_UNUSEDdata 
)
static

Definition at line 4360 of file tclAPI.c.

PLFLT tclMatrix_feval ( PLINT  i,
PLINT  j,
PLPointer  p 
)

Definition at line 896 of file tclAPI.c.

Variable Documentation

char buf[200]
static

Definition at line 861 of file tclAPI.c.

CmdInfo Cmds[]
static

Definition at line 105 of file tclAPI.c.

Tcl_HashTable cmdTable
static

Definition at line 141 of file tclAPI.c.

int cmdTable_initted
static

Definition at line 140 of file tclAPI.c.

char errmsg[160]
static

Definition at line 146 of file tclAPI.c.

Tcl_Obj* label_objs[4] = { NULL, NULL, NULL, NULL }
static

Definition at line 4854 of file tclAPI.c.

PLINT pl_errcode
static

Definition at line 145 of file tclAPI.c.

int return_code
static

Definition at line 3637 of file tclAPI.c.

Tcl_Interp* tcl_interp
static

Definition at line 3636 of file tclAPI.c.

char* tcl_xform_code = 0
static

Definition at line 4357 of file tclAPI.c.

Tcl_Interp* tcl_xform_interp = 0
static

Definition at line 4347 of file tclAPI.c.

char* tcl_xform_procname = 0
static

Definition at line 4348 of file tclAPI.c.

const char* tcl_xform_template = "set result [%s ${_##_x} ${_##_y}] ; lassign $result _##_x _##_y"
static

Definition at line 4349 of file tclAPI.c.

int tclmateval_modx
static

Definition at line 894 of file tclAPI.c.

int tclmateval_mody
static

Definition at line 894 of file tclAPI.c.

const char* transform_name
static

Definition at line 3634 of file tclAPI.c.