#include <tga_image.h>
List of all members.
Detailed Description
A class for mapping floting-point values into colours.
Definition at line 69 of file tga_image.h.
Member Function Documentation
void Palette::add |
( |
float |
f, |
|
|
const Colour & |
c | |
|
) |
| | [inline] |
Adds a new data point f, with the corresponding colour c. The additions must be done in the order of ascending f.
Definition at line 78 of file tga_image.h.
void Palette::setPredefined |
( |
int |
num |
) |
|
Sets the palette to the predefined palette num.
Definition at line 43 of file tga_image.cc.
Colour Palette::Get_Colour |
( |
float |
f |
) |
const [inline] |
Returns the colour corresponding to the value f. The colour is determined by linear interpolation between neighbouring data points.
Definition at line 87 of file tga_image.h.
The documentation for this class was generated from the following files: