MCL
Minimalistic Color Library
 All Classes Files
ColorMap Class Reference
+ Inheritance diagram for ColorMap:

Public Types

typedef double Key
 
typedef Color Value
 
typedef std::map< double, Color > Super
 
typedef Interpolation< Color > InterpolationFunction
 
typedef std::function< Color(const
ColorMap &)> 
DomainFunction
 

Public Member Functions

 ColorMap (const InterpolationFunction &interpolation, const DomainFunction &underflow, const DomainFunction &overflow)
 
Value get (Key k) const
 
Value compute (Key k)
 
Key min () const
 
Key max () const
 
const Value & min_value () const
 
const Value & max_value () const
 

Static Public Member Functions

static ColorMap fallback (const InterpolationFunction &, const Color &)
 
static ColorMap strict (const InterpolationFunction &)
 
static ColorMap clamp (const InterpolationFunction &)
 

Public Attributes

K keys
 STL member.
 
T elements
 STL member.
 

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