This class allows mapping from integer values to RGB colors.
More...
#include <ilviews/maps/rendering/cmodel.h>
This class allows mapping from integer values to RGB colors.
Library: ilvmaps
- See also
IlvDefaultRasterRenderer
.
◆ copy()
◆ getAlpha()
virtual IlUChar IlvMapColorModel::getAlpha |
( |
IlInt |
pixel | ) |
const |
|
pure virtual |
Returns the alpha component for a pixel value.
- Parameters
-
pixel | The pixel to get the alpha value from. |
- Returns
- The alpha component for the pixel pixel.
Implemented in IlvIntervalColorModel.
◆ getBlue()
virtual IlUChar IlvMapColorModel::getBlue |
( |
IlInt |
pixel | ) |
const |
|
pure virtual |
Returns the blue component for a pixel value.
- Parameters
-
pixel | The pixel to get the blue value from. |
- Returns
- The blue component for the pixel pixel.
Implemented in IlvIntervalColorModel.
◆ getGreen()
virtual IlUChar IlvMapColorModel::getGreen |
( |
IlInt |
pixel | ) |
const |
|
pure virtual |
Returns the green component for a pixel value.
- Parameters
-
pixel | The pixel to get the green value from. |
- Returns
- The green component for the pixel pixel.
Implemented in IlvIntervalColorModel.
◆ getRed()
virtual IlUChar IlvMapColorModel::getRed |
( |
IlInt |
pixel | ) |
const |
|
pure virtual |
Returns the red component for a pixel value.
- Parameters
-
pixel | The pixel to get the red value from. |
- Returns
- The red component for the pixel pixel.
Implemented in IlvIntervalColorModel.
◆ getRGBA()
Returns the RGBA component for a pixel value.
- Parameters
-
pixel | The pixel to get the component values from. |
red | The returned red component. |
green | The returned green component. |
blue | The returned blue component. |
alpha | The returned alpha component. |
◆ isPersistent()
virtual IlBoolean IlvMapColorModel::isPersistent |
( |
| ) |
const |
|
virtual |
Indicates if the object can be saved.
- Returns
IlTrue
if the object can be saved.
Reimplemented in IlvIntervalColorModel.
◆ save()
Saves the object to an output file.
- Parameters
-
◆ write()
virtual void IlvMapColorModel::write |
( |
IlvOutputFile & |
file | ) |
const |
|
pure virtual |
Writes the color model to an output file.
- Parameters
-