26 #ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_COLORMAPWIDGET_H 27 #define __TERRALIB_QT_WIDGETS_SE_INTERNAL_COLORMAPWIDGET_H 31 #include "../../../maptools/AbstractLayer.h" 33 #include "../../../se/Enums.h" 34 #include "../Config.h" 37 #include <QTableWidgetItem> 46 namespace Ui {
class ColorMapWidgetForm; }
71 class ColorCatalogWidget;
107 std::string getCurrentBand();
109 Ui::ColorMapWidgetForm* getForm();
119 void buildCategorizationMap();
121 void buildInterpolationMap();
123 void buildRecodingMap();
125 std::vector<std::string> getValues();
129 std::vector<std::string> getRecodeValues();
131 void saveLegend(
const std::string& path);
135 void onApplyPushButtonClicked();
137 void onBandSelected(QString value);
139 void onTypeSelected(QString value);
141 void onTransformComboBoxCurrentIndexChanged(
int index);
143 void onTableWidgetItemDoubleClicked(QTableWidgetItem* item);
145 void onImportPushButtonClicked();
147 void onLoadPushButtonClicked();
149 void onSavePushButtonClicked();
153 void applyPushButtonClicked();
157 std::unique_ptr<Ui::ColorMapWidgetForm>
m_ui;
170 #endif // __TERRALIB_QT_WIDGETS_SE_INTERNAL_COLORMAPWIDGET_H
TECOLOREXPORT te::color::ColorSchemeCatalog * loadColorBar(const std::string &jsonfile, const std::string &catalogName)
This file contains utility functions for color bar.
An abstract class for raster data strucutures.
ColorMapTransformationType
Allowed color transformations type.
It models the concept of color bar.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
A ColorMap defines either the colors of a pallette-type raster source or the mapping of numeric pixel...