Public Member Functions
ESBTL::Color_of_atom< Atom > Struct Template Reference

#include <coarse_classifier.h>

List of all members.

Public Member Functions

std::string operator() (const Atom &atm) const

Detailed Description

template<class Atom>
struct ESBTL::Color_of_atom< Atom >

Function object associating a color to an atom, according to its residue name. -yellow (1,1,0): ALA, CYS, GLY, PRO, SER, THR. -green (0,0.8,0): VAL, LEU, ILE, MET, MSE, PHE, TYR, TRP. -blue (0,0,0.93): HIS, LYS, ARG. -purple (0.54,0.04,0.31): ASN, GLN. -red (0.77,0,0): GLU, ASP. -white (0.5,0.5,0.5): any other residue.

Template Parameters:
Atomis an atom type.

Member Function Documentation

template<class Atom >
std::string ESBTL::Color_of_atom< Atom >::operator() ( const Atom &  atm) const [inline]

returns the color associated to atm.

a string color (red corresponds to "1,0,0")

The documentation for this struct was generated from the following file: