#include <MoleculeList.h>
Public Methods | |
void | add_color_names (int) |
put new names from given molecule into color lists. More... | |
MoleculeList (VMDApp *, Scene *) | |
virtual | ~MoleculeList (void) |
int | num (void) |
return the number of molecules in this list. More... | |
Molecule * | molecule (int n) |
return the Nth molecule (index runs 0 ... (count-1)). More... | |
int | mol_index_from_id (int id) |
return the index of the molecule with given ID (-1 if error). More... | |
Molecule * | mol_from_id (int id) |
return the molecule with given ID (NULL if error). More... | |
void | add_molecule (Molecule *) |
add a new molecule; return it's position in molList. More... | |
int | del_molecule (int) |
remove the molecule from the list with given ID. Return success. More... | |
int | del_all_molecules (void) |
delete all molecules (linear time in worst case). More... | |
int | set_color (char *) |
get/set current atom coloring method. More... | |
char * | color (void) |
int | set_representation (char *) |
get/set current atom representation method. More... | |
char * | representation (void) |
int | set_selection (const char *) |
get/set current atom selection command. Return success. More... | |
const char * | selection () const |
int | set_material (char *) |
get/set current atom material method. More... | |
const char * | material (void) |
int | set_default_color (const char *) |
default values for new reps. More... | |
int | set_default_representation (const char *) |
int | set_default_selection (const char *) |
int | set_default_material (const char *) |
const char * | default_color () const |
const char * | default_representation () const |
const char * | default_selection () const |
const char * | default_material () const |
int | add_rep (int n) |
add a new graphics representation to the specified molecule. uses the 'current' coloring, representation, and selection settings. More... | |
int | change_rep (int m, int n) |
change the graphics representation m, for the specified molecule n. uses the 'current' coloring, representation, and selection settings. More... | |
int | change_repcolor (int m, int n, char *) |
change just the coloring method for the mth rep in the nth molecule. More... | |
int | change_repmethod (int m, int n, char *) |
change just the representation for the mth rep in the nth molecule. More... | |
int | change_repsel (int m, int n, const char *) |
change just the selection for the mth rep in the nth molecule. Return success. More... | |
int | change_repmat (int m, int n, const char *) |
change just the material for the mth rep in the nth molecule. More... | |
int | del_rep (int m, int n) |
delete a graphics representation m, for the specified molecule n. return success. More... | |
Molecule * | top (void) |
query or set the top molecule. More... | |
int | is_top (int n) |
int | is_top (Molecule *m) |
void | make_top (int n) |
void | make_top (Molecule *m) |
int | active (int n) |
query/set active status of Nth molecule. More... | |
int | active (Molecule *m) |
void | activate (int n) |
void | inactivate (int n) |
int | displayed (int n) |
query/set displayed status of Nth molecule. More... | |
int | displayed (Molecule *m) |
void | show (int n) |
void | hide (int n) |
int | fixed (int n) |
query/set fixed status of Nth molecule. More... | |
int | fixed (Molecule *m) |
void | fix (int n) |
void | unfix (int n) |
void | center_from_top_molecule_reps (void) |
Sets molecules' tranformations to center and scale properly. More... | |
void | center_top_molecule (void) |
void | center_all_molecules (void) |
Molecule * | check_pickable (Pickable *pobj) |
given a pickable, find it and return the Molecule*, or NULL. More... | |
Public Attributes | |
NameList< const char * > | resTypes |
mapping of residue names <--> residue types (hydrophobic, neutral, etc.). More... | |
int | colorCatIndex [NUM_MLCAT] |
color category indices. More... | |
Protected Methods | |
void | init_colors () |
do action when a new color list is provided. More... |
Definition at line 47 of file MoleculeList.h.
|
Definition at line 41 of file MoleculeList.C. References DEFAULT_ATOMCOLOR, DEFAULT_ATOMREP, DEFAULT_ATOMSEL, init_colors, inthash_init, MaterialList::material_name, VMDApp::materialList, NULL, and stringdup. |
|
Definition at line 67 of file MoleculeList.C. References inthash_destroy, molecule, and num. |
|
Definition at line 222 of file MoleculeList.h. References DrawMolecule::active, molecule, and n. Referenced by VMDApp::molecule_activate. |
|
Definition at line 221 of file MoleculeList.h. References active. |
|
query/set active status of Nth molecule.
Definition at line 220 of file MoleculeList.h. References DrawMolecule::active, molecule, and n. Referenced by active, VMDApp::molecule_is_active, and MolBrowser::update. |
|
put new names from given molecule into color lists.
Definition at line 114 of file MoleculeList.C. References Scene::add_color_item, NameList< const char * >::add_name, BaseMolecule::altlocNames, BaseMolecule::atomNames, BaseMolecule::atomTypes, BaseMolecule::chainNames, colorCatIndex, BaseMolecule::id, MLCAT_CHAINS, MLCAT_CONFORMATIONS, MLCAT_MOLECULES, MLCAT_NAMES, MLCAT_RESNAMES, MLCAT_SEGNAMES, MLCAT_TYPES, molecule, NameList::name, NameList::num, Scene::num_category_items, BaseMolecule::resNames, resTypes, BaseMolecule::segNames, NameList::set_data, NameList< const char * >::typecode, and VISCLRS. Referenced by atomsel_set, and VMDApp::molecule_load. |
|
add a new molecule; return it's position in molList.
Definition at line 238 of file MoleculeList.C. References ResizeArray< Molecule * >::append, BaseMolecule::id, inthash_insert, make_top, and ResizeArray< Molecule * >::num. Referenced by VMDApp::molecule_from_selection_list, and VMDApp::molecule_new. |
|
add a new graphics representation to the specified molecule. uses the 'current' coloring, representation, and selection settings.
Definition at line 414 of file MoleculeList.C. References DrawMolecule::add_rep, DrawMolecule::app, VMDApp::atomSelParser, AtomSel::change, AtomColor::find, BaseMolecule::id, mat, MaterialList::material, VMDApp::materialList, molecule, and n. Referenced by VMDApp::molecule_addrep. |
|
Definition at line 521 of file MoleculeList.C. References Displayable::add_cent_trans, molecule, Displayable::mult_scale, n, num, and Displayable::reset_transformation. Referenced by VMDApp::scene_resetview. |
|
Sets molecules' tranformations to center and scale properly.
Definition at line 500 of file MoleculeList.C. References DrawMolecule::cov, DrawMolecule::scale_factor, and z. Referenced by VMDApp::scene_resetview. |
|
Definition at line 512 of file MoleculeList.C. References Displayable::add_cent_trans, Displayable::mult_scale, and Displayable::reset_transformation. Referenced by VMDApp::scene_resetview_newmoldata. |
|
change the graphics representation m, for the specified molecule n. uses the 'current' coloring, representation, and selection settings.
Definition at line 430 of file MoleculeList.C. References DrawMolecule::change_rep, change_repmat, material, molecule, and n. Referenced by VMDApp::molecule_modrep. |
|
change just the coloring method for the mth rep in the nth molecule.
Definition at line 439 of file MoleculeList.C. References AtomColor::change, DrawMolecule::change_rep, molecule, n, and NULL. Referenced by VMDApp::molrep_set_color. |
|
change just the material for the mth rep in the nth molecule.
Definition at line 474 of file MoleculeList.C. References Displayable::change_material, DrawMolecule::component, MaterialList::material, MaterialList::material_index, VMDApp::materialList, molecule, and n. Referenced by change_rep, and VMDApp::molrep_set_material. |
|
change just the representation for the mth rep in the nth molecule.
Definition at line 451 of file MoleculeList.C. References AtomRep::change, DrawMolecule::change_rep, molecule, n, and NULL. Referenced by VMDApp::molrep_set_style. |
|
change just the selection for the mth rep in the nth molecule. Return success.
Definition at line 463 of file MoleculeList.C. References VMDApp::atomSelParser, DrawMolecule::change_rep, molecule, n, NULL, and SymbolTable::parse. Referenced by VMDApp::molrep_set_selection. |
|
given a pickable, find it and return the Molecule*, or NULL.
Definition at line 534 of file MoleculeList.C. References DrawMolecule::component, DrawMolecule::components, molecule, DrawMolecule::moleculeGraphics, NULL, and num. Referenced by GeometryFltkMenu::act_on_command, get_nearby_atom, PickList::pick_check, print_atom_info, and Tool::target. |
|
Definition at line 150 of file MoleculeList.h. References AtomColor::cmdStr. Referenced by VMDApp::molecule_get_color. |
|
Definition at line 169 of file MoleculeList.h. Referenced by VMDApp::molecule_load, and text_cmd_mol. |
|
Definition at line 178 of file MoleculeList.h. Referenced by VMDApp::molecule_load, and text_cmd_mol. |
|
Definition at line 172 of file MoleculeList.h. Referenced by VMDApp::molecule_load, and text_cmd_mol. |
|
Definition at line 175 of file MoleculeList.h. Referenced by VMDApp::molecule_load, and text_cmd_mol. |
|
delete all molecules (linear time in worst case).
Definition at line 321 of file MoleculeList.C. References inthash_destroy, inthash_init, make_top, molecule, n, NULL, num, and ResizeArray< Molecule * >::remove. Referenced by VMDApp::molecule_delete_all. |
|
remove the molecule from the list with given ID. Return success.
Definition at line 272 of file MoleculeList.C. References BaseMolecule::id, inthash_destroy, inthash_init, inthash_insert, is_top, make_top, mol_from_id, mol_index_from_id, molecule, n, NULL, num, and ResizeArray< Molecule * >::remove. Referenced by VMDApp::molecule_delete. |
|
delete a graphics representation m, for the specified molecule n. return success.
Definition at line 491 of file MoleculeList.C. References DrawMolecule::del_rep, molecule, n, and NULL. Referenced by VMDApp::molrep_delete. |
|
Definition at line 227 of file MoleculeList.h. References Displayable::displayed. |
|
query/set displayed status of Nth molecule.
Definition at line 226 of file MoleculeList.h. References Displayable::displayed, displayed, molecule, and n. Referenced by displayed, VMDApp::molecule_is_displayed, and MolBrowser::update. |
|
Definition at line 234 of file MoleculeList.h. References Displayable::fix, molecule, and n. Referenced by VMDApp::molecule_fix. |
|
Definition at line 233 of file MoleculeList.h. References Displayable::fixed. |
|
query/set fixed status of Nth molecule.
Definition at line 232 of file MoleculeList.h. References Displayable::fixed, molecule, and n. Referenced by VMDApp::molecule_is_fixed, and MolBrowser::update. |
|
Definition at line 229 of file MoleculeList.h. References molecule, n, and Displayable::off. Referenced by VMDApp::molecule_display. |
|
Definition at line 223 of file MoleculeList.h. References DrawMolecule::active, inactivate, molecule, and n. Referenced by inactivate, and VMDApp::molecule_activate. |
|
do action when a new color list is provided.
Definition at line 85 of file MoleculeList.C. References Scene::add_color_category, Scene::add_color_item, Scene::color_index, colorCatIndex, MLCAT_CHAINS, MLCAT_CONFORMATIONS, MLCAT_ELEMENTS, MLCAT_MOLECULES, MLCAT_NAMES, MLCAT_RESNAMES, MLCAT_RESTYPES, MLCAT_SEGNAMES, MLCAT_SPECIAL, MLCAT_SSTRUCT, MLCAT_SURFACES, and MLCAT_TYPES. Referenced by MoleculeList. |
|
Definition at line 215 of file MoleculeList.h. |
|
Definition at line 214 of file MoleculeList.h. Referenced by del_molecule, molinfo_get, and MolBrowser::update. |
|
Definition at line 256 of file MoleculeList.C. References VMDApp::commandQueue, BaseMolecule::id, mol_index_from_id, MoleculeEvent::MOL_TOP, and CommandQueue::runcommand. |
|
Definition at line 216 of file MoleculeList.h. Referenced by add_molecule, del_all_molecules, del_molecule, VMDApp::molecule_make_top, and py_resetview. |
|
Definition at line 408 of file MoleculeList.C. References MaterialList::material_name, and VMDApp::materialList. Referenced by change_rep, and VMDApp::molecule_get_material. |
|
|
return the index of the molecule with given ID (-1 if error).
Definition at line 113 of file MoleculeList.h. References inthash_lookup, and num. Referenced by GraphicsFltkMenu::act_on_command, del_molecule, make_top, mol_from_id, VMDApp::molecule_activate, VMDApp::molecule_addrep, VMDApp::molecule_display, VMDApp::molecule_fix, VMDApp::molecule_index_from_id, VMDApp::molecule_is_active, VMDApp::molecule_is_displayed, VMDApp::molecule_is_fixed, VMDApp::molecule_load, VMDApp::molecule_make_top, VMDApp::molecule_modrep, molinfo_get, molinfo_set, VMDApp::molrep_delete, VMDApp::molrep_set_color, VMDApp::molrep_set_material, VMDApp::molrep_set_selection, and VMDApp::molrep_set_style. |
|
|
return the number of molecules in this list.
Definition at line 102 of file MoleculeList.h. References ResizeArray::num. Referenced by center_all_molecules, check_pickable, del_all_molecules, del_molecule, Tool::dograb, Animation::goto_frame, mol_index_from_id, molecule, molecule_tcl, VMDApp::num_molecules, PickModeCenter::pick_molecule_end, VMDApp::scene_resetview_newmoldata, Tool::ungrab, MolBrowser::update, VMDApp::VMDupdate, and ~MoleculeList. |
|
Definition at line 154 of file MoleculeList.h. References AtomRep::cmdStr. Referenced by VMDApp::molecule_get_style. |
|
Definition at line 158 of file MoleculeList.h. Referenced by VMDApp::molecule_get_selection. |
|
get/set current atom coloring method.
Definition at line 370 of file MoleculeList.C. References AtomColor::change. Referenced by VMDApp::molecule_load, and VMDApp::molecule_set_color. |
|
default values for new reps.
Definition at line 336 of file MoleculeList.C. References AtomColor::change. Referenced by text_cmd_mol. |
|
Definition at line 362 of file MoleculeList.C. References MaterialList::material_index, and VMDApp::materialList. Referenced by text_cmd_mol. |
|
Definition at line 345 of file MoleculeList.C. References AtomRep::change. Referenced by text_cmd_mol. |
|
Definition at line 354 of file MoleculeList.C. References VMDApp::atomSelParser, and SymbolTable::parse. Referenced by text_cmd_mol. |
|
get/set current atom material method.
Definition at line 394 of file MoleculeList.C. References MaterialList::material_index, MaterialList::material_name, and VMDApp::materialList. Referenced by VMDApp::molecule_load, and VMDApp::molecule_set_material. |
|
get/set current atom representation method.
Definition at line 376 of file MoleculeList.C. References AtomRep::change. Referenced by VMDApp::molecule_load, and VMDApp::molecule_set_style. |
|
get/set current atom selection command. Return success.
Definition at line 382 of file MoleculeList.C. References VMDApp::atomSelParser, SymbolTable::parse, and stringdup. Referenced by VMDApp::molecule_load, and VMDApp::molecule_set_selection. |
|
Definition at line 228 of file MoleculeList.h. References molecule, n, and Displayable::on. Referenced by VMDApp::molecule_display. |
|
query or set the top molecule.
Definition at line 213 of file MoleculeList.h. Referenced by GraphicsFltkMenu::act_on_command, find_molecule, Animation::frame, graphics_tcl, molecule_tcl, VMDApp::molecule_top, Animation::num, py_imdconnect, py_resetview, and text_cmd_imd. |
|
Definition at line 235 of file MoleculeList.h. References molecule, n, and Displayable::unfix. Referenced by VMDApp::molecule_fix. |
|
color category indices.
Definition at line 92 of file MoleculeList.h. Referenced by add_color_names, VMDApp::color_set_restype, AtomColor::current_color_use, AtomColor::find, init_colors, VMDApp::molecule_from_selection_list, VMDApp::molecule_new, and VMDApp::molecule_rename. |
|
mapping of residue names <--> residue types (hydrophobic, neutral, etc.).
Definition at line 89 of file MoleculeList.h. Referenced by add_color_names, VMDApp::color_get_restype, VMDApp::color_set_restype, and AtomColor::find. |