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 141 of file tclAPI.c.

#define PLPLOT_EXTENDED_SEARCH

Definition at line 152 of file tclAPI.c.

Typedef Documentation

typedef struct Command Command

Function Documentation

static void Append_Cmdlist ( Tcl_Interp *  interp)
static

Definition at line 169 of file tclAPI.c.

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

Definition at line 4185 of file tclAPI.c.

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

Definition at line 4158 of file tclAPI.c.

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

Definition at line 4131 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 4033 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 334 of file tclAPI.c.

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

Definition at line 3323 of file tclAPI.c.

int PlbasicInit ( Tcl_Interp *  interp)

Definition at line 396 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 4354 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 900 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 3633 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 3733 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 3809 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 4223 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 3398 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 3465 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 1781 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 1643 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 2157 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 2017 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 2623 of file tclAPI.c.

int pls_auto_path ( Tcl_Interp *  interp)

Definition at line 694 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 2646 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 2688 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 3011 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 4075 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 3595 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 3923 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 2396 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 1239 of file tclAPI.c.

int Pltcl_Init ( Tcl_Interp *  interp)

Definition at line 611 of file tclAPI.c.

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

Definition at line 267 of file tclAPI.c.

static void plTclCmd_Init ( Tcl_Interp *  PL_UNUSEDinterp)
static

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

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

Definition at line 659 of file tclAPI.c.

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

Definition at line 826 of file tclAPI.c.

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

Definition at line 3535 of file tclAPI.c.

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

Definition at line 886 of file tclAPI.c.

Variable Documentation

char buf[200]
static

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

Tcl_HashTable cmdTable
static

Definition at line 131 of file tclAPI.c.

int cmdTable_initted
static

Definition at line 130 of file tclAPI.c.

char errmsg[160]
static

Definition at line 136 of file tclAPI.c.

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

Definition at line 4029 of file tclAPI.c.

PLINT pl_errcode
static

Definition at line 135 of file tclAPI.c.

PLDLLIMPORT char* plplotLibDir

Definition at line 74 of file plctrl.c.

int return_code
static

Definition at line 3320 of file tclAPI.c.

Tcl_Interp* tcl_interp
static

Definition at line 3319 of file tclAPI.c.

char* tcl_xform_code = 0
static

Definition at line 3532 of file tclAPI.c.

Tcl_Interp* tcl_xform_interp = 0
static

Definition at line 3522 of file tclAPI.c.

char* tcl_xform_procname = 0
static

Definition at line 3523 of file tclAPI.c.

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

Definition at line 3524 of file tclAPI.c.

int tclmateval_modx
static

Definition at line 884 of file tclAPI.c.

int tclmateval_mody
static

Definition at line 884 of file tclAPI.c.

const char* transform_name
static

Definition at line 3317 of file tclAPI.c.