A widget used to build a grouping. More...
#include <GroupingWidget.h>
Public Slots | |
void | onApplyPushButtonClicked () |
void | onAttrComboBoxActivated (int idx) |
void | onColorBarChanged () |
void | onImportPushButtonClicked () |
void | onTableWidgetItemChanged (QTableWidgetItem *item) |
void | onTableWidgetItemDoubleClicked (QTableWidgetItem *item) |
void | onTypeComboBoxActivated (int idx) |
Signals | |
void | applyPushButtonClicked () |
Public Member Functions | |
std::auto_ptr< te::map::Grouping > | getGrouping () |
void | setLayers (te::map::AbstractLayerPtr selectedLayer, std::vector< te::map::AbstractLayerPtr > allLayers) |
Initializer Methods | |
Methods related to instantiation and destruction. | |
GroupingWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
Constructs a basic fill widget which is a child of parent, with widget flags set to f. More... | |
~GroupingWidget () | |
Destructor. More... | |
Protected Member Functions | |
void | buildSymbolizer (std::string meanTitle="") |
void | createDoubleNullGroupingItem (int count) |
void | createStringNullGroupingItem (int count) |
void | getDataAsDouble (std::vector< double > &vec, const std::string &attrName, const int &dataType, int &nullValues) |
void | getDataAsString (std::vector< std::string > &vec, const std::string &attrName, int &nullValues) |
int | getGeometryType () |
void | getLinkedDataAsDouble (std::vector< double > &vec, const std::string &attrName, const int &dataType, int &nullValues) |
void | getLinkedDataAsString (std::vector< std::string > &vec, const std::string &attrName, int &nullValues) |
void | initialize () |
Internal method to initialize the widget (e.g.: color, combos, icons, etc.) More... | |
void | listAttributes () |
void | setDataSetType () |
void | setGrouping () |
void | setGrouping (te::map::Grouping *grouping) |
void | updateUi (bool loadColorBar=false) |
Updates the widget form based on internal fill element. More... | |
Private Attributes | |
te::color::ColorBar * | m_cb |
Terralib color bar objetc. More... | |
te::qt::widgets::ColorCatalogWidget * | m_colorBar |
Widget used to pick a color. More... | |
te::map::AbstractLayerPtr | m_layer |
TerraLib layer auto ptr. More... | |
std::vector< te::map::GroupingItem * > | m_legend |
Grouping items. More... | |
bool | m_manual |
std::auto_ptr< Ui::GroupingWidgetForm > | m_ui |
Widget form. More... | |
te::qt::widgets::GroupingWidget::GroupingWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Constructs a basic fill widget which is a child of parent, with widget flags set to f.
Definition at line 65 of file GroupingWidget.cpp.
References initialize(), m_colorBar, m_ui, onApplyPushButtonClicked(), onAttrComboBoxActivated(), onColorBarChanged(), onImportPushButtonClicked(), onTableWidgetItemDoubleClicked(), and onTypeComboBoxActivated().
te::qt::widgets::GroupingWidget::~GroupingWidget | ( | ) |
Destructor.
Definition at line 89 of file GroupingWidget.cpp.
References te::common::FreeContents().
|
signal |
|
protected |
Definition at line 1106 of file GroupingWidget.cpp.
References te::se::CreateSymbolizer().
|
protected |
Definition at line 1060 of file GroupingWidget.cpp.
References te::se::CreateSymbolizer(), NO_TITLE, te::map::GroupingItem::setCount(), te::map::GroupingItem::setLowerLimit(), te::map::GroupingItem::setSymbolizers(), te::map::GroupingItem::setTitle(), te::map::GroupingItem::setUpperLimit(), and te::common::Globals::sm_nanStr.
|
protected |
Definition at line 1080 of file GroupingWidget.cpp.
References te::se::CreateSymbolizer(), NO_TITLE, te::map::GroupingItem::setCount(), te::map::GroupingItem::setSymbolizers(), te::map::GroupingItem::setTitle(), te::map::GroupingItem::setValue(), and te::common::Globals::sm_nanStr.
|
protected |
Definition at line 691 of file GroupingWidget.cpp.
References te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::da::HasLinkedTable(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, and te::dt::NUMERIC_TYPE.
|
protected |
Definition at line 909 of file GroupingWidget.cpp.
References te::da::HasLinkedTable().
|
protected |
Definition at line 1099 of file GroupingWidget.cpp.
References te::map::GetGeomType().
std::auto_ptr< te::map::Grouping > te::qt::widgets::GroupingWidget::getGrouping | ( | ) |
Definition at line 97 of file GroupingWidget.cpp.
|
protected |
Definition at line 750 of file GroupingWidget.cpp.
References te::da::Select::clone(), te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::map::QueryLayer::getQuery(), te::da::GetSummarizedValue(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, te::dt::NUMERIC_TYPE, te::da::Select::setOrderBy(), and te::map::QueryLayer::setQuery().
|
protected |
Definition at line 945 of file GroupingWidget.cpp.
References te::da::Select::clone(), te::map::QueryLayer::getQuery(), te::da::GetSummarizedValue(), te::da::Select::setOrderBy(), and te::map::QueryLayer::setQuery().
|
protected |
Internal method to initialize the widget (e.g.: color, combos, icons, etc.)
Definition at line 142 of file GroupingWidget.cpp.
References te::map::EQUAL_STEPS, MAX_SLICES, PRECISION, te::map::QUANTIL, te::map::STD_DEVIATION, and te::map::UNIQUE_VALUE.
Referenced by GroupingWidget().
|
protected |
Definition at line 1170 of file GroupingWidget.cpp.
References te::dt::DOUBLE_TYPE, te::map::EQUAL_STEPS, te::dt::FLOAT_TYPE, te::dt::Property::getName(), te::dt::Property::getType(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, te::dt::NUMERIC_TYPE, te::map::QUANTIL, te::map::STD_DEVIATION, te::dt::STRING_TYPE, and te::map::UNIQUE_VALUE.
|
slot |
Definition at line 424 of file GroupingWidget.cpp.
References te::map::EQUAL_STEPS, te::common::FreeContents(), te::map::GroupingByEqualSteps(), te::map::GroupingByQuantil(), te::map::GroupingByStdDeviation(), te::map::GroupingByUniqueValues(), te::map::QUANTIL, te::map::STD_DEVIATION, and te::map::UNIQUE_VALUE.
Referenced by GroupingWidget().
|
slot |
Definition at line 545 of file GroupingWidget.cpp.
Referenced by GroupingWidget().
|
slot |
Definition at line 550 of file GroupingWidget.cpp.
Referenced by GroupingWidget().
|
slot |
Definition at line 1293 of file GroupingWidget.cpp.
References te::common::Convert2UCase(), te::dt::Property::getName(), and te::dt::Property::getType().
Referenced by GroupingWidget().
|
slot |
Definition at line 560 of file GroupingWidget.cpp.
References te::map::EQUAL_STEPS, te::map::QUANTIL, and te::map::STD_DEVIATION.
|
slot |
Definition at line 604 of file GroupingWidget.cpp.
References te::qt::widgets::SymbologyPreview::build(), te::qt::widgets::PointSymbolizerWidget::getSymbolizer(), te::qt::widgets::LineSymbolizerWidget::getSymbolizer(), te::qt::widgets::PolygonSymbolizerWidget::getSymbolizer(), te::map::GroupingItem::getSymbolizers(), te::qt::widgets::PointSymbolizerWidget::setSymbolizer(), te::qt::widgets::LineSymbolizerWidget::setSymbolizer(), te::qt::widgets::PolygonSymbolizerWidget::setSymbolizer(), and te::map::GroupingItem::setSymbolizers().
Referenced by GroupingWidget().
|
slot |
Definition at line 512 of file GroupingWidget.cpp.
References te::map::EQUAL_STEPS, te::map::QUANTIL, te::map::STD_DEVIATION, and te::map::UNIQUE_VALUE.
Referenced by GroupingWidget().
|
protected |
Definition at line 347 of file GroupingWidget.cpp.
|
protected |
Definition at line 352 of file GroupingWidget.cpp.
|
protected |
Definition at line 361 of file GroupingWidget.cpp.
References te::common::FreeContents(), te::map::Grouping::getGroupingItems(), te::map::Grouping::getNumSlices(), te::map::Grouping::getPrecision(), te::map::Grouping::getPropertyName(), te::map::Grouping::getStdDeviation(), and te::map::Grouping::getType().
void te::qt::widgets::GroupingWidget::setLayers | ( | te::map::AbstractLayerPtr | selectedLayer, |
std::vector< te::map::AbstractLayerPtr > | allLayers | ||
) |
Definition at line 1239 of file GroupingWidget.cpp.
References te::da::HasLinkedTable().
|
protected |
Updates the widget form based on internal fill element.
Definition at line 185 of file GroupingWidget.cpp.
References te::color::ColorBar::addColor(), te::qt::widgets::SymbologyPreview::build(), te::map::EQUAL_STEPS, te::se::SymbolizerColorFinder::find(), te::se::SymbolizerColorFinder::getColor(), te::qt::widgets::colorbar::ColorBar::getColorBar(), te::map::GroupingItem::getCount(), te::map::GroupingItem::getLowerLimit(), te::map::GroupingItem::getSymbolizers(), te::map::GroupingItem::getTitle(), te::map::GroupingItem::getUpperLimit(), te::map::GroupingItem::getValue(), NO_TITLE, te::map::QUANTIL, te::qt::widgets::colorbar::ColorBar::setColorBar(), te::map::STD_DEVIATION, and te::map::UNIQUE_VALUE.
|
private |
Terralib color bar objetc.
Definition at line 152 of file GroupingWidget.h.
|
private |
Widget used to pick a color.
Definition at line 154 of file GroupingWidget.h.
Referenced by GroupingWidget().
|
private |
TerraLib layer auto ptr.
Definition at line 153 of file GroupingWidget.h.
|
private |
Grouping items.
Definition at line 155 of file GroupingWidget.h.
|
private |
Definition at line 157 of file GroupingWidget.h.
|
private |