#include <AtomColor.h>
Public Types | |
enum | ColorMethod { NAME, TYPE, ELEMENT, RESNAME, RESTYPE, RESID, CHAIN, SEGNAME, CONFORMATION, MOLECULE, STRUCTURE, COLORID, BETA, OCCUP, MASS, CHARGE, POS, POSX, POSY, POSZ, USER, USER2, USER3, USER4, FRAGMENT, INDEX, BACKBONE, THROB, PHYSICALTIME, TIMESTEP, VELOCITY, VOLUME, TOTAL } |
different methods for coloring atoms XXX the order of these enums matters, as the AtomColor class uses the ordering to eliminate some complexity in testing. More... | |
Public Methods | |
AtomColor (MoleculeList *, const Scene *) | |
AtomColor (AtomColor &) | |
~AtomColor (void) | |
AtomColor & | operator= (const AtomColor &) |
equal operator, to change the current settings. More... | |
int | current_color_use (int) |
return whether the color category index is the setting for the current coloring method. More... | |
int | find (DrawMolecule *) |
find the color index for the atoms of the given molecule. Return success. More... | |
int | change (const char *newcmd) |
provide new settings; does a 'find' at the end if a mol has been previously provided. More... | |
int | method (void) |
return representation method. More... | |
int | color_index (void) |
return color index (may not be applicable). More... | |
int | volume_index (void) |
return volume index (may not be applicable). More... | |
void | get_colorscale_minmax (float *min, float *max) const |
get current minRange and maxRange for color scale. More... | |
int | set_colorscale_minmax (float min, float max) |
Set minRange and maxRange. Return success. More... | |
void | rescale_colorscale_minmax () |
Rescale the minRange and maxRange on the next update. More... | |
int | uses_colorscale () const |
returns true if the current coloring method uses the color scale. More... | |
Public Attributes | |
char | cmdStr [MAX_ATOMCOLOR_CMD+1] |
initial string with rep command. More... | |
int * | color |
color determined for each atom. More... | |
int | nAtoms |
number of atoms these colors are for. More... | |
int | do_update |
flag for whether to re-find atom colors every time the frame changes. More... |
Definition at line 34 of file AtomColor.h.
|
different methods for coloring atoms XXX the order of these enums matters, as the AtomColor class uses the ordering to eliminate some complexity in testing.
Definition at line 39 of file AtomColor.h. Referenced by find. |
|
Definition at line 68 of file AtomColor.C. References AtomColorName, cmdStr, color, DEFAULT_ATOMCOLOR, do_update, nAtoms, and NULL. |
|
Definition at line 87 of file AtomColor.C. References cmdStr, colIndex, color, colorMethod, do_update, mol, molList, nAtoms, NULL, scene, and volIndex. |
|
Definition at line 111 of file AtomColor.C. References color. |
|
provide new settings; does a 'find' at the end if a mol has been previously provided.
Definition at line 86 of file AtomColor.h. References find. Referenced by MoleculeList::change_repcolor, MoleculeList::set_color, and MoleculeList::set_default_color. |
|
return color index (may not be applicable).
Definition at line 101 of file AtomColor.h. Referenced by GraphicsFltkMenu::update_rep. |
|
return whether the color category index is the setting for the current coloring method.
Definition at line 271 of file AtomColor.C. References BACKBONE, CHAIN, MoleculeList::colorCatIndex, CONFORMATION, ELEMENT, MLCAT_CHAINS, MLCAT_CONFORMATIONS, MLCAT_ELEMENTS, MLCAT_MOLECULES, MLCAT_NAMES, MLCAT_RESNAMES, MLCAT_RESTYPES, MLCAT_SEGNAMES, MLCAT_SPECIAL, MLCAT_SSTRUCT, MLCAT_TYPES, MOLECULE, NAME, RESNAME, RESTYPE, SEGNAME, STRUCTURE, and TYPE. Referenced by DrawMolItem::do_color_changed. |
|
|
get current minRange and maxRange for color scale.
Definition at line 107 of file AtomColor.h. Referenced by VMDApp::molrep_get_scaleminmax, and GraphicsFltkMenu::update_rep. |
|
return representation method.
Definition at line 98 of file AtomColor.h. Referenced by DrawMolItem::prepare, and GraphicsFltkMenu::update_rep. |
|
equal operator, to change the current settings.
Definition at line 255 of file AtomColor.C. References cmdStr, colIndex, colorMethod, find, and volIndex. |
|
Rescale the minRange and maxRange on the next update.
Definition at line 122 of file AtomColor.h. Referenced by VMDApp::molrep_get_scaleminmax, and VMDApp::molrep_reset_scaleminmax. |
|
Set minRange and maxRange. Return success.
Definition at line 113 of file AtomColor.h. Referenced by VMDApp::molrep_set_scaleminmax. |
|
returns true if the current coloring method uses the color scale.
Definition at line 706 of file AtomColor.C. References BETA, INDEX, and VOLUME. Referenced by DrawMolItem::do_color_scale_changed. |
|
return volume index (may not be applicable).
Definition at line 104 of file AtomColor.h. Referenced by GraphicsFltkMenu::update_rep. |
|
initial string with rep command.
Definition at line 47 of file AtomColor.h. Referenced by add_rep_to_browser, AtomColor, MoleculeList::color, molinfo_get, VMDApp::molrep_get_color, and operator=. |
|
color determined for each atom.
Definition at line 48 of file AtomColor.h. Referenced by AtomColor, DrawMolItem::do_color_rgb_changed, find, and ~AtomColor. |
|
flag for whether to re-find atom colors every time the frame changes.
Definition at line 130 of file AtomColor.h. Referenced by AtomColor, VMDApp::molrep_get_colorupdate, VMDApp::molrep_set_colorupdate, and GraphicsFltkMenu::update_rep. |
|
number of atoms these colors are for.
Definition at line 49 of file AtomColor.h. |