Rogue Wave Views |
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 the specified pixel value. More... | |
virtual IlUChar | getBlue (IlInt pixel) const =0 |
Returns the Blue component for the specified pixel value. More... | |
virtual IlUChar | getGreen (IlInt pixel) const =0 |
Returns the Green component for the specified pixel value. More... | |
virtual IlUChar | getRed (IlInt pixel) const =0 |
Returns the Red component for the specified pixel value. More... | |
virtual void | getRGBA (IlInt pixel, IlUChar &red, IlUChar &green, IlUChar &blue, IlUChar &alpha) const |
Returns the RGBA component for this pixel value. More... | |
virtual IlBoolean | isPersistent () const |
Returns IlTrue if the object can be saved. More... | |
void | save (IlvOutputFile &file) const |
Saves the object to an IlvOutputFile . More... | |
virtual void | write (IlvOutputFile &file) const =0 |
Writes the color model to an IlvOutputFile . More... | |
Protected Member Functions | |
IlvMapColorModel () | |
Creates an instance of the color model. More... | |
This class allows mapping from integer values to RGB colors.
|
protected |
Creates an instance of the color model.
The constructor of this abstract class is protected.
|
pure virtual |
Returns the Alpha component for the specified pixel value.
Implemented in IlvIntervalColorModel.
Returns the Blue component for the specified pixel value.
Implemented in IlvIntervalColorModel.
Returns the Green component for the specified pixel value.
Implemented in IlvIntervalColorModel.
Returns the Red component for the specified pixel value.
Implemented in IlvIntervalColorModel.
|
virtual |
Returns the RGBA component for this pixel value.
pixel | The pixel. |
red | The returned red component. |
green | The returned green component. |
blue | The returned blue component. |
alpha | The returned alpha component. |
|
virtual |
Returns IlTrue
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 IlvOutputFile
.
file | The output file. |
|
pure virtual |
Writes the color model to an IlvOutputFile
.
file | The output file. |
© Copyright 2015, 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.