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

py_commands.C File Reference

#include "py_commands.h"
#include "VMDApp.h"
#include "Molecule.h"
#include "MoleculeList.h"

Go to the source code of this file.

Functions

const char * as_constcharptr (PyObject *target)
PyObject * as_pystring (const char *target)
int is_pystring (const PyObject *target)
PyObject * as_pyint (int target)
int as_int (PyObject *target)
int is_pyint (PyObject *target)
VMDAppget_vmdapp ()
void set_vmdapp (VMDApp *app)
int py_array_from_obj (PyObject *obj, float *arr)
Timestepparse_timestep (VMDApp *app, int molid, int frame)
int valid_molid (int molid, VMDApp *app)
int py_get_vector (PyObject *matobj, int n, float *vec)
int convert_bool (PyObject *obj, void *boolval)

Variables

_py3_inittab py_initializers []


Function Documentation

const char* as_constcharptr PyObject *    target
 

Definition at line 107 of file py_commands.C.

References NULL, and result.

int as_int PyObject *    target
 

Definition at line 184 of file py_commands.C.

References is_pyint, and result.

PyObject* as_pyint int    target
 

Definition at line 162 of file py_commands.C.

References NULL, and result.

PyObject* as_pystring const char *    target
 

Definition at line 125 of file py_commands.C.

References NULL, and result.

int convert_bool PyObject *    obj,
void *    boolval
 

Definition at line 380 of file py_commands.C.

VMDApp* get_vmdapp  
 

Definition at line 224 of file py_commands.C.

References NULL.

Referenced by atomsel_new, initaxes, initvmd, mol_from_id, py_activate, py_add, py_addmacro, py_addmenu, py_addrep, py_allmacros, py_anim_goto, py_atomselect, py_categories, py_change, py_color, py_copyunitcell, py_delframe, py_delmacro, py_delrep, py_dupframe, py_evaltcl, py_fix, py_forward, py_get, py_get_accessions, py_get_autoupdate, py_get_center, py_get_color, py_get_colorlist, py_get_colormap, py_get_colors, py_get_colorupdate, py_get_databases, py_get_filenames, py_get_filetypes, py_get_frame, py_get_location, py_get_material, py_get_periodic, py_get_physical_time, py_get_remarks, py_get_repname, py_get_rotation, py_get_scale, py_get_scaleminmax, py_get_selection, py_get_smoothing, py_get_style, py_get_top, py_get_trans, py_get_visible, py_getmacro, py_imdconnect, py_imdconnected, py_imddetach, py_imdkeep, py_imdkill, py_imdpause, py_imdtransfer, py_is_active, py_is_fixed, py_is_shown, py_label_add, py_label_delete, py_label_getvalues, py_label_textsize, py_label_textthickness, py_label_visible, py_listall, py_location, py_loop, py_matdelete, py_material, py_measure_angle, py_measure_bond, py_measure_dihed, py_menushow, py_modrep, py_mol_add_volumetric, py_mol_cancel, py_mol_del_volumetric, py_mol_delete, py_mol_exists, py_mol_fromsel, py_mol_get_volumetric, py_mol_listall, py_mol_load, py_mol_name, py_mol_new, py_mol_num, py_mol_num_volumetric, py_mol_numatoms, py_mol_read, py_mol_rename, py_mol_ssrecalc, py_mol_write, py_molrep_num, py_mousemode, py_next, py_numframes, py_once, py_pause, py_prev, py_registermenu, py_rename, py_render, py_repindex, py_reset_scaleminmax, py_resetview, py_reverse, py_rock, py_rotate, py_scale, py_scale_max, py_scale_method, py_scale_methods, py_scale_midpoint, py_scale_min, py_scale_posterize, py_scale_reverse, py_set, py_set_autoupdate, py_set_center, py_set_colorid, py_set_colormap, py_set_colors, py_set_colorupdate, py_set_default, py_set_frame, py_set_location, py_set_periodic, py_set_physical_time, py_set_rotation, py_set_scale, py_set_scaleminmax, py_set_smoothing, py_set_top, py_set_trans, py_set_visible, py_settings, py_show, py_skip, py_speed, py_stereomodes, py_style, py_timestep, py_translate, py_update, py_update_off, py_update_on, py_update_ui, py_velocities, py_vmdexit, py_vmdupdate, py_write, topo_add_angle, topo_add_bond, topo_add_dihed, topo_add_improp, topo_angletypes, topo_bondtypes, topo_del_all_angles, topo_del_all_bonds, topo_del_all_dihed, topo_del_all_impropers, topo_del_angle, topo_del_bond, topo_del_dihed, topo_del_improper, topo_dihetypes, topo_get_angle, topo_get_bond, topo_get_dihed, topo_get_impro, and topo_imptypes.

int is_pyint PyObject *    target
 

Definition at line 202 of file py_commands.C.

int is_pystring const PyObject *    target
 

Definition at line 152 of file py_commands.C.

Timestep* parse_timestep VMDApp   app,
int    molid,
int    frame
 

Definition at line 302 of file py_commands.C.

References DrawMolecule::current, DrawMolecule::get_frame, DrawMolecule::get_last_frame, MoleculeList::mol_from_id, VMDApp::molecule_top, VMDApp::moleculeList, and NULL.

int py_array_from_obj PyObject *    obj,
float *    arr
 

Definition at line 274 of file py_commands.C.

References NULL.

int py_get_vector PyObject *    matobj,
int    n,
float *    vec
 

Definition at line 344 of file py_commands.C.

References n, and NULL.

void set_vmdapp VMDApp   app
 

Definition at line 260 of file py_commands.C.

References NULL.

int valid_molid int    molid,
VMDApp   app
 

Definition at line 334 of file py_commands.C.

References VMDApp::molecule_valid_id.


Variable Documentation

_py3_inittab py_initializers[]
 

Initial value:

 {
   {"animate", initanimate},
   {"atomsel", initatomsel},
   {"axes", initaxes},
   {"color", initcolor},
   {"display", initdisplay},
   {"graphics", initgraphics},

   {"imd", initimd},

   {"label", initlabel},
   {"material", initmaterial},
   {"molecule", initmolecule},
   {"molrep", initmolrep},
   {"mouse", initmouse},
   {"render", initrender},
   {"trans", inittrans},
   {"measure", initmeasure},
   {"topology", inittopology},
   {"selection", initselection},
   {"vmdcallbacks", initvmdcallbacks},
   {"vmdmenu", initvmdmenu},

   {"vmdnumpy", initvmdnumpy},

   {NULL, NULL},
}

Definition at line 391 of file py_commands.C.


Generated on Wed Apr 24 02:43:57 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002