|
Public Types |
|
| GreyScale |
|
| Inverse |
|
| Heat |
|
| Cold |
|
| Plasma |
|
| Forest |
|
| AlienGlow |
|
| Test |
| enum | Name {
GreyScale,
Inverse,
Heat,
Cold,
Plasma,
Forest,
AlienGlow,
Test
} |
| | Available colour map names.
|
Public Member Functions |
|
| ColourMap () |
| | Default constructor.
|
|
| ColourMap (const Name _name) |
|
void | set_name (Name name) |
| | Set the colour map name.
|
|
Name | get_name () const |
|
void | set_contrast (float contrast) |
| | Set the contrast (0 to 1; normally 1).
|
|
float | get_contrast () const |
|
void | set_brightness (float brightness) |
| | Set the brightness (0 to 1; normally 5).
|
|
float | get_brightness () const |
|
void | set_logarithmic (bool log) |
| | Set the image transfer function to logarithmic.
|
|
bool | get_logarithmic () const |
|
void | apply () |
| | Apply the current attributes.
|
Protected Attributes |
|
Name | name |
| | Colour map name.
|
|
float | contrast |
| | Contrast.
|
|
float | brightness |
| | Brightness.
|
|
bool | logarithmic |
| | Logarithmic image transfer function.
|