This class is a simple way to describe a mapping of a range of values to colors. More...
#include <palette.h>
Public Member Functions | |
void | addColor (const VALUE &val, const Color &color) |
Color | operator[] (const VALUE &val) const |
Private Attributes | |
std::map< VALUE, Color > | colors |
This class is a simple way to describe a mapping of a range of values to colors.
ATTENTION: this code is slow. We got faster, albeit less flexible implementations of the palette concept.
void LibGeoDecomp::Palette< VALUE >::addColor | ( | const VALUE & | val, | |
const Color & | color | |||
) | [inline] |
References LibGeoDecomp::Palette< VALUE >::colors.
Color LibGeoDecomp::Palette< VALUE >::operator[] | ( | const VALUE & | val | ) | const [inline] |
References LibGeoDecomp::Palette< VALUE >::colors.
std::map<VALUE, Color> LibGeoDecomp::Palette< VALUE >::colors [private] |