#include "py_commands.h"#include <ctype.h>#include <stdlib.h>#include "config.h"#include "utilities.h"#include "VMDApp.h"#include "JString.h"#include "Molecule.h"#include "MoleculeList.h"Go to the source code of this file.
Functions | |
| PyObject * | mol_num (PyObject *self, PyObject *args) |
| PyObject * | mol_listall (PyObject *self, PyObject *args) |
| PyObject * | mol_exists (PyObject *self, PyObject *args) |
| PyObject * | mol_name (PyObject *self, PyObject *args) |
| PyObject * | mol_numatoms (PyObject *self, PyObject *args) |
| PyObject * | mol_new (PyObject *self, PyObject *args) |
| PyObject * | mol_load (PyObject *self, PyObject *args, PyObject *keywds) |
| PyObject * | mol_cancel (PyObject *self, PyObject *args) |
| PyObject * | mol_delete (PyObject *self, PyObject *args) |
| PyObject * | get_top (PyObject *self, PyObject *args) |
| PyObject * | set_top (PyObject *self, PyObject *args) |
| PyObject * | readorwrite (PyObject *self, PyObject *args, PyObject *keywds, int do_read) |
| PyObject * | mol_read (PyObject *self, PyObject *args, PyObject *keywds) |
| PyObject * | mol_write (PyObject *self, PyObject *args, PyObject *keywds) |
| PyObject * | numframes (PyObject *self, PyObject *args) |
| PyObject * | get_frame (PyObject *self, PyObject *args) |
| PyObject * | set_frame (PyObject *self, PyObject *args) |
| PyObject * | delframe (PyObject *self, PyObject *args, PyObject *keywds) |
| PyObject * | dupframe (PyObject *self, PyObject *args) |
| PyObject * | mol_ssrecalc (PyObject *self, PyObject *args) |
| PyObject * | mol_rename (PyObject *self, PyObject *args) |
| PyObject * | mol_add_volumetric (PyObject *self, PyObject *args, PyObject *keywds) |
| PyObject * | get_filenames (PyObject *self, PyObject *args) |
| PyObject * | get_filetypes (PyObject *self, PyObject *args) |
| PyObject * | get_databases (PyObject *self, PyObject *args) |
| PyObject * | get_accessions (PyObject *self, PyObject *args) |
| PyObject * | get_remarks (PyObject *self, PyObject *args) |
| PyObject * | get_periodic (PyObject *self, PyObject *args, PyObject *kwds) |
| PyObject * | set_periodic (PyObject *self, PyObject *args, PyObject *kwds) |
| PyObject * | get_visible (PyObject *self, PyObject *args, PyObject *kwds) |
| PyObject * | set_visible (PyObject *self, PyObject *args, PyObject *kwds) |
| PyObject * | get_physical_time (PyObject *self, PyObject *args, PyObject *kwds) |
| PyObject * | set_physical_time (PyObject *self, PyObject *args, PyObject *kwds) |
| void | initmolecule () |
Variables | |
| char | mol_num_doc [] |
| char | mol_listall_doc [] |
| char | mol_exists_doc [] |
| char | mol_name_doc [] |
| char | mol_numatoms_doc [] |
| char | mol_new_doc [] |
| char | mol_load_doc [] |
| char | mol_cancel_doc [] |
| char | mol_delete_doc [] |
| char | get_top_doc [] |
| char | set_top_doc [] |
| char | mol_read_doc [] |
| char | mol_write_doc [] |
| char | numframes_doc [] |
| char | get_frame_doc [] |
| char | set_frame_doc [] |
| char | delframe_doc [] |
| char | dupframe_doc [] |
| char | mol_ssrecalc_doc [] |
| char | mol_rename_doc [] |
| char | add_volumetric_doc [] |
| char | filenames_doc [] = "get_filenames(molid): return list of files loaded in the molecule" |
| char | filetypes_doc [] = "get_filetypes(molid): returns list of corresponding file types." |
| char | databases_doc [] = "get_databases(molid): returns list of databases of origin " |
| char | accessions_doc [] = "get_accessions(molid): returns list of database accession codes" |
| char | remarks_doc [] = "get_remarks(molid): returns list of per-file remarks/comments" |
| char | get_periodic_doc [] |
| char | set_periodic_doc [] |
| char | get_visible_doc [] |
| char | set_visible_doc [] |
| PyMethodDef | MolMethods [] |
|
||||||||||||||||
|
Definition at line 414 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_deleteframes, VMDApp::molecule_valid_id, and NULL. |
|
||||||||||||
|
Definition at line 446 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_dupframe, VMDApp::molecule_valid_id, and NULL. |
|
||||||||||||
|
Definition at line 664 of file py_molecule.C. References Molecule::get_accession, get_vmdapp, MoleculeList::mol_from_id, VMDApp::moleculeList, NULL, num, and Molecule::num_files. |
|
||||||||||||
|
Definition at line 646 of file py_molecule.C. References Molecule::get_database, get_vmdapp, MoleculeList::mol_from_id, VMDApp::moleculeList, NULL, num, and Molecule::num_files. |
|
||||||||||||
|
Definition at line 610 of file py_molecule.C. References Molecule::get_file, get_vmdapp, MoleculeList::mol_from_id, VMDApp::moleculeList, NULL, num, and Molecule::num_files. |
|
||||||||||||
|
Definition at line 628 of file py_molecule.C. References Molecule::get_type, get_vmdapp, MoleculeList::mol_from_id, VMDApp::moleculeList, NULL, num, and Molecule::num_files. |
|
||||||||||||
|
Definition at line 374 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_frame, VMDApp::molecule_valid_id, and NULL. |
|
||||||||||||||||
|
Definition at line 710 of file py_molecule.C. References Timestep::a_length, Timestep::alpha, Timestep::b_length, Timestep::beta, Timestep::c_length, Timestep::gamma, get_vmdapp, NULL, and parse_timestep. |
|
||||||||||||||||
|
Definition at line 799 of file py_molecule.C. References get_vmdapp, NULL, parse_timestep, and Timestep::physical_time. |
|
||||||||||||
|
Definition at line 682 of file py_molecule.C. References Molecule::get_remarks, get_vmdapp, MoleculeList::mol_from_id, VMDApp::moleculeList, NULL, num, and Molecule::num_files. |
|
||||||||||||
|
Definition at line 226 of file py_molecule.C. References get_vmdapp, and NULL. |
|
||||||||||||||||
|
Definition at line 766 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_is_displayed, VMDApp::molecule_top, VMDApp::molecule_valid_id, and NULL. |
|
|
Definition at line 862 of file py_molecule.C. References MolMethods. |
|
||||||||||||||||
|
Definition at line 522 of file py_molecule.C. References data, get_vmdapp, VMDApp::molecule_add_volumetric, VMDApp::molecule_valid_id, NULL, and py_array_from_obj. |
|
||||||||||||
|
Definition at line 187 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_cancel_io, VMDApp::molecule_valid_id, and NULL. |
|
||||||||||||
|
Definition at line 207 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_delete, VMDApp::molecule_valid_id, and NULL. |
|
||||||||||||
|
Definition at line 62 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_valid_id, and NULL. |
|
||||||||||||
|
Definition at line 46 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_id, NULL, num, and VMDApp::num_molecules. |
|
||||||||||||||||
|
Definition at line 130 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_load, VMDApp::molecule_new, NULL, and FileSpec::waitfor. |
|
||||||||||||
|
Definition at line 73 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_name, and NULL. |
|
||||||||||||
|
Definition at line 110 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_new, and NULL. |
|
||||||||||||
|
Definition at line 36 of file py_molecule.C. References get_vmdapp, and NULL. |
|
||||||||||||
|
Definition at line 92 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_numatoms, VMDApp::molecule_valid_id, and NULL. |
|
||||||||||||||||
|
Definition at line 335 of file py_molecule.C. References readorwrite. |
|
||||||||||||
|
Definition at line 495 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_rename, VMDApp::molecule_valid_id, and NULL. |
|
||||||||||||
|
Definition at line 470 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_ssrecalc, VMDApp::molecule_valid_id, and NULL. |
|
||||||||||||||||
|
Definition at line 352 of file py_molecule.C. References readorwrite. |
|
||||||||||||
|
Definition at line 358 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_numframes, VMDApp::molecule_valid_id, and NULL. Referenced by molinfo_set, and readorwrite. |
|
||||||||||||||||||||
|
Definition at line 253 of file py_molecule.C. References atomsel_AsAtomSel, FileSpec::first, get_vmdapp, FileSpec::last, VMDApp::molecule_load, VMDApp::molecule_savetrajectory, VMDApp::molecule_valid_id, AtomSel::molid, NULL, numframes, FileSpec::nvolsets, AtomSel::on, FileSpec::selection, FileSpec::setids, FileSpec::stride, and FileSpec::waitfor. |
|
||||||||||||
|
Definition at line 392 of file py_molecule.C. References DrawMolecule::change_ts, get_vmdapp, MoleculeList::mol_from_id, VMDApp::moleculeList, NULL, and DrawMolecule::override_current_frame. |
|
||||||||||||||||
|
Definition at line 734 of file py_molecule.C. References Timestep::a_length, Timestep::alpha, Timestep::b_length, Timestep::beta, Timestep::c_length, Timestep::gamma, get_vmdapp, NULL, and parse_timestep. |
|
||||||||||||||||
|
Definition at line 810 of file py_molecule.C. References get_vmdapp, NULL, parse_timestep, and Timestep::physical_time. |
|
||||||||||||
|
Definition at line 236 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_make_top, VMDApp::molecule_valid_id, and NULL. |
|
||||||||||||||||
|
Definition at line 780 of file py_molecule.C. References get_vmdapp, VMDApp::molecule_display, VMDApp::molecule_top, VMDApp::molecule_valid_id, and NULL. |
|
|
Definition at line 608 of file py_molecule.C. |
|
|
Initial value: "add_volumetric(molid, name, origin, xaxis, yaxis, zaxis,\n" " xsize, ysize, zsize, data)\n" " Add a new volumetric data set to a molecule. origin, xaxis, yaxis,\n" " and zaxis are 3-vectors represented as lists. xsize, ysize, zsize\n" " give the size of the volumetric grid data. data must be a list of\n" " floats of size xsize * ysize * zsize. origin represents the point\n" " at the lower left rear corner of the grid." Definition at line 514 of file py_molecule.C. |
|
|
Definition at line 607 of file py_molecule.C. |
|
|
Initial value: "delframe(molid, beg=0, end=-1, skip=0)\n" "Delete frames in the range [beg, end] inclusive, keeping every\n" " 'skip' frame between beg and end." Definition at line 410 of file py_molecule.C. |
|
|
Initial value: "dupframe(molid, frame) -> Duplicate given frame.\n" "If frame is -1, duplicate the current frame; this also creates\n" "a new frame with coordinates all zero if there are no frames in\n" "the molecule." Definition at line 441 of file py_molecule.C. |
|
|
Definition at line 605 of file py_molecule.C. |
|
|
Definition at line 606 of file py_molecule.C. |
|
|
Initial value: "get_frame(molid) -> current frame of molecule with id 'molid'." Definition at line 372 of file py_molecule.C. |
|
|
Initial value: "get_periodic(molid=-1, frame=-1)\n" "return dict with keys 'a', 'b', 'c', 'alpha', 'beta', and 'gamma'\n" "representing the periodic cell layout for a particular frame.\n" "a, b, and c are the lengths of the unit cell along the first, second\n" "and third unit cell vectors, respectively. alpha, beta, and gamma\n" "give the angle between sides B and C, A and C, and A and B,\n" "respectively." Definition at line 702 of file py_molecule.C. |
|
|
Initial value: "get_top(molid) -> molid\n" "Return molid of top molecule." Definition at line 223 of file py_molecule.C. |
|
|
Initial value: "get_visible(molid=-1) -> boolean\n" " Get visibility state for selected molecule, default top molecule\n" Definition at line 759 of file py_molecule.C. |
|
|
Initial value: "cancel(molid) -> None\n" "Cancel background loading of files for given molid." Definition at line 184 of file py_molecule.C. |
|
|
Initial value: "delete(molid) -> None\n" "Delete molecule with given molid." Definition at line 204 of file py_molecule.C. |
|
|
Initial value: "exists(molid) -> boolean\n" "Return True if molid is valid." Definition at line 59 of file py_molecule.C. |
|
|
Initial value: "listall() -> list\n" "Returns list of all valid molid's." Definition at line 43 of file py_molecule.C. |
|
|
Initial value: "load(structure, sfname, coor, cfname) -> molid\n" "Load new molecule with structure file type 'structure', \n" " structure file name 'sfname', coordinate file type 'coor', and\n" " coordinate file name 'cfname'. 'coor' and 'cfname' are optional." Definition at line 124 of file py_molecule.C. |
|
|
Initial value: "name(molid) -> string\n" "Returns name of given molecule" Definition at line 70 of file py_molecule.C. |
|
|
Initial value: "new(name[,natoms]) -> int\n" "Creates a new molecule with given name and returns molid. An\n" "additional integer argument adds that number of 'empty' atoms to the molecule." Definition at line 106 of file py_molecule.C. |
|
|
Initial value: "num() -> int\n" "RAeturns the number of loaded molecules." Definition at line 33 of file py_molecule.C. |
|
|
Initial value: "numatoms (molid) -> int\n" "Returns number of atoms in given molecule" Definition at line 88 of file py_molecule.C. |
|
|
Initial value: "read(molid, filetype, filename, beg=0, end=-1, skip=1, waitfor=1)\n" "Read data from file 'filename' of type 'filetype' into molecule with\n" "id 'molid'. molid=-1 creates new molecule. Return number of frames\n" "read (remaining frames will be loaded in the background.\n" " First frame = beg; default 0\n" " Last frame = end; default all frames\n" " Frame stride = skip; default load all frames\n" " Frames to load before returning = waitfor; default 1\n" Definition at line 326 of file py_molecule.C. |
|
|
Initial value: "rename(molid, newname) -> rename molecule to 'newname'." Definition at line 493 of file py_molecule.C. |
|
|
Initial value: "ssrecalc(molid) -> recalculate secondary structure for molecule.\n" "raises RuntimeError if structure could not be calculated, usually\n" "due to the Stride program not being available." Definition at line 466 of file py_molecule.C. |
|
|
Initial value: "write(molid, filetype, filename, beg=0, end=-1, skip=1, waitfor=-1,\n" " selection=None)\n" "Write data into file 'filename' of type 'filetype' from molecule with\n" "id 'molid'. Return number of frames written (remaining frames will be\n" "written in the background.\n" " First frame = beg; default 0\n" " Last frame = end; default all frames\n" " Frame stride = skip; default load all frames\n" " Frames to load before returning = waitfor; default 1\n" " Specify selection of atoms to write with 'selection' keyword; pass\n" " tuple of atom indexes as argument." Definition at line 339 of file py_molecule.C. |
|
|
Definition at line 825 of file py_molecule.C. Referenced by initmolecule. |
|
|
Initial value: "numframes(molid) -> number of frames in molecule with id 'molid'." Definition at line 356 of file py_molecule.C. |
|
|
Definition at line 609 of file py_molecule.C. |
|
|
Initial value: "set_frame(molid, frame)\n" "Change frame of molecule with id 'molid' to 'frame'." Definition at line 388 of file py_molecule.C. |
|
|
Initial value: "set_periodic(molid=-1, frame=-1, a, b, c, alpha, beta, gamma)\n" "Set the periodic cell layout for a particular frame.\n" "All keywords except molid are optional. See get_periodic for\n" "descriptions of the keywords." Definition at line 729 of file py_molecule.C. |
|
|
Initial value: "set_top(molid) -> None\n" "Make the molecule top." Definition at line 233 of file py_molecule.C. |
|
|
Initial value: "set_visible(molid=-1, state)\n" " Turn selected molecule on or off, default top molecule\n" Definition at line 762 of file py_molecule.C. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002