29 #include "../raster/Raster.h" 
   30 #include "../raster/RasterProperty.h" 
   31 #include "../se/RasterSymbolizer.h" 
   32 #include "../se/ChannelSelection.h" 
   33 #include "../se/ContrastEnhancement.h" 
   34 #include "../se/SelectedChannel.h" 
   35 #include "../se/Utils.h" 
   53   assert(m_rstSymbolizer);
 
   55   getGeneralProperties();
 
   57   if(m_rstSymbolizer->getChannelSelection())
 
   59     getChannelSelection();
 
   62   if(m_rstSymbolizer->getColorMap())
 
   64     getColorMapInformation();
 
   71   if(m_rstSymbolizer->getOpacity())
 
   75     m_rstTransform->setTransparency(transp);
 
   79   if(m_rstSymbolizer->getGain())
 
   83     double curGain = m_rstTransform->getGain();
 
   87     m_rstTransform->setGain(curGain);
 
   91   if(m_rstSymbolizer->getOffset())
 
   95     double curOffset = m_rstTransform->getOffset();
 
   99     m_rstTransform->setOffset(curOffset);
 
  111     if((m_rstTransform->getInputRaster() && m_rstTransform->getOutputRaster()) &&
 
  112       (m_rstTransform->getInputRaster()->getNumberOfBands() == m_rstTransform->getOutputRaster()->getNumberOfBands()))
 
  123     m_rstTransform->clearRGBMap();
 
  135     m_rstTransform->clearRGBMap();
 
  143     m_rstTransform->clearRGBMap();
 
  151     m_rstTransform->clearRGBMap();
 
  167   m_rstTransform->setSrcBand(band);
 
  171   m_rstTransform->setContrastM(gamma);
 
  184   m_rstTransform->setContrastR(gamma);
 
  197   m_rstTransform->setContrastG(gamma);
 
  210   m_rstTransform->setContrastB(gamma);
 
  238   if(m_rstSymbolizer->getColorMap()->getCategorize())
 
  242     getCategorizedMap(m_rstSymbolizer->getColorMap()->getCategorize());
 
  244   else if(m_rstSymbolizer->getColorMap()->getInterpolate())
 
  248     getInterpolatedMap(m_rstSymbolizer->getColorMap()->getInterpolate());
 
  262   for(
size_t i = 0; i < ip.size() - 1; ++i)
 
  268     colorInit.setColor(colorInit.getRed(), colorInit.getGreen(), colorInit.getBlue());
 
  269     double lowerLimit = ipItemInit->
getData();
 
  275     colorEnd.setColor(colorEnd.getRed(), colorEnd.getGreen(), colorEnd.getBlue());
 
  276     double upperLimit = ipItemEnd->
getData();
 
  280     map.insert(te::map::RasterTransform::InterpolatedMap::value_type(std::pair<double, double>(lowerLimit, upperLimit), cb)); 
 
  283   m_rstTransform->setInterpolatedMap(map);
 
  290   std::vector<te::se::ParameterValue*> t = caterogize->
getThresholds();
 
  293   for(
size_t i = 0; i < tV.size(); ++i)
 
  295     double lowerLimit, upperLimit;
 
  299       lowerLimit = std::numeric_limits<double>::min();
 
  302     else if(i == tV.size() - 1)
 
  305       upperLimit = std::numeric_limits<double>::max();
 
  317     map.insert(te::map::RasterTransform::CategorizedMap::value_type(std::pair<double, double>(lowerLimit, upperLimit), color)); 
 
  320   m_rstTransform->setCategorizedMap(map);
 
ParameterValue * getValue() const 
 
A selected channel to be display. 
 
The transformation of continuous values to distinct values (Categorize function). ...
 
void setColor(const std::string &hexColor)
It sets the color using a two hexadecimal RGB-encoded color. 
 
int getRed() const 
It returns the red component color value (a value from 0 to 255). 
 
int getBlue() const 
It returns the blue component color value (a value from 0 to 255). 
 
int getGreen() const 
It returns the green component color value (a value from 0 to 255). 
 
const std::vector< InterpolationPoint * > & getInterpolationPoints() const 
 
SelectedChannel * getRedChannel() const 
 
TESEEXPORT double GetDouble(const te::se::ParameterValue *param)
It gets the parameter value as a double. 
 
SelectedChannel * getBlueChannel() const 
 
The transformation of continuous values to a number of values (Interpolate function). 
 
std::string getSourceChannelName() const 
 
const std::vector< ParameterValue * > & getThresholds() const 
 
#define TE_OPAQUE
For an RGBA color this is the value of the alpha-channel for totally opaque. 
 
ContrastEnhancement defines the 'stretching' of contrast for a channel of a false-color image or for ...
 
ColorCompositionType getColorCompositionType() const 
 
The RasterSymbolizer describes how to render raster/matrix-coverage data (e.g., satellite photos...
 
ColorCompositionType
Allowed color compositions type. 
 
SelectedChannel * getGreenChannel() const 
 
ContrastEnhancement * getContrastEnhancement() const 
 
They are used to define a graph of points. 
 
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color. 
 
#define TE_SE_DEFAULT_GAMMA_VALUE
It specifies the default gamma value. 
 
It models the concept of color bar. 
 
SelectedChannel * getGrayChannel() const 
 
TESEEXPORT std::string GetString(const te::se::ParameterValue *param)
It gets the parameter value as a string. 
 
double getGammaValue() const 
 
const std::vector< ParameterValue * > & getThresholdValues() const 
 
ChannelSelection specifies the false-color channel selection for a multi-spectral raster source (such...