A dialog used to edit legend. More...
#include <TimeViewerEditLegendDialog.h>
Signals | |
| void | applyPushButtonClicked () |
| void | okPushButtonClicked () |
Public Member Functions | |
| const std::vector< se::Rule * > & | getRules () const |
| void | saveLegend (const std::string &path) |
| void | setLayers (te::map::AbstractLayerPtr layer) |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| TimeViewerEditLegendDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructs a basic fill dialog which is a child of parent, with widget flags set to f. More... | |
| ~TimeViewerEditLegendDialog () | |
| Destructor. More... | |
Protected Slots | |
| void | onApplyPushButtonClicked () |
| void | onCancelPushButtonClicked () |
| void | onColorBarChanged () |
| void | onLoadPushButtonClicked () |
| void | onOkPushButtonClicked () |
| void | onSavePushButtonClicked () |
| void | onSelectAllPushButtonClicked () |
| void | onUnselectAllPushButtonClicked () |
Protected Member Functions | |
| void | initialize () |
Private Member Functions | |
| void | buildSymbolizer (std::string meanTitle="") |
| void | getDataAsString (std::vector< std::string > &vec, const std::string &attrName, int &nullValues) |
| int | getGeometryType () |
| void | listAtrributes () |
| void | updateUi (bool loadColorBar=false) |
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::se::Rule * > | m_legend |
| Rule items. More... | |
| bool | m_manual |
| std::unique_ptr< Ui::TimeViewerEditLegendDialog > | m_ui |
| Dialog form. More... | |
A dialog used to edit legend.
Definition at line 81 of file TimeViewerEditLegendDialog.h.
| te::qt::plugins::tv::TimeViewerEditLegendDialog::TimeViewerEditLegendDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Constructs a basic fill dialog which is a child of parent, with widget flags set to f.
Definition at line 65 of file TimeViewerEditLegendDialog.cpp.
References initialize(), m_colorBar, m_ui, onApplyPushButtonClicked(), onCancelPushButtonClicked(), onColorBarChanged(), onLoadPushButtonClicked(), onOkPushButtonClicked(), onSavePushButtonClicked(), onSelectAllPushButtonClicked(), onUnselectAllPushButtonClicked(), and ~TimeViewerEditLegendDialog().
|
default |
Destructor.
Referenced by TimeViewerEditLegendDialog().
|
signal |
|
private |
Definition at line 227 of file TimeViewerEditLegendDialog.cpp.
References te::se::CreateSymbolizer(), te::qt::widgets::ColorCatalogWidget::getColorBar(), te::qt::widgets::colorbar::ColorBar::getColorBar(), getGeometryType(), te::color::ColorBar::getLowerMeanSlices(), te::color::ColorBar::getMeanSlice(), te::color::ColorBar::getSlices(), te::color::ColorBar::getUpperMeanSlices(), m_cb, m_colorBar, and m_legend.
Referenced by onApplyPushButtonClicked(), and onColorBarChanged().
|
private |
Definition at line 139 of file TimeViewerEditLegendDialog.cpp.
Referenced by onApplyPushButtonClicked().
|
private |
Definition at line 291 of file TimeViewerEditLegendDialog.cpp.
References te::map::GetGeomType(), and m_layer.
Referenced by buildSymbolizer().
| const std::vector< te::se::Rule * > & te::qt::plugins::tv::TimeViewerEditLegendDialog::getRules | ( | ) | const |
Definition at line 440 of file TimeViewerEditLegendDialog.cpp.
References m_legend.
|
protected |
Definition at line 204 of file TimeViewerEditLegendDialog.cpp.
References te::qt::widgets::ColorCatalogWidget::getColorBar(), m_colorBar, m_manual, m_ui, PRECISION, te::qt::widgets::colorbar::ColorBar::setHeight(), and te::qt::widgets::colorbar::ColorBar::setScaleVisible().
Referenced by TimeViewerEditLegendDialog().
|
private |
Definition at line 109 of file TimeViewerEditLegendDialog.cpp.
References te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::dt::Property::getName(), te::dt::Property::getType(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, m_layer, m_ui, te::dt::NUMERIC_TYPE, p, and te::dt::STRING_TYPE.
Referenced by setLayers().
|
signal |
Referenced by onOkPushButtonClicked().
|
protectedslot |
Definition at line 169 of file TimeViewerEditLegendDialog.cpp.
References buildSymbolizer(), te::common::FreeContents(), getDataAsString(), te::map::GroupingByUniqueValues(), m_legend, m_manual, m_ui, and updateUi().
Referenced by TimeViewerEditLegendDialog().
|
protectedslot |
Definition at line 428 of file TimeViewerEditLegendDialog.cpp.
Referenced by TimeViewerEditLegendDialog().
|
protectedslot |
Definition at line 418 of file TimeViewerEditLegendDialog.cpp.
References buildSymbolizer(), m_layer, and updateUi().
Referenced by TimeViewerEditLegendDialog(), and updateUi().
|
protectedslot |
Definition at line 518 of file TimeViewerEditLegendDialog.cpp.
Referenced by TimeViewerEditLegendDialog().
|
protectedslot |
Definition at line 433 of file TimeViewerEditLegendDialog.cpp.
References okPushButtonClicked().
Referenced by TimeViewerEditLegendDialog().
|
protectedslot |
Definition at line 445 of file TimeViewerEditLegendDialog.cpp.
References saveLegend().
Referenced by TimeViewerEditLegendDialog().
|
protectedslot |
Definition at line 496 of file TimeViewerEditLegendDialog.cpp.
References m_ui.
Referenced by TimeViewerEditLegendDialog().
|
protectedslot |
Definition at line 507 of file TimeViewerEditLegendDialog.cpp.
References m_ui.
Referenced by TimeViewerEditLegendDialog().
| void te::qt::plugins::tv::TimeViewerEditLegendDialog::saveLegend | ( | const std::string & | path | ) |
Definition at line 452 of file TimeViewerEditLegendDialog.cpp.
Referenced by onSavePushButtonClicked().
| void te::qt::plugins::tv::TimeViewerEditLegendDialog::setLayers | ( | te::map::AbstractLayerPtr | layer | ) |
Definition at line 100 of file TimeViewerEditLegendDialog.cpp.
References listAtrributes(), m_layer, and m_ui.
|
private |
Definition at line 298 of file TimeViewerEditLegendDialog.cpp.
References te::color::ColorBar::addColor(), te::qt::widgets::SymbologyPreview::build(), te::se::SymbolizerColorFinder::find(), te::se::SymbolizerColorFinder::getColor(), te::qt::widgets::ColorCatalogWidget::getColorBar(), te::se::Rule::getFilter(), te::fe::GetFilterUniqueValue(), te::se::Rule::getName(), te::se::Rule::getSymbolizers(), m_colorBar, m_legend, m_ui, NO_TITLE, onColorBarChanged(), and te::qt::widgets::colorbar::ColorBar::setColorBar().
Referenced by onApplyPushButtonClicked(), and onColorBarChanged().
|
private |
Terralib color bar objetc.
Definition at line 154 of file TimeViewerEditLegendDialog.h.
Referenced by buildSymbolizer().
|
private |
Widget used to pick a color.
Definition at line 156 of file TimeViewerEditLegendDialog.h.
Referenced by buildSymbolizer(), initialize(), TimeViewerEditLegendDialog(), and updateUi().
|
private |
TerraLib layer auto ptr.
Definition at line 150 of file TimeViewerEditLegendDialog.h.
Referenced by getDataAsString(), getGeometryType(), listAtrributes(), onColorBarChanged(), and setLayers().
|
private |
Rule items.
Definition at line 152 of file TimeViewerEditLegendDialog.h.
Referenced by buildSymbolizer(), getRules(), onApplyPushButtonClicked(), and updateUi().
|
private |
Definition at line 158 of file TimeViewerEditLegendDialog.h.
Referenced by initialize(), and onApplyPushButtonClicked().
|
private |
Dialog form.
Definition at line 148 of file TimeViewerEditLegendDialog.h.
Referenced by initialize(), listAtrributes(), onApplyPushButtonClicked(), onLoadPushButtonClicked(), onSelectAllPushButtonClicked(), onUnselectAllPushButtonClicked(), saveLegend(), setLayers(), TimeViewerEditLegendDialog(), and updateUi().