Detailed Description
List of all members.
Public Member Functions |
| | Color (float r, float g, float b) |
| template<class It > |
| | Color (It b, It e) |
|
void | show (std::ostream &out, std::string delim) const |
|
void | show (std::ostream &out=std::cout) const |
Colormaps |
These functions map a number in the interval [0,1] to a color using some color map.
|
| Color | get_jet_color (double f) |
| | Return the color for f from the jet color map.
|
| Color | get_hot_color (double f) |
| | Return the color for f from the hot color map.
|
| Color | get_rgb_color (double f) |
| | Return the color for f from the rgb color map.
|
| Color | get_grey_color (double f) |
| | Return the a greyscale value for f.
|
| Color | get_gnuplot_color (double f) |
| | Return colors using the gnuplot default color map.
|
Component access |
|
typedef const float * | ComponentIterator |
|
float | get_red () const |
|
float | get_green () const |
|
float | get_blue () const |
|
ComponentIterator | components_begin () const |
|
ComponentIterator | components_end () const |
Related Functions |
(Note that these are not member functions.)
|
| Color | get_interpolated_rgb (const Color &a, const Color &b, double f) |
| | Return a color interpolated between a and b in RGB space.
|
Additional Inherited Members |
Constructor & Destructor Documentation
| IMP::display::Color::Color |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
| |
Components must be between 0 and 1
template<class It >
| IMP::display::Color::Color |
( |
It |
b, |
|
|
It |
e |
|
) |
| |
Components must be between 0 and 1
Friends And Related Function Documentation
| Color get_gnuplot_color |
( |
double |
f | ) |
|
|
related |
Return colors using the gnuplot default color map.
| Color get_grey_color |
( |
double |
f | ) |
|
|
related |
Return the a greyscale value for f.
| Color get_hot_color |
( |
double |
f | ) |
|
|
related |
Return the color for f from the hot color map.
Return a color interpolated between a and b in RGB space.
If f is 0, then a is returned, if f is 1, b is returned.
| Color get_jet_color |
( |
double |
f | ) |
|
|
related |
Return the color for f from the jet color map.
| Color get_rgb_color |
( |
double |
f | ) |
|
|
related |
Return the color for f from the rgb color map.
The documentation for this class was generated from the following file: