1 #include "../../../../color/ColorBar.h" 2 #include "../../../../maptools/AbstractLayer.h" 3 #include "../../../../se/Categorize.h" 4 #include "../../../../se/ColorMap.h" 5 #include "../../../../se/Interpolate.h" 6 #include "../../../../se/InterpolationPoint.h" 7 #include "../../../../se/MapItem.h" 8 #include "../../../../se/RasterSymbolizer.h" 9 #include "../../../../se/Recode.h" 10 #include "../../../../se/Utils.h" 28 for(std::size_t i = 1; i < tV.size() - 1; ++i)
30 double lowerLimit, upperLimit;
34 lowerLimit = std::numeric_limits<double>::min();
37 else if(i == tV.size() - 1)
40 upperLimit = std::numeric_limits<double>::max();
48 QString title = QString::number(lowerLimit);
50 title.append(QString::number(upperLimit));
64 for(std::size_t i = 0; i < ip.size() - 1; ++i)
71 QColor qBeg(colorInit.getRed(), colorInit.getGreen(), colorInit.getBlue());
72 double lowerLimit = ipItemInit->
getData();
79 QColor qEnd(colorEnd.getRed(), colorEnd.getGreen(), colorEnd.getBlue());
80 double upperLimit = ipItemEnd->
getData();
82 QString title = QString::number(lowerLimit);
84 title.append(QString::number(upperLimit));
92 std::vector<te::se::MapItem*> mItems = r->
getMapItems();
94 for (std::size_t i = 0; i < mItems.size(); ++i)
96 double data = mItems[i]->getData();
98 std::string title = mItems[i]->getTitle();
101 title = QString::number(data).toUtf8().data();
119 type = QObject::tr(
"Categorization");
121 type = QObject::tr(
"Interpolation");
123 type = QObject::tr(
"Recode");
125 m_label = type.toUtf8().data();
139 return Qt::ItemIsEnabled;
ParameterValue * getValue() const
int getRed() const
It returns the red component color value (a value from 0 to 255).
Interpolate * getInterpolate() const
A class that represents a style of a layer in a LayerTreeModel.
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
TESEEXPORT double GetDouble(const te::se::ParameterValue *param)
It gets the parameter value as a double.
const std::vector< ParameterValue * > & getThresholds() const
void AddSliceItems(te::qt::widgets::ColorMapItem *item, const te::se::ColorMap *cMap)
Recode * getRecode() const
Transformation of discrete values to other values.
std::vector< MapItem * > getMapItems() 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
A class that represents a slice of a ColorMapItem.
TESEEXPORT std::string GetString(const te::se::ParameterValue *param)
It gets the parameter value as a string.
A ColorMap defines either the colors of a pallette-type raster source or the mapping of numeric pixel...
const std::vector< ParameterValue * > & getThresholdValues() const
A class that represents a color map of rastersymbolizer of a layer in a LayerItemModel.