A Raster Transform configurer generates a Raster Transform given a RasterSymbolzier. More...
#include <RasterTransformConfigurer.h>
Public Member Functions | |
| void | configure () |
| Configure Transformation. More... | |
| RasterTransformConfigurer (te::se::RasterSymbolizer *rs, te::map::RasterTransform *rt) | |
| Constructor. More... | |
| ~RasterTransformConfigurer () | |
| Destructor. More... | |
Protected Member Functions | |
| void | getBlueChannelProperties (te::se::SelectedChannel *se) |
| void | getCategorizedMap (te::se::Categorize *caterogize) |
| void | getChannelSelection () |
| void | getColorMapInformation () |
| double | getGammaProperty (te::se::ContrastEnhancement *ce) |
| void | getGeneralProperties () |
| void | getGrayChannelProperties (te::se::SelectedChannel *se) |
| void | getGreenChannelProperties (te::se::SelectedChannel *se) |
| void | getInterpolatedMap (te::se::Interpolate *interpolate) |
| void | getRecodedMap (te::se::Recode *recode) |
| void | getRedChannelProperties (te::se::SelectedChannel *se) |
Private Attributes | |
| te::se::RasterSymbolizer * | m_rstSymbolizer |
| SE element that describes the raster style. More... | |
| te::map::RasterTransform * | m_rstTransform |
| Raster transformation object. More... | |
A Raster Transform configurer generates a Raster Transform given a RasterSymbolzier.
Definition at line 64 of file RasterTransformConfigurer.h.
| te::map::RasterTransformConfigurer::RasterTransformConfigurer | ( | te::se::RasterSymbolizer * | rs, |
| te::map::RasterTransform * | rt | ||
| ) |
Constructor.
| rs | Valid raster symbolizer pointer |
| rt | Pointer to a raster transform object that will be configurated |
Definition at line 43 of file RasterTransformConfigurer.cpp.
References ~RasterTransformConfigurer().
|
default |
Destructor.
Referenced by RasterTransformConfigurer().
| void te::map::RasterTransformConfigurer::configure | ( | ) |
Configure Transformation.
Definition at line 51 of file RasterTransformConfigurer.cpp.
References getChannelSelection(), te::se::RasterSymbolizer::getChannelSelection(), te::se::RasterSymbolizer::getColorMap(), getColorMapInformation(), getGeneralProperties(), and m_rstSymbolizer.
Referenced by te::wms::WMSLayerRenderer::drawRaster(), te::map::DrawRaster(), te::qt::widgets::ReadPixelTool::mouseReleaseEvent(), and ReadPixelTool::mouseReleaseEvent().
|
protected |
Function used to get blue channel properties
Definition at line 251 of file RasterTransformConfigurer.cpp.
References band, te::map::RasterTransform::BLUE_CHANNEL, te::se::SelectedChannel::getContrastEnhancement(), getGammaProperty(), te::se::SelectedChannel::getSourceChannelName(), m_rstTransform, te::map::RasterTransform::setBChannelMapping(), and te::map::RasterTransform::setGammaB().
Referenced by getChannelSelection().
|
protected |
Function used to get the color map Categorized information
Definition at line 343 of file RasterTransformConfigurer.cpp.
References te::color::RGBAColor::getBlue(), te::se::GetDouble(), te::color::RGBAColor::getGreen(), te::color::RGBAColor::getRed(), te::se::GetString(), te::se::Categorize::getThresholds(), te::se::Categorize::getThresholdValues(), m_rstTransform, te::map::RasterTransform::setCategorizedMap(), and te::color::RGBAColor::setColor().
Referenced by getColorMapInformation().
|
protected |
Function used to get channel selection order
Definition at line 103 of file RasterTransformConfigurer.cpp.
References te::map::RasterTransform::ALPHA_CHANNEL, te::rst::AlphaCInt, te::map::RasterTransform::BAND2BAND_TRANSF, te::map::RasterTransform::BLUE2THREE_TRANSF, te::se::BLUE_COMPOSITION, te::map::RasterTransform::clearRGBMap(), te::map::RasterTransform::EXTRACT2RGB_TRANSF, te::rst::Raster::getBand(), te::se::ChannelSelection::getBlueChannel(), getBlueChannelProperties(), te::se::RasterSymbolizer::getChannelSelection(), te::se::ChannelSelection::getColorCompositionType(), te::se::ChannelSelection::getGrayChannel(), getGrayChannelProperties(), te::se::ChannelSelection::getGreenChannel(), getGreenChannelProperties(), te::map::RasterTransform::getInputRaster(), te::rst::Raster::getNumberOfBands(), te::map::RasterTransform::getOutputRaster(), te::rst::Band::getProperty(), te::se::ChannelSelection::getRedChannel(), getRedChannelProperties(), te::map::RasterTransform::getSrcBand(), te::se::GRAY_COMPOSITION, te::map::RasterTransform::GREEN2THREE_TRANSF, te::se::GREEN_COMPOSITION, te::rst::BandProperty::m_colorInterp, te::rst::BandProperty::m_palette, m_rstSymbolizer, m_rstTransform, te::map::RasterTransform::MONO2THREE_TRANSF, te::map::RasterTransform::NO_TRANSF, te::rst::PaletteIdxCInt, te::map::RasterTransform::RECODE_TRANSF, te::map::RasterTransform::RED2THREE_TRANSF, te::se::RED_COMPOSITION, te::se::RGB_COMPOSITION, te::map::RasterTransform::setBChannelMapping(), te::color::RGBAColor::setColor(), te::map::RasterTransform::setRecodedMap(), and te::map::RasterTransform::setTransfFunction().
Referenced by configure().
|
protected |
Function used to get the color map information
Definition at line 276 of file RasterTransformConfigurer.cpp.
References te::map::RasterTransform::CATEGORIZE_TRANSF, te::se::ColorMap::getCategorize(), getCategorizedMap(), te::se::RasterSymbolizer::getChannelSelection(), te::se::RasterSymbolizer::getColorMap(), te::se::ChannelSelection::getGrayChannel(), getGrayChannelProperties(), te::se::ColorMap::getInterpolate(), getInterpolatedMap(), te::se::ColorMap::getRecode(), getRecodedMap(), te::map::RasterTransform::INTERPOLATE_TRANSF, m_rstSymbolizer, m_rstTransform, te::map::RasterTransform::NO_TRANSF, te::map::RasterTransform::RECODE_TRANSF, and te::map::RasterTransform::setTransfFunction().
Referenced by configure().
|
protected |
Function used to get gamma value from a Contrast Enhancement
Definition at line 264 of file RasterTransformConfigurer.cpp.
References te::se::ContrastEnhancement::getGammaValue(), and TE_SE_DEFAULT_GAMMA_VALUE.
Referenced by getBlueChannelProperties(), getGrayChannelProperties(), getGreenChannelProperties(), and getRedChannelProperties().
|
protected |
Function used to get the commun properties (gain, offset, opacity)
Definition at line 68 of file RasterTransformConfigurer.cpp.
References te::se::GetDouble(), te::se::RasterSymbolizer::getGain(), te::map::RasterTransform::getGain(), te::se::RasterSymbolizer::getOffset(), te::map::RasterTransform::getOffset(), te::se::RasterSymbolizer::getOpacity(), m_rstSymbolizer, m_rstTransform, te::map::RasterTransform::setGain(), te::map::RasterTransform::setOffset(), te::map::RasterTransform::setTransparency(), and TE_OPAQUE.
Referenced by configure().
|
protected |
Function used to get gray channel properties
Definition at line 212 of file RasterTransformConfigurer.cpp.
References band, te::se::SelectedChannel::getContrastEnhancement(), getGammaProperty(), te::se::SelectedChannel::getSourceChannelName(), m_rstTransform, te::map::RasterTransform::setGammaM(), and te::map::RasterTransform::setSrcBand().
Referenced by getChannelSelection(), and getColorMapInformation().
|
protected |
Function used to get green channel properties
Definition at line 238 of file RasterTransformConfigurer.cpp.
References band, te::se::SelectedChannel::getContrastEnhancement(), getGammaProperty(), te::se::SelectedChannel::getSourceChannelName(), te::map::RasterTransform::GREEN_CHANNEL, m_rstTransform, te::map::RasterTransform::setBChannelMapping(), and te::map::RasterTransform::setGammaG().
Referenced by getChannelSelection().
|
protected |
Function used to get the color map Interpolated information
Definition at line 313 of file RasterTransformConfigurer.cpp.
References te::se::InterpolationPoint::getData(), te::se::Interpolate::getInterpolationPoints(), te::se::GetString(), te::se::InterpolationPoint::getValue(), m_rstTransform, and te::map::RasterTransform::setInterpolatedMap().
Referenced by getColorMapInformation().
|
protected |
Function used to get the color map Recoded information
Definition at line 380 of file RasterTransformConfigurer.cpp.
References te::color::RGBAColor::getBlue(), te::color::RGBAColor::getGreen(), te::se::Recode::getMapItems(), te::color::RGBAColor::getRed(), te::se::GetString(), m_rstTransform, te::color::RGBAColor::setColor(), and te::map::RasterTransform::setRecodedMap().
Referenced by getColorMapInformation().
|
protected |
Function used to get red channel properties
Definition at line 225 of file RasterTransformConfigurer.cpp.
References band, te::se::SelectedChannel::getContrastEnhancement(), getGammaProperty(), te::se::SelectedChannel::getSourceChannelName(), m_rstTransform, te::map::RasterTransform::RED_CHANNEL, te::map::RasterTransform::setBChannelMapping(), and te::map::RasterTransform::setGammaR().
Referenced by getChannelSelection().
|
private |
SE element that describes the raster style.
Definition at line 122 of file RasterTransformConfigurer.h.
Referenced by configure(), getChannelSelection(), getColorMapInformation(), and getGeneralProperties().
|
private |
Raster transformation object.
Definition at line 123 of file RasterTransformConfigurer.h.
Referenced by getBlueChannelProperties(), getCategorizedMap(), getChannelSelection(), getColorMapInformation(), getGeneralProperties(), getGrayChannelProperties(), getGreenChannelProperties(), getInterpolatedMap(), getRecodedMap(), and getRedChannelProperties().