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; }
63 class ColorCatalogWidget;
95 std::auto_ptr<te::map::Grouping> getGrouping();
103 void updateUi(
bool loadColorBar =
false);
105 void setDataSetType();
111 void getDataAsDouble(std::vector<double>& vec,
const std::string& attrName,
const int& dataType,
int& nullValues);
113 void getLinkedDataAsDouble(std::vector<double>& vec,
const std::string& attrName,
const int& dataType,
int& nullValues);
115 void getDataAsString(std::vector<std::string>& vec,
const std::string& attrName,
int& nullValues);
117 void getLinkedDataAsString(std::vector<std::string>& vec,
const std::string& attrName,
int& nullValues);
119 void createDoubleNullGroupingItem(
int count);
121 void createStringNullGroupingItem(
int count);
123 int getGeometryType();
125 void buildSymbolizer(std::string meanTitle =
"");
127 void listAttributes();
131 void onApplyPushButtonClicked();
133 void onTypeComboBoxActivated(
int idx);
135 void onAttrComboBoxActivated(
int idx);
137 void onColorBarChanged();
139 void onTableWidgetItemChanged(QTableWidgetItem* item);
141 void onTableWidgetItemDoubleClicked(QTableWidgetItem* item);
143 void onImportPushButtonClicked();
147 void applyPushButtonClicked();
152 std::auto_ptr<Ui::GroupingWidgetForm>
m_ui;
167 #endif // __TERRALIB_QT_WIDGETS_SE_INTERNAL_GROUPINGWIDGET_H
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