PLplot  5.10.0
 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 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 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)
static int tcl_cmd (Tcl_Interp *interp, const char *cmd)
static void Append_Cmdlist (Tcl_Interp *interp)
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 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 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 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]
PLDLLIMPORT char * plplotLibDir
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 143 of file tclAPI.c.

#define PLPLOT_EXTENDED_SEARCH

Definition at line 154 of file tclAPI.c.

Typedef Documentation

typedef struct Command Command

Function Documentation

static void Append_Cmdlist ( Tcl_Interp *  interp)
static

Definition at line 171 of file tclAPI.c.

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

Definition at line 4187 of file tclAPI.c.

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

Definition at line 4160 of file tclAPI.c.

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

Definition at line 4133 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 4035 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 336 of file tclAPI.c.

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

Definition at line 3325 of file tclAPI.c.

int PlbasicInit ( Tcl_Interp *  interp)

Definition at line 398 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 4356 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 902 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 3635 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 3735 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 3811 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 4225 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 3400 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 3467 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 1783 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 1645 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 2159 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 2019 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 2625 of file tclAPI.c.

int pls_auto_path ( Tcl_Interp *  interp)

Definition at line 696 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 2648 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 2690 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 3013 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 4077 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 3597 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 3925 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 2398 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 1241 of file tclAPI.c.

int Pltcl_Init ( Tcl_Interp *  interp)

Definition at line 613 of file tclAPI.c.

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

Definition at line 269 of file tclAPI.c.

static void plTclCmd_Init ( Tcl_Interp *  PL_UNUSEDinterp)
static

Definition at line 214 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 1301 of file tclAPI.c.

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

Definition at line 661 of file tclAPI.c.

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

Definition at line 828 of file tclAPI.c.

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

Definition at line 3537 of file tclAPI.c.

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

Definition at line 888 of file tclAPI.c.

Variable Documentation

char buf[200]
static

Definition at line 853 of file tclAPI.c.

CmdInfo Cmds[]
static
Initial value:
{
{ "loopback", loopbackCmd },
{ "plcolorbar", plcolorbarCmd },
{ "plcont", plcontCmd },
{ "pllegend", pllegendCmd },
{ "plmap", plmapCmd },
{ "plmeridians", plmeridiansCmd },
{ "plstransform", plstransformCmd },
{ "plmesh", plmeshCmd },
{ "plmeshc", plmeshcCmd },
{ "plot3d", plot3dCmd },
{ "plot3dc", plot3dcCmd },
{ "plsurf3d", plsurf3dCmd },
{ "plsetopt", plsetoptCmd },
{ "plshade", plshadeCmd },
{ "plshades", plshadesCmd },
{ "plsvect", plsvectCmd },
{ "plvect", plvectCmd },
{ "plrandd", plranddCmd },
{ "plgriddata", plgriddataCmd },
{ "plimage", plimageCmd },
{ "plimagefr", plimagefrCmd },
{ "plstripc", plstripcCmd },
{ "plslabelfunc", plslabelfuncCmd },
{ NULL, NULL }
}

Definition at line 102 of file tclAPI.c.

Tcl_HashTable cmdTable
static

Definition at line 133 of file tclAPI.c.

int cmdTable_initted
static

Definition at line 132 of file tclAPI.c.

char errmsg[160]
static

Definition at line 138 of file tclAPI.c.

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

Definition at line 4031 of file tclAPI.c.

PLINT pl_errcode
static

Definition at line 137 of file tclAPI.c.

PLDLLIMPORT char* plplotLibDir

Definition at line 76 of file plctrl.c.

int return_code
static

Definition at line 3322 of file tclAPI.c.

Tcl_Interp* tcl_interp
static

Definition at line 3321 of file tclAPI.c.

char* tcl_xform_code = 0
static

Definition at line 3534 of file tclAPI.c.

Tcl_Interp* tcl_xform_interp = 0
static

Definition at line 3524 of file tclAPI.c.

char* tcl_xform_procname = 0
static

Definition at line 3525 of file tclAPI.c.

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

Definition at line 3526 of file tclAPI.c.

int tclmateval_modx
static

Definition at line 886 of file tclAPI.c.

int tclmateval_mody
static

Definition at line 886 of file tclAPI.c.

const char* transform_name
static

Definition at line 3319 of file tclAPI.c.