#include <standardColorProcessor.h>
Inheritance diagram for VIEW::ResidueNameColorProcessor:
Public Member Functions | |
ResidueNameColorProcessor () throw () | |
Default Constructor. | |
void | setTransparency (Size value) throw () |
Set the transparency. | |
virtual void | getColor (const Composite &composite, ColorRGBA &color_to_be_set) |
Calculate a color for a Composite. | |
StringHashMap< ColorRGBA > & | getColorMap () |
const StringHashMap< ColorRGBA > & | getColorMap () const |
Protected Member Functions | |
bool | canUseMeshShortcut_ (const Composite &composite) |
Protected Attributes | |
StringHashMap< ColorRGBA > | color_map_ |
Residue | dummy_residue |
It is used for calculating residue colors of a given Atom object (A residue color of a given atom is the color of the residue the atom is contained in). In the constructor a ColorMap is initialized that contains all colors corresponding to the names of the residues.
|
Default Constructor. Initialize the internal ColorMap to contain all residue colors with residue names as names. |
|
Calculate a color for a Composite. The given ColorRGBA instance is set to the calculated color. This method is called by the operator() method. Here it just sets the default color. You have to overload this operator in derived classes. Reimplemented from VIEW::ColorProcessor. |
|
Set the transparency. To be overloaded in derived classes Reimplemented from VIEW::ColorProcessor. |