All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::se::ColorMap Class Reference

A ColorMap defines either the colors of a pallette-type raster source or the mapping of numeric pixel values to colors. More...

#include <ColorMap.h>

Inheritance diagram for te::se::ColorMap:

Public Member Functions

ColorMapclone () const
 
Initializer Methods

Methods related to instantiation and destruction.

 ColorMap ()
 It initializes a new ColorMap. More...
 
 ColorMap (const ColorMap &rhs)
 Copy constructor. More...
 
 ~ColorMap ()
 Destructor. More...
 
Accessor methods

Methods used to get or set properties.

void setCategorize (Categorize *c)
 
CategorizegetCategorize () const
 
void setInterpolate (Interpolate *i)
 
InterpolategetInterpolate () const
 

Private Attributes

Categorizem_categorize
 Categorize function. (Mandatory if interpolate_ is not defined or empty otherwise) More...
 
Interpolatem_interpolate
 Interpolate function. (Mandatory if categorize_ is not defined or empty otherwise) More...
 

Detailed Description

A ColorMap defines either the colors of a pallette-type raster source or the mapping of numeric pixel values to colors.

The ColorMap element defines the mapping of palette-type raster colors or fixed-numeric pixel values to colors using an Interpolate or Categorize SE function. The LookUpValue is in this case set to Rasterdata. For example, a DEM raster giving elevations in meters above sea level can be translated to a colored image with a ColorMap using a Categorize function.

See also
RasterSymbolizer, Categorize, Interpolate

Definition at line 60 of file ColorMap.h.

Constructor & Destructor Documentation

te::se::ColorMap::ColorMap ( )

It initializes a new ColorMap.

Definition at line 31 of file ColorMap.cpp.

te::se::ColorMap::ColorMap ( const ColorMap rhs)

Copy constructor.

Parameters
rhsThe other color map.

Definition at line 37 of file ColorMap.cpp.

References te::se::Categorize::clone(), te::se::Interpolate::clone(), m_categorize, and m_interpolate.

te::se::ColorMap::~ColorMap ( )

Destructor.

Definition at line 52 of file ColorMap.cpp.

Member Function Documentation

te::se::ColorMap * te::se::ColorMap::clone ( ) const
te::se::Categorize * te::se::ColorMap::getCategorize ( ) const

Definition at line 64 of file ColorMap.cpp.

Referenced by te::se::serialize::Save().

te::se::Interpolate * te::se::ColorMap::getInterpolate ( ) const

Definition at line 75 of file ColorMap.cpp.

Referenced by te::se::serialize::Save().

void te::se::ColorMap::setCategorize ( Categorize c)
void te::se::ColorMap::setInterpolate ( Interpolate i)

Definition at line 69 of file ColorMap.cpp.

Referenced by te::sa::CreateKernelColorMaping().

Member Data Documentation

Categorize* te::se::ColorMap::m_categorize
private

Categorize function. (Mandatory if interpolate_ is not defined or empty otherwise)

Definition at line 103 of file ColorMap.h.

Referenced by ColorMap().

Interpolate* te::se::ColorMap::m_interpolate
private

Interpolate function. (Mandatory if categorize_ is not defined or empty otherwise)

Definition at line 104 of file ColorMap.h.

Referenced by ColorMap().


The documentation for this class was generated from the following files: