12#ifndef __CODAC_COLORMAP_H__
13#define __CODAC_COLORMAP_H__
Associates colors to a range of values.
Definition codac_ColorMap.h:32
ColorMap(InterpolMode interpol_mode=InterpolMode::RGB)
Creates a color map.
const ColorMap & operator=(const ColorMap &x)
Returns a copy of a ColorMap.
static const ColorMap HAXBY
predefined HAXBY color map (mainly used for DEM)
Definition codac_ColorMap.h:121
void displayColorMap(const std::string &fig_name="Color map") const
Creates a VIBesFig with the colors of the map.
static const ColorMap RED_TUBE
a predefined color map for tubes
Definition codac_ColorMap.h:124
void reverse()
Reverses the keys of the color map.
std::map< float, rgb > m_colormap
map of colors
Definition codac_ColorMap.h:131
void add_color_point(hsv color, float index)
Adds a HSV color point to the map.
rgb color(double t, const Trajectory &f) const
Evaluates the color map at , .
void add_color_point(rgb color, float index)
Adds a RGB color point to the map.
InterpolMode m_interpol_mode
interpolation mode
Definition codac_ColorMap.h:130
static const ColorMap RAINBOW
a predefined color map
Definition codac_ColorMap.h:125
bool is_opaque() const
Returns true of all colors are opaque.
~ColorMap()
ColorMap destructor.
Definition codac_ColorMap.h:46
void set_opacity(float alpha)
Sets a constant opacity to all colors of the map.
static const ColorMap DEFAULT
a predefined default color map
Definition codac_ColorMap.h:122
static const ColorMap BLUE_TUBE
a predefined color map for tubes
Definition codac_ColorMap.h:123
rgb color(double r) const
Evaluates the color map at , .
One dimensional trajectory , defined as a temporal map of values.
Definition codac_Trajectory.h:35
FixPoint of a separator The fixpoint of a separator is computed by calling the "::"separate function ...
Definition codac_capd_helpers.h:9
InterpolMode
Defines in which color space (HSV, RGB) the color interpolation will be made.
Definition codac_ColorMap.h:25
Represents an HSV value.
Definition codac_colors.h:36
Represents an RGB value.
Definition codac_colors.h:24