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