17#ifndef __colourmap_h__
18#define __colourmap_h__
32 using basic_map_fn = std::function< Eigen::Array3f (
float) >;
34 Entry (
const char* name,
const char* glsl_mapping, basic_map_fn basic_mapping,
35 const char* amplitude = NULL,
bool special =
false,
bool is_colour =
false,
bool is_rgb =
false) :
37 glsl_mapping (glsl_mapping),
38 basic_mapping (basic_mapping),
39 amplitude (amplitude ? amplitude : default_amplitude),
41 is_colour (is_colour),
45 const char* glsl_mapping;
46 basic_map_fn basic_mapping;
47 const char* amplitude;
48 bool special, is_colour, is_rgb;
50 static const char* default_amplitude;
60 inline size_t num () {
size_t index(const std::string &name)