Rogue Wave Views Maps Package API Reference Guide |
Rogue Wave Views Documentation Home |
This class allows mapping from integer values to RGB colors. More...
#include <ilviews/maps/rendering/cmodel.h>
Public Member Functions | |
virtual IlvMapColorModel * | copy () const =0 |
Returns a copy of the object. More... | |
virtual IlUChar | getAlpha (IlInt pixel) const =0 |
Returns the alpha component for a pixel value. More... | |
virtual IlUChar | getBlue (IlInt pixel) const =0 |
Returns the blue component for a pixel value. More... | |
virtual IlUChar | getGreen (IlInt pixel) const =0 |
Returns the green component for a pixel value. More... | |
virtual IlUChar | getRed (IlInt pixel) const =0 |
Returns the red component for a pixel value. More... | |
virtual void | getRGBA (IlInt pixel, IlUChar &red, IlUChar &green, IlUChar &blue, IlUChar &alpha) const |
Returns the RGBA component for a pixel value. More... | |
virtual IlBoolean | isPersistent () const |
Indicates if the object can be saved. More... | |
void | save (IlvOutputFile &file) const |
Saves the object to an output file. More... | |
virtual void | write (IlvOutputFile &file) const =0 |
Writes the color model to an output file. More... | |
Protected Member Functions | |
IlvMapColorModel () | |
Initializes a new color model instance. | |
This class allows mapping from integer values to RGB colors.
Library: ilvmaps
IlvDefaultRasterRenderer
.
|
pure virtual |
Returns the alpha component for a pixel value.
pixel | The pixel to get the alpha value from. |
Implemented in IlvIntervalColorModel.
Returns the blue component for a pixel value.
pixel | The pixel to get the blue value from. |
Implemented in IlvIntervalColorModel.
Returns the green component for a pixel value.
pixel | The pixel to get the green value from. |
Implemented in IlvIntervalColorModel.
Returns the red component for a pixel value.
pixel | The pixel to get the red value from. |
Implemented in IlvIntervalColorModel.
|
virtual |
Returns the RGBA component for a pixel value.
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. |
|
virtual |
Indicates if the object can be saved.
IlTrue
if the object can be saved. Reimplemented in IlvIntervalColorModel.
void IlvMapColorModel::save | ( | IlvOutputFile & | file | ) | const |
Saves the object to an output file.
file | The output file. |
|
pure virtual |
Writes the color model to an output file.
file | The output file. |
© Copyright 2018, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.