29 #include "../raster/Raster.h" 30 #include "../raster/Band.h" 31 #include "../raster/BandProperty.h" 32 #include "../raster/RasterProperty.h" 33 #include "../se/RasterSymbolizer.h" 34 #include "../se/ChannelSelection.h" 35 #include "../se/ContrastEnhancement.h" 36 #include "../se/SelectedChannel.h" 37 #include "../se/Utils.h" 140 for(
size_t palIndex = 0 ; palIndex < bandProp.
m_palette.size() ; ++palIndex )
143 static_cast<int>(bandProp.
m_palette[palIndex].c2), static_cast<int>(bandProp.
m_palette[palIndex].c3),
144 static_cast<int>(bandProp.
m_palette[palIndex].c4)
147 map[
static_cast<int>(palIndex)] = auxRGBACol;
319 for(
size_t i = 0; i < ip.size() - 1; ++i)
325 colorInit.setColor(colorInit.getRed(), colorInit.getGreen(), colorInit.getBlue());
326 double lowerLimit = ipItemInit->
getData();
332 colorEnd.setColor(colorEnd.getRed(), colorEnd.getGreen(), colorEnd.getBlue());
333 double upperLimit = ipItemEnd->
getData();
337 map.insert(te::map::RasterTransform::InterpolatedMap::value_type(std::pair<double, double>(lowerLimit, upperLimit), cb));
347 std::vector<te::se::ParameterValue*> t = caterogize->
getThresholds();
350 for(
size_t i = 0; i < tV.size(); ++i)
352 double lowerLimit, upperLimit;
356 lowerLimit = std::numeric_limits<double>::min();
359 else if(i == tV.size() - 1)
362 upperLimit = std::numeric_limits<double>::max();
374 map.insert(te::map::RasterTransform::CategorizedMap::value_type(std::pair<double, double>(lowerLimit, upperLimit), color));
384 std::vector<te::se::MapItem*> mItems = recode->
getMapItems();
386 for (std::size_t i = 0; i < mItems.size(); ++i)
392 map.insert(te::map::RasterTransform::RecodedMap::value_type(static_cast<int>(mItems[i]->getData()), color));
ParameterValue * getValue() const
Palette indexes color interpretation.
A selected channel to be display.
Alpha channel color interpretation.
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.
std::vector< ColorEntry > m_palette
The color palette.
int getRed() const
It returns the red component color value (a value from 0 to 255).
Interpolate * getInterpolate() const
A raster band description.
ParameterValue * getOffset() const
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).
te::se::ChannelSelection * getChannelSelection() const
#define TE_OPAQUE
For an RGBA color this is the value of the alpha-channel for totally opaque.
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
ParameterValue * getGain() const
An abstract class for raster data strucutures.
virtual std::size_t getNumberOfBands() const =0
Returns the number of bands (dimension of cells attribute values) in the raster.
BandProperty * getProperty()
Returns the band property.
ParameterValue * getOpacity() const
ContrastEnhancement defines the 'stretching' of contrast for a channel of a false-color image or for ...
ColorCompositionType getColorCompositionType() const
Recode * getRecode() const
The RasterSymbolizer describes how to render raster/matrix-coverage data (e.g., satellite photos...
virtual const Band * getBand(std::size_t i) const =0
Returns the raster i-th band.
Transformation of discrete values to other values.
std::vector< MapItem * > getMapItems() const
ColorCompositionType
Allowed color compositions type.
#define TE_SE_DEFAULT_GAMMA_VALUE
It specifies the default gamma value.
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.
Categorize * getCategorize() const
It models the concept of color bar.
te::se::ColorMap * getColorMap() const
SelectedChannel * getGrayChannel() const
ColorInterp m_colorInterp
The color interpretation.
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...