#include <i_colormap.h>
typedef std::vector<PixelRGBA>(* kjb::Colormap::Preset_map_func)(int) |
kjb::Colormap::Colormap |
( |
const std::string & |
name = "jet" , |
|
|
int |
n = 64 |
|
) |
| |
|
inline |
kjb::Colormap::Colormap |
( |
const char * |
name, |
|
|
int |
n = 64 |
|
) |
| |
|
inline |
std::vector< PixelRGBA > kjb::Colormap::cool |
( |
int |
n | ) |
|
|
static |
std::vector< PixelRGBA > kjb::Colormap::gray |
( |
int |
n | ) |
|
|
static |
std::vector< PixelRGBA > kjb::Colormap::hot |
( |
int |
n | ) |
|
|
static |
std::vector< PixelRGBA > kjb::Colormap::hsv |
( |
int |
n | ) |
|
|
static |
std::vector< PixelRGBA > kjb::Colormap::jet |
( |
int |
n | ) |
|
|
static |
std::vector< PixelRGBA > kjb::Colormap::lines |
( |
int |
n | ) |
|
|
static |
PixelRGBA kjb::Colormap::operator() |
( |
double |
x | ) |
const |
|
inline |
Convert value in [0.0, 1.0] to corresponding color in map. Values will be clamped to [0.0, 1.0]
void kjb::Colormap::preset |
( |
const std::string & |
name, |
|
|
int |
n = 64 |
|
) |
| |
|
inline |
size_t kjb::Colormap::size |
( |
| ) |
const |
|
inline |
std::vector<PixelRGBA> kjb::Colormap::colors_ |
Initial value:= boost::assign::map_list_of<std::string, Colormap::Preset_map_func>
The documentation for this class was generated from the following files: