![]() |
|
PhoenixPNG
1.0.0
Set of tools to ease use of png file
|
#include <map>#include "PString.h"
Include dependency graph for PColorMap.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | PColorMap |
| Describe a color map to adapt color with input value. More... | |
| struct | PColorValue |
| Color related to a value. More... | |
Typedefs | |
| typedef unsigned char | color_t |
| Type des of a color. | |
| typedef std::map< float, PColorValue > | PMapColorValue |
| Vector of a color value. | |
Functions | |
| PColorValue | createColorValue (float value, color_t red, color_t green, color_t blue, color_t alpha=255) |
| Create a PColorValue. | |
| PColorValue | createColorValue (float value, const PString &color) |
| Create a PColorValue. | |
| void | getColorValue (color_t &red, color_t &green, color_t &blue, color_t &alpha, const PColorValue &color) |
| Get the rgba values from PColorValue. | |
| PColorValue | phoenix_interpolateColor (const PColorValue &colorMin, const PColorValue &colorMax, float value) |
| Interpolate a color with a value by respect to min an max color. | |
| 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. | |
| typedef unsigned char color_t |
Type des of a color.
Definition at line 14 of file PColorMap.h.
| typedef std::map<float, PColorValue> PMapColorValue |
Vector of a color value.
Definition at line 31 of file PColorMap.h.
| PColorValue createColorValue | ( | float | value, |
| color_t | red, | ||
| color_t | green, | ||
| color_t | blue, | ||
| color_t | alpha ) |
Create a PColorValue.
| value | : associated value with the given color |
| red | : red proportion |
| green | : green proportion |
| blue | : blue proportion |
| alpha | : transparent proportion |
Definition at line 45 of file PColorMap.cpp.
References PColorValue::a, PColorValue::b, PColorValue::g, PColorValue::r, and PColorValue::value.
| PColorValue createColorValue | ( | float | value, |
| const PString & | color ) |
Create a PColorValue.
| value | : associated value with the given color |
| color | : associated color |
Definition at line 15 of file PColorMap.cpp.
References createColorValue().
Referenced by PColorMap::addColor(), PColorMap::addColor(), and createColorValue().
Here is the call graph for this function:
Here is the caller graph for this function:| void getColorValue | ( | color_t & | red, |
| color_t & | green, | ||
| color_t & | blue, | ||
| color_t & | alpha, | ||
| const PColorValue & | color ) |
Get the rgba values from PColorValue.
| [out] | red | : red proportion |
| [out] | green | : green proportion |
| [out] | blue | : blue proportion |
| [out] | alpha | : transparent proportion |
| color | : given color |
Definition at line 62 of file PColorMap.cpp.
References PColorValue::a, PColorValue::b, PColorValue::g, and PColorValue::r.
| PColorValue phoenix_interpolateColor | ( | const PColorValue & | colorMin, |
| const PColorValue & | colorMax, | ||
| float | value ) |
Interpolate a color with a value by respect to min an max color.
| colorMin | : color of the minimum value |
| colorMax | : color of the maximum value |
| value | : value between min and max |
Definition at line 90 of file PColorMap.cpp.
References phoenix_interpolateColor().
Here is the call graph for this function:| 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.
| [out] | output | : interpolated color |
| colorMin | : color of the minimum value | |
| colorMax | : color of the maximum value | |
| value | : value between min and max |
Definition at line 75 of file PColorMap.cpp.
References PColorValue::a, PColorValue::b, PColorValue::g, PColorValue::r, and PColorValue::value.
Referenced by PColorMap::interpolate(), and phoenix_interpolateColor().
Here is the caller graph for this function: