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>
Public Member Functions | |
| ColorMap * | clone () 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) |
| Categorize * | getCategorize () const |
| void | setInterpolate (Interpolate *i) |
| Interpolate * | getInterpolate () const |
| void | setRecode (Recode *i) |
| Recode * | getRecode () const |
Private Attributes | |
| Categorize * | m_categorize |
| Categorize function. (Mandatory if interpolate_ is not defined or empty otherwise) More... | |
| Interpolate * | m_interpolate |
| Interpolate function. (Mandatory if categorize_ is not defined or empty otherwise) More... | |
| Recode * | m_recode |
| Recode function. More... | |
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.
Definition at line 61 of file ColorMap.h.
| te::se::ColorMap::ColorMap | ( | ) |
| te::se::ColorMap::ColorMap | ( | const ColorMap & | rhs | ) |
Copy constructor.
| rhs | The other color map. |
Definition at line 39 of file ColorMap.cpp.
References te::se::Recode::clone(), te::se::Categorize::clone(), te::se::Interpolate::clone(), m_categorize, m_interpolate, and m_recode.
| te::se::ColorMap::~ColorMap | ( | ) |
Destructor.
Definition at line 60 of file ColorMap.cpp.
References m_categorize, m_interpolate, and m_recode.
| te::se::ColorMap * te::se::ColorMap::clone | ( | ) | const |
Definition at line 100 of file ColorMap.cpp.
References ColorMap().
Referenced by te::qt::widgets::SlicingColorMapWidget::getColorMap(), te::qt::widgets::ColorMapWidget::getColorMap(), te::se::RasterSymbolizer::RasterSymbolizer(), te::qt::widgets::SlicingColorMapWidget::setColorMap(), and te::qt::widgets::ColorMapWidget::setColorMap().
| te::se::Categorize * te::se::ColorMap::getCategorize | ( | ) | const |
Definition at line 73 of file ColorMap.cpp.
References m_categorize.
Referenced by AddSliceItems(), te::qt::widgets::ColorMapItem::ColorMapItem(), te::qt::widgets::RasterSlicingWizard::execute(), te::map::RasterTransformConfigurer::getColorMapInformation(), te::se::serialize::Save(), te::qt::widgets::SlicingColorMapWidget::updateUi(), and te::qt::widgets::ColorMapWidget::updateUi().
| te::se::Interpolate * te::se::ColorMap::getInterpolate | ( | ) | const |
Definition at line 84 of file ColorMap.cpp.
References m_interpolate.
Referenced by AddSliceItems(), te::qt::widgets::ColorMapItem::ColorMapItem(), te::map::RasterTransformConfigurer::getColorMapInformation(), te::se::serialize::Save(), and te::qt::widgets::ColorMapWidget::updateUi().
| te::se::Recode * te::se::ColorMap::getRecode | ( | ) | const |
Definition at line 95 of file ColorMap.cpp.
References m_recode.
Referenced by AddSliceItems(), te::qt::widgets::ColorMapItem::ColorMapItem(), te::map::RasterTransformConfigurer::getColorMapInformation(), te::se::serialize::Save(), and te::qt::widgets::ColorMapWidget::updateUi().
| void te::se::ColorMap::setCategorize | ( | Categorize * | c | ) |
Definition at line 67 of file ColorMap.cpp.
References m_categorize.
Referenced by te::qt::widgets::ColorMapWidget::buildCategorizationMap(), te::qt::widgets::ColorMapWidget::buildInterpolationMap(), te::qt::widgets::ClassifierWizard::buildLegend(), te::qt::widgets::ColorMapWidget::buildRecodingMap(), EncodeStyle(), te::qt::widgets::RasterizationWizard::execute(), te::qt::widgets::ClassifierWizard::execute(), te::qt::widgets::SlicingColorMapWidget::getColorMap(), and te::qt::plugins::terralib4::GetRasterGrouping().
| void te::se::ColorMap::setInterpolate | ( | Interpolate * | i | ) |
Definition at line 78 of file ColorMap.cpp.
References m_interpolate.
Referenced by te::qt::widgets::ColorMapWidget::buildCategorizationMap(), te::qt::widgets::ColorMapWidget::buildInterpolationMap(), te::qt::widgets::ClassifierWizard::buildLegend(), te::qt::widgets::ColorMapWidget::buildRecodingMap(), te::sa::CreateKernelColorMaping(), te::qt::widgets::RasterizationWizard::execute(), and te::qt::widgets::SlicingColorMapWidget::getColorMap().
| void te::se::ColorMap::setRecode | ( | Recode * | i | ) |
Definition at line 89 of file ColorMap.cpp.
References m_recode.
Referenced by te::qt::widgets::ColorMapWidget::buildCategorizationMap(), te::qt::widgets::ColorMapWidget::buildInterpolationMap(), te::qt::widgets::ClassifierWizard::buildLegend(), te::qt::widgets::ColorMapWidget::buildRecodingMap(), te::qt::widgets::RasterizationWizard::execute(), and te::qt::widgets::SlicingColorMapWidget::getColorMap().
|
private |
Categorize function. (Mandatory if interpolate_ is not defined or empty otherwise)
Definition at line 108 of file ColorMap.h.
Referenced by ColorMap(), getCategorize(), setCategorize(), and ~ColorMap().
|
private |
Interpolate function. (Mandatory if categorize_ is not defined or empty otherwise)
Definition at line 109 of file ColorMap.h.
Referenced by ColorMap(), getInterpolate(), setInterpolate(), and ~ColorMap().
|
private |
Recode function.
Definition at line 110 of file ColorMap.h.
Referenced by ColorMap(), getRecode(), setRecode(), and ~ColorMap().