Rogue Wave Views
Maps Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions | Protected Member Functions
IlvMapColorModel Class Referenceabstract

This class allows mapping from integer values to RGB colors. More...

#include <ilviews/maps/rendering/cmodel.h>

Inheritance diagram for IlvMapColorModel:
IlvIntervalColorModel

Public Member Functions

virtual IlvMapColorModelcopy () 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.
 

Detailed Description

This class allows mapping from integer values to RGB colors.

Library: ilvmaps

See also
IlvDefaultRasterRenderer.

Member Function Documentation

§ copy()

virtual IlvMapColorModel* IlvMapColorModel::copy ( ) const
pure virtual

Returns a copy of the object.

Returns
The copy of the object.

Implemented in IlvIntervalColorModel.

§ getAlpha()

virtual IlUChar IlvMapColorModel::getAlpha ( IlInt  pixel) const
pure virtual

Returns the alpha component for a pixel value.

Parameters
pixelThe 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
pixelThe 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
pixelThe 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
pixelThe pixel to get the red value from.
Returns
The red component for the pixel pixel.

Implemented in IlvIntervalColorModel.

§ getRGBA()

virtual void IlvMapColorModel::getRGBA ( IlInt  pixel,
IlUChar red,
IlUChar green,
IlUChar blue,
IlUChar alpha 
) const
virtual

Returns the RGBA component for a pixel value.

Parameters
pixelThe pixel to get the component values from.
redThe returned red component.
greenThe returned green component.
blueThe returned blue component.
alphaThe 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()

void IlvMapColorModel::save ( IlvOutputFile file) const

Saves the object to an output file.

Parameters
fileThe output file.

§ write()

virtual void IlvMapColorModel::write ( IlvOutputFile file) const
pure virtual

Writes the color model to an output file.

Parameters
fileThe 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.