A widget used to build a grouping. More...
#include <GroupingWidget.h>
Public Slots | |
void | onApplyPushButtonClicked () |
void | onAttrComboBoxActivated (int idx) |
void | onColorBarChanged () |
void | onTableWidgetItemChanged (QTableWidgetItem *item) |
void | onTypeComboBoxActivated (int idx) |
Signals | |
void | applyPushButtonClicked () |
Public Member Functions | |
std::auto_ptr< te::map::Grouping > | getGrouping () |
void | setLayer (te::map::AbstractLayerPtr layer) |
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 | initialize () |
Internal method to initialize the widget (e.g.: color, combos, icons, etc.) More... | |
void | listAttributes () |
void | setDataSetType () |
void | setGrouping () |
void | updateUi () |
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::colorbar::ColorBar * | 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 56 of file GroupingWidget.cpp.
References initialize(), m_colorBar, m_ui, onApplyPushButtonClicked(), onAttrComboBoxActivated(), onColorBarChanged(), and onTypeComboBoxActivated().
te::qt::widgets::GroupingWidget::~GroupingWidget | ( | ) |
Destructor.
Definition at line 76 of file GroupingWidget.cpp.
References te::common::FreeContents().
|
signal |
|
protected |
Definition at line 643 of file GroupingWidget.cpp.
References te::se::CreateSymbolizer().
|
protected |
Definition at line 597 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 617 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 514 of file GroupingWidget.cpp.
References te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, and te::dt::NUMERIC_TYPE.
|
protected |
Definition at line 567 of file GroupingWidget.cpp.
|
protected |
Definition at line 636 of file GroupingWidget.cpp.
References te::map::GetGeomType().
std::auto_ptr< te::map::Grouping > te::qt::widgets::GroupingWidget::getGrouping | ( | ) |
Definition at line 93 of file GroupingWidget.cpp.
|
protected |
Internal method to initialize the widget (e.g.: color, combos, icons, etc.)
Definition at line 124 of file GroupingWidget.cpp.
References te::map::EQUAL_STEPS, MAX_SLICES, PRECISION, te::map::QUANTIL, te::map::STD_DEVIATION, TE_OPAQUE, and te::map::UNIQUE_VALUE.
Referenced by GroupingWidget().
|
protected |
Definition at line 703 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 338 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 455 of file GroupingWidget.cpp.
Referenced by GroupingWidget().
|
slot |
Definition at line 460 of file GroupingWidget.cpp.
Referenced by GroupingWidget().
|
slot |
Definition at line 470 of file GroupingWidget.cpp.
References te::map::EQUAL_STEPS, te::map::QUANTIL, and te::map::STD_DEVIATION.
|
slot |
Definition at line 422 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 273 of file GroupingWidget.cpp.
|
protected |
Definition at line 278 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::setLayer | ( | te::map::AbstractLayerPtr | layer | ) |
Definition at line 82 of file GroupingWidget.cpp.
|
protected |
Updates the widget form based on internal fill element.
Definition at line 166 of file GroupingWidget.cpp.
References te::qt::widgets::SymbologyPreview::build(), te::map::EQUAL_STEPS, 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::map::STD_DEVIATION, and te::map::UNIQUE_VALUE.
|
private |
Terralib color bar objetc.
Definition at line 147 of file GroupingWidget.h.
|
private |
Widget used to pick a color.
Definition at line 149 of file GroupingWidget.h.
Referenced by GroupingWidget().
|
private |
TerraLib layer auto ptr.
Definition at line 148 of file GroupingWidget.h.
|
private |
Grouping items.
Definition at line 150 of file GroupingWidget.h.
|
private |
Definition at line 152 of file GroupingWidget.h.
|
private |