00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef TCLCOMMANDS_H
00022 #define TCLCOMMANDS_H
00023
00024 class AtomSel;
00025 class VMDApp;
00026
00027
00028 int Vmd_Init(Tcl_Interp *);
00029
00030
00031 int molecule_tcl(ClientData, Tcl_Interp *interp, int argc, const char *argv[]);
00032
00033
00034 int Vec_Init(Tcl_Interp *);
00035
00036
00037 int Atomsel_Init(Tcl_Interp *);
00038
00039
00040
00041 AtomSel *tcl_commands_get_sel(Tcl_Interp *, const char *str);
00042
00043
00044 int graphics_tcl(ClientData, Tcl_Interp *interp, int argc, const char *argv[]);
00045
00046
00047 int tcl_colorinfo(ClientData, Tcl_Interp *interp, int argc, const char *argv[]);
00048
00049
00050 int obj_graphlayout(ClientData cd, Tcl_Interp *interp, int argc, Tcl_Obj * const objv[]);
00051
00052
00053 int obj_measure(ClientData, Tcl_Interp *, int, Tcl_Obj *const []);
00054
00055
00056 int obj_mdff_cc(ClientData cd, Tcl_Interp *interp, int argc, Tcl_Obj * const objv[]);
00057
00058
00059 int obj_voltool(ClientData cd, Tcl_Interp *interp, int argc, Tcl_Obj * const objv[]);
00060
00061
00062 int obj_segmentation(ClientData cd, Tcl_Interp *interp, int argc, Tcl_Obj * const objv[]);
00063
00064 #if 0
00065
00066 int obj_volgradient(ClientData cd, Tcl_Interp *interp, int argc, Tcl_Obj * const objv[]);
00067 #endif
00068
00069
00070 int obj_volmap(ClientData, Tcl_Interp *, int, Tcl_Obj *const []);
00071
00072
00073
00074
00075
00076
00077 int tcl_get_matrix(const char *fctn, Tcl_Interp *interp,
00078 Tcl_Obj *s, float *mat);
00079
00082 int tcl_get_weights(Tcl_Interp *interp, VMDApp *app, AtomSel *sel,
00083 Tcl_Obj *weight_obj, float *data);
00084
00086 int atomsel_default_weights(AtomSel *sel, float *weights);
00087
00089 int get_weights_from_tcl_list(Tcl_Interp *interp, VMDApp *app, AtomSel *sel,
00090 Tcl_Obj *weights_obj, float *weights);
00091
00094 int get_attribute_index(VMDApp *app, char const *string);
00095
00097 int get_weights_from_attribute(VMDApp *app, AtomSel *sel,
00098 char const *weights_string, float *weights);
00099
00100
00101 int tcl_get_vector(const char *s, float *val, Tcl_Interp *interp);
00102
00103
00104 int tcl_get_vecarray(const char *s, int &num, float *&val, Tcl_Interp *interp);
00105
00106
00107 int tcl_get_array(const char *s, int &num, float *&val, Tcl_Interp *interp);
00108
00109
00110 int tcl_get_intarray(const char *s, int &num, int *&val, Tcl_Interp *interp);
00111
00112
00113 void tcl_append_matrix(Tcl_Interp *interp, const float *mat);
00114
00115 #if defined(VMDTKCON)
00116
00117 int tcl_vmdcon(ClientData nodata, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]);
00118 #endif
00119
00120
00121 int obj_fastpbc(ClientData, Tcl_Interp *, int, Tcl_Obj *const []);
00122
00123 #endif
00124