Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TclCommands.h File Reference

Go to the source code of this file.

Functions

int Vmd_Init (Tcl_Interp *)
int molecule_tcl (ClientData, Tcl_Interp *interp, int argc, const char *argv[])
int Vec_Init (Tcl_Interp *)
int Atomsel_Init (Tcl_Interp *)
AtomSeltcl_commands_get_sel (Tcl_Interp *, const char *str)
int graphics_tcl (ClientData, Tcl_Interp *interp, int argc, const char *argv[])
int tcl_colorinfo (ClientData, Tcl_Interp *interp, int argc, const char *argv[])
int obj_graphlayout (ClientData cd, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[])
int obj_measure (ClientData, Tcl_Interp *, int, Tcl_Obj *const[])
int obj_mdff_cc (ClientData cd, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[])
int obj_voltool (ClientData cd, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[])
int obj_segmentation (ClientData cd, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[])
int obj_volmap (ClientData, Tcl_Interp *, int, Tcl_Obj *const[])
int tcl_get_matrix (const char *fctn, Tcl_Interp *interp, Tcl_Obj *s, float *mat)
 Given a string with a matrix in it, return the matrix. More...

int tcl_get_weights (Tcl_Interp *interp, VMDApp *app, AtomSel *sel, Tcl_Obj *weight_obj, float *data)
 converts a Tcl string into a usable array of weights for VMD functions. More...

int atomsel_default_weights (AtomSel *sel, float *weights)
 Assign weights of 1 to all atoms in the selection, and zero otherwise. More...

int get_weights_from_tcl_list (Tcl_Interp *interp, VMDApp *app, AtomSel *sel, Tcl_Obj *weights_obj, float *weights)
 Obtain weights from a Tcl list. More...

int get_attribute_index (VMDApp *app, char const *string)
 Get the index of the given keyword in the VMD namespace (avoid having to include SymbolTable.h). More...

int get_weights_from_attribute (VMDApp *app, AtomSel *sel, char const *weights_string, float *weights)
 Obtain weights from the requested attribute. More...

int tcl_get_vector (const char *s, float *val, Tcl_Interp *interp)
int tcl_get_vecarray (const char *s, int &num, float *&val, Tcl_Interp *interp)
int tcl_get_array (const char *s, int &num, float *&val, Tcl_Interp *interp)
int tcl_get_intarray (const char *s, int &num, int *&val, Tcl_Interp *interp)
void tcl_append_matrix (Tcl_Interp *interp, const float *mat)
int obj_fastpbc (ClientData, Tcl_Interp *, int, Tcl_Obj *const[])


Function Documentation

int atomsel_default_weights AtomSel   sel,
float *    weights
 

Assign weights of 1 to all atoms in the selection, and zero otherwise.

Definition at line 133 of file TclMeasure.C.

int Atomsel_Init Tcl_Interp *   
 

Definition at line 1401 of file TclCommands.C.

int get_attribute_index VMDApp   app,
char const *    string
 

Get the index of the given keyword in the VMD namespace (avoid having to include SymbolTable.h).

Definition at line 174 of file TclMeasure.C.

int get_weights_from_attribute VMDApp   app,
AtomSel   sel,
char const *    weights_string,
float *    weights
 

Obtain weights from the requested attribute.

Definition at line 180 of file TclMeasure.C.

int get_weights_from_tcl_list Tcl_Interp *    interp,
VMDApp   app,
AtomSel   sel,
Tcl_Obj *    weights_obj,
float *    weights
 

Obtain weights from a Tcl list.

Definition at line 149 of file TclMeasure.C.

int graphics_tcl ClientData   ,
Tcl_Interp *    interp,
int    argc,
const char *    argv[]
 

Definition at line 918 of file TclGraphics.C.

int molecule_tcl ClientData   ,
Tcl_Interp *    interp,
int    argc,
const char *    argv[]
 

Definition at line 1109 of file TclMolInfo.C.

int obj_fastpbc ClientData    cd,
Tcl_Interp *    interp,
int    argc,
Tcl_Obj *const    objv[]
 

The interface between user and Fast PBC module (works as a controller)

Function obj_fastpbc() trys to find the content of the first user argument given to fpbc (i.e. objv[0]) and decide which sub-function to call e.g. "wrap", "unwrap", "join".

## Implementation Call VMD's function **strupncmp()** (case-insensitive string comparison) to find which sub-function the user want to call.

Definition at line 614 of file TclFastPBC.C.

int obj_graphlayout ClientData    cd,
Tcl_Interp *    interp,
int    argc,
Tcl_Obj *const    objv[]
 

Definition at line 177 of file TclGraphLayout.C.

int obj_mdff_cc ClientData    cd,
Tcl_Interp *    interp,
int    argc,
Tcl_Obj *const    objv[]
 

Definition at line 627 of file TclMDFF.C.

int obj_measure ClientData   ,
Tcl_Interp *   ,
int   ,
Tcl_Obj *    const[]
 

Definition at line 4514 of file TclMeasure.C.

int obj_segmentation ClientData    cd,
Tcl_Interp *    interp,
int    argc,
Tcl_Obj *const    objv[]
 

Definition at line 250 of file TclSegmentation.C.

int obj_volmap ClientData   ,
Tcl_Interp *   ,
int   ,
Tcl_Obj *    const[]
 

Definition at line 1475 of file TclVolMap.C.

int obj_voltool ClientData    cd,
Tcl_Interp *    interp,
int    argc,
Tcl_Obj *const    objv[]
 

Definition at line 3626 of file TclVoltool.C.

void tcl_append_matrix Tcl_Interp *    interp,
const float *    mat
 

Definition at line 343 of file TclVec.C.

int tcl_colorinfo ClientData   ,
Tcl_Interp *    interp,
int    argc,
const char *    argv[]
 

Definition at line 233 of file ColorInfo.C.

AtomSel* tcl_commands_get_sel Tcl_Interp *   ,
const char *    str
 

Definition at line 294 of file TclCommands.C.

Referenced by fit, fpbc_join, fpbc_recenter, fpbc_unwrap, fpbc_wrap, mask, mdff_cc, mdff_sim, text_cmd_animate, text_cmd_mol, text_cmd_vmdbench, vmd_measure_avpos, vmd_measure_center, vmd_measure_centerperresidue, vmd_measure_cluster, vmd_measure_clustsize, vmd_measure_contacts, vmd_measure_dipole, vmd_measure_fit, vmd_measure_gofr, vmd_measure_hbonds, vmd_measure_inertia, vmd_measure_minmax, vmd_measure_pbc_neighbors, vmd_measure_rdf, vmd_measure_rgyr, vmd_measure_rmsd, vmd_measure_rmsd_qcp, vmd_measure_rmsdmat_qcp, vmd_measure_rmsdmat_qcp_ooc, vmd_measure_rmsdperresidue, vmd_measure_rmsf, vmd_measure_rmsfperresidue, vmd_measure_sasa, vmd_measure_sasalist, vmd_measure_sumweights, vmd_measure_surface, vmd_measure_symmetry, vmd_measure_trans_overlap, vmd_measure_volinterior, vmd_volmap_ils, and vmd_volmap_new_fromtype.

int tcl_get_array const char *    s,
int &    num,
float *&    val,
Tcl_Interp *    interp
 

Definition at line 292 of file TclVec.C.

int tcl_get_intarray const char *    s,
int &    num,
int *&    val,
Tcl_Interp *    interp
 

Definition at line 317 of file TclVec.C.

int tcl_get_matrix const char *    fctn,
Tcl_Interp *    interp,
Tcl_Obj *    s,
float *    mat
 

Given a string with a matrix in it, return the matrix.

Definition at line 192 of file TclVec.C.

int tcl_get_vecarray const char *    s,
int &    num,
float *&    val,
Tcl_Interp *    interp
 

Definition at line 267 of file TclVec.C.

int tcl_get_vector const char *    s,
float *    val,
Tcl_Interp *    interp
 

Definition at line 240 of file TclVec.C.

int tcl_get_weights Tcl_Interp *    interp,
VMDApp   app,
AtomSel   sel,
Tcl_Obj *    weight_obj,
float *    data
 

converts a Tcl string into a usable array of weights for VMD functions.

Definition at line 57 of file TclMeasure.C.

References data, mat, num, and string.

int Vec_Init Tcl_Interp *   
 

Definition at line 712 of file TclVec.C.

int Vmd_Init Tcl_Interp *   
 

Definition at line 188 of file tcl_commands.C.


Generated on Thu Mar 28 02:44:50 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002