#include <AtomSel.h>
Inheritance diagram for AtomSel:
Public Types | |
enum | { TS_LAST = -2, TS_NOW = -1 } |
enum | { NO_PARSE = -1, NO_EVAL = -2, PARSE_SUCCESS = 0 } |
return codes for the change() method. NO_PARSE if the string is not correct NO_EVAL if there was some problem finding the atoms in the selection otherwise PARSE_SUCCESS. NO_EVAL will still allow the atom selection to be used, although warning messages will be printed; whether this is the best semantics is questionable but since I don't know how to produce this kind of error we may as well let it slide. More... | |
Public Methods | |
int | molid () const |
molid of "my" molecule. More... | |
AtomSel (VMDApp *vmdapp, SymbolTable *, int mymolid) | |
~AtomSel () | |
int | change (const char *newcmd, DrawMolecule *) |
provide new settings; does a 'find' at the end if a mol has been previously provided and returns the results for the given molecule, find atoms for the molecule. Stores the indices in 'on' for quick retrieval later. If newcmd is NULL, use existing atom selection text return one of the above enum's. More... | |
float * | coordinates (MoleculeList *) const |
get the current coordinates (or NULL if it doesn't exist/ no molecule) FIXME: This is just a wrapper around timestep() and should be eliminated. More... | |
Timestep * | timestep (MoleculeList *) const |
get the current timestep (or NULL if it doesn't exist/ no molecule). More... | |
Static Public Methods | |
int | get_frame_value (const char *s, int *val) |
given a string ("first", "last", "now", or a value) return the timestep value in *val returns -1 if there was a problem on error, if val > 0, the value of s wasn't understood if val < 0, the value was negative. More... | |
Public Attributes | |
char * | cmdStr |
string with the selection command. More... | |
int * | on |
per-atom 'selected' flags; 1=on, 0=off. More... | |
unsigned int * | on256 |
per-256-atom first, last, selected count. More... | |
int | num_atoms |
number of atoms in mol. More... | |
int | num_atoms256 |
number of atoms in mol. More... | |
int | selected |
number of selected atoms the molecule. More... | |
int | firstsel |
index of first selected atom. More... | |
int | lastsel |
index of final selected atom. More... | |
int | which_frame |
int | do_update |
Definition at line 45 of file AtomSel.h.
|
|
|
return codes for the change() method. NO_PARSE if the string is not correct NO_EVAL if there was some problem finding the atoms in the selection otherwise PARSE_SUCCESS. NO_EVAL will still allow the atom selection to be used, although warning messages will be printed; whether this is the best semantics is questionable but since I don't know how to produce this kind of error we may as well let it slide.
|
|
Definition at line 2341 of file AtomSel.C. References cmdStr, do_update, firstsel, lastsel, NO_PARSE, NULL, num_atoms, num_atoms256, on, on256, selected, TS_NOW, and which_frame. |
|
Definition at line 2361 of file AtomSel.C. References cmdStr, firstsel, lastsel, NO_PARSE, NULL, num_atoms, num_atoms256, on, on256, and selected. |
|
|
|
given a string ("first", "last", "now", or a value) return the timestep value in *val returns -1 if there was a problem on error, if val > 0, the value of s wasn't understood if val < 0, the value was negative.
Definition at line 2502 of file AtomSel.C. References TS_LAST, and TS_NOW. Referenced by access_tcl_atomsel, make_tcl_atomsel, and molecule_tcl. |
|
|
get the current timestep (or NULL if it doesn't exist/ no molecule).
Definition at line 2476 of file AtomSel.C. References DrawMolecule::current, DrawMolecule::get_frame, DrawMolecule::get_last_frame, MoleculeList::mol_from_id, molid, NULL, TS_LAST, TS_NOW, and which_frame. Referenced by VolMapCreateCoulombPotentialMSM::compute_frame, coordinates, measure_gofr, measure_rdf, measure_surface, and VMDApp::molecule_from_selection_list. |
|
string with the selection command.
Definition at line 57 of file AtomSel.h. Referenced by access_tcl_atomsel, add_rep_to_browser, AtomSel, atomsel_repr, atomsel_str, change, VolMapCreateCoulombPotentialMSM::compute_init, VolMapCreateCoulombPotential::compute_init, VolMapCreateDistance::compute_init, VolMapCreateOccupancy::compute_init, VolMapCreateInterp::compute_init, VolMapCreateDensity::compute_init, VolMapCreateMask::compute_init, contacts, molinfo_get, VMDApp::molrep_get_selection, py_hbonds, py_move, py_moveby, GraphicsFltkMenu::update_rep, and ~AtomSel. |
|
Definition at line 69 of file AtomSel.h. Referenced by AtomSel, VMDApp::molrep_get_selupdate, VMDApp::molrep_set_selupdate, and GraphicsFltkMenu::update_rep. |
|
|
|
|
number of atoms in mol.
|
|
|
per-256-atom first, last, selected count.
|
|
|