Public Member Functions | Private Attributes

LibGeoDecomp::Palette< VALUE > Class Template Reference

This class is a simple way to describe a mapping of a range of values to colors. More...

#include <palette.h>

Collaboration diagram for LibGeoDecomp::Palette< VALUE >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void addColor (const VALUE &val, const Color &color)
Color operator[] (const VALUE &val) const

Private Attributes

std::map< VALUE, Colorcolors

Detailed Description

template<typename VALUE>
class LibGeoDecomp::Palette< VALUE >

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.


Member Function Documentation

template<typename VALUE >
void LibGeoDecomp::Palette< VALUE >::addColor ( const VALUE &  val,
const Color color 
) [inline]
template<typename VALUE >
Color LibGeoDecomp::Palette< VALUE >::operator[] ( const VALUE &  val  )  const [inline]

Member Data Documentation

template<typename VALUE >
std::map<VALUE, Color> LibGeoDecomp::Palette< VALUE >::colors [private]

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