zMol
A viewer for molecular data using OpenGL and ambient occlusion
|
#include <colors.hpp>
Public Member Functions | |
colors () | |
cml::vector3f const & | get_color (std::string const &p_name) const |
cml::vector3f | get_chain_color (std::string const &p_chain_id) const |
Utility class to get a color for a given element name or chain ID.
zmol::colors::colors | ( | ) |
Constructor. Initializes internal color tables.
cml::vector3f zmol::colors::get_chain_color | ( | std::string const & | p_chain_id | ) | const |
Returns an RGB triplet for the given chain ID. Channel values range from 0.0 to 1.0.
p_chain_id | Chain ID |
cml::vector3f const & zmol::colors::get_color | ( | std::string const & | p_name | ) | const |
Returns an RGB triplet for the given element name. Channel values range from 0.0 to 1.0.
p_name | Element name |