45 void addColor(
float value,
const PString & color);
unsigned char color_t
Type des of a color.
void getColorValue(color_t &red, color_t &green, color_t &blue, color_t &alpha, const PColorValue &color)
Get the rgba values from PColorValue.
void phoenix_interpolateColor(PColorValue &output, const PColorValue &colorMin, const PColorValue &colorMax, float value)
Interpolate a color with a value by respect to min an max color.
PColorValue createColorValue(float value, const PString &color)
Create a PColorValue.
std::map< float, PColorValue > PMapColorValue
Vector of a color value.
PMapColorValue p_mapColor
Vector of the value.
void addColor(float value, const PString &color)
Add a color in the PColorMap.
PColorMap()
Default constructor of PColorMap.
void copyPColorMap(const PColorMap &other)
Copy function of PColorMap.
PColorMap & operator=(const PColorMap &other)
Definition of equal operator of PColorMap.
void initialisationPColorMap()
Initialisation function of the class PColorMap.
void interpolate(color_t &red, color_t &green, color_t &blue, float value) const
Interpolate color by respect to the given value.
virtual ~PColorMap()
Destructor of PColorMap.
Color related to a value.
float value
Value of the color.