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

TclCommands.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *cr                                                                       
00003  *cr            (C) Copyright 1995-2008 The Board of Trustees of the           
00004  *cr                        University of Illinois                       
00005  *cr                         All Rights Reserved                        
00006  *cr                                                                   
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  * RCS INFORMATION:
00011  *
00012  *      $RCSfile: TclCommands.h,v $
00013  *      $Author: johns $        $Locker:  $             $State: Exp $
00014  *      $Revision: 1.46 $       $Date: 2008/03/27 19:36:46 $
00015  *
00016  ***************************************************************************
00017  * DESCRIPTION:
00018  *  prototypes for VMD<->Tcl functions
00019  *
00020  ***************************************************************************/
00021 #ifndef TCLCOMMANDS_H
00022 #define TCLCOMMANDS_H
00023 //forward definition
00024 class AtomSel;
00025 class VMDApp;
00026 
00027 // for the core VMD commands
00028 int Vmd_Init(Tcl_Interp *);
00029 
00030 // for 'molinfo'
00031 int molecule_tcl(ClientData, Tcl_Interp *interp, int argc, const char *argv[]);
00032 
00033 // for 'vec*' and 'trans*'
00034 int Vec_Init(Tcl_Interp *);
00035 
00036 // for 'atomselect'
00037 int Atomsel_Init(Tcl_Interp *);
00038 
00039 // get the atom selection associated with the given tcl selection
00040 // (the one of the form 'atomselect%u')
00041 AtomSel *tcl_commands_get_sel(Tcl_Interp *, const char *str);
00042 
00043 // for accessing the graphics
00044 int graphics_tcl(ClientData, Tcl_Interp *interp, int argc, const char *argv[]);
00045 
00046 // for accessing the colors
00047 int tcl_colorinfo(ClientData, Tcl_Interp *interp, int argc, const char *argv[]);
00048 
00049 // for the measure commands
00050 int obj_measure(ClientData, Tcl_Interp *, int, Tcl_Obj *const []);
00051 
00052 // for the volmap commands
00053 int obj_volmap(ClientData, Tcl_Interp *, int, Tcl_Obj *const []);
00054 
00055 // get a matrix from a string; 
00056 // returns TCL_OK if good
00057 // If bad, returns TCL_ERROR and sets the interp->result to the error message
00058 // The name of the function should be passed in 'fctn' so the error message
00059 // can be constructed correctly
00060 int tcl_get_matrix(const char *fctn, Tcl_Interp *interp,
00061                    Tcl_Obj *s, float *mat);
00062 
00065 int tcl_get_weights(Tcl_Interp *interp, VMDApp *app, AtomSel *sel, 
00066                        Tcl_Obj *weight_obj, float *data);
00067 
00068 // Get a vector from a string
00069 int tcl_get_vector(const char *s, float *val, Tcl_Interp *interp);
00070 
00071 // append the matrix information to the interp->result field
00072 void tcl_append_matrix(Tcl_Interp *interp, const float *mat);
00073 
00074 #if defined(VMDTKCON)
00075 // set up and write console log messages
00076 int tcl_vmdcon(ClientData nodata, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]);
00077 #endif
00078 
00079 #endif
00080 

Generated on Fri Aug 29 01:27:21 2008 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002