26 #ifndef __TERRALIB_QT_WIDGETS_SE_INTERNAL_GROUPINGWIDGET_H 27 #define __TERRALIB_QT_WIDGETS_SE_INTERNAL_GROUPINGWIDGET_H 31 #include "../../../maptools/AbstractLayer.h" 33 #include "../Config.h" 39 #include <QTableWidgetItem> 43 namespace Ui {
class GroupingWidgetForm; }
48 namespace color {
class ColorBar; }
50 namespace da {
class DataSetType; }
52 namespace map {
class Grouping; }
65 class ColorCatalogWidget;
97 std::unique_ptr<te::map::Grouping> getGrouping();
107 void updateUi(
bool loadColorBar =
false);
109 void setDataSetType();
115 void getDataAsDouble(std::vector<double>& vec,
const std::string& attrName,
const int& dataType,
int& nullValues);
117 void getLinkedDataAsDouble(std::vector<double>& vec,
const std::string& attrName,
const int& dataType,
int& nullValues);
119 void getDataAsString(std::vector<std::string>& vec,
const std::string& attrName,
int& nullValues);
121 void getLinkedDataAsString(std::vector<std::string>& vec,
const std::string& attrName,
int& nullValues);
123 void createDoubleNullGroupingItem(
int count);
125 void createStringNullGroupingItem(
int count);
127 int getGeometryType();
129 void buildSymbolizer(std::string meanTitle =
"");
131 void listAttributes();
133 void saveLegend(
const std::string& path);
137 void onApplyPushButtonClicked();
139 void onTypeComboBoxActivated(
int idx);
141 void onAttrComboBoxActivated(
int idx);
143 void onColorBarChanged();
145 void onTableWidgetItemChanged(QTableWidgetItem* item);
147 void onTableWidgetItemDoubleClicked(QTableWidgetItem* item);
149 void onImportPushButtonClicked();
151 void onLoadPushButtonClicked();
153 void onSavePushButtonClicked();
157 void applyPushButtonClicked();
162 std::unique_ptr<Ui::GroupingWidgetForm>
m_ui;
177 #endif // __TERRALIB_QT_WIDGETS_SE_INTERNAL_GROUPINGWIDGET_H
The Style defines the styling that is to be applied to a geographic dataset (vector geometries or cov...
This class contains the parameters needed for grouping the values of a Property.
It models the concept of color bar.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr