#include <RasterizationWizardPage.h>
Signals | |
| void | applyPushButtonClicked () |
Public Member Functions | |
| std::string | getAttributeName () |
| te::da::DataSourceInfoPtr | getDataSourceInfo () |
| te::gm::Envelope | getEnvelope () |
| std::map< std::string, std::vector< int > > | getInformations () |
| std::string | getRepositoryName () |
| double | getResX () |
| double | getResY () |
| int | getSrid () |
| QTableWidget * | getTableWidget () |
| bool | outputDataSourceToFile () |
| RasterizationWizardPage (QWidget *parent=0) | |
| void | saveLegend (const std::string &path) |
| void | setLayer (te::map::AbstractLayerPtr layer) |
| void | validate () |
| ~RasterizationWizardPage () | |
Protected Slots | |
| void | onApplyPushButtonClicked () |
| void | onAttrComboBoxActivated (int idx) |
| void | onColorBarChanged () |
| void | onLoadPushButtonClicked () |
| void | onResXLineEditEditingFinished () |
| void | onResYLineEditEditingFinished () |
| void | onSavePushButtonClicked () |
| void | onSelectAllPushButtonClicked () |
| void | onTableWidgetItemChanged (QTableWidgetItem *item) |
| void | onTableWidgetItemDoubleClicked (QTableWidgetItem *item) |
| void | onTargetFileToolButtonPressed () |
| void | onUnselectAllPushButtonClicked () |
Private Member Functions | |
| void | buildSymbolizer (std::string meanTitle="") |
| void | createStringNullGroupingItem (int count) |
| void | getDataAsString (std::vector< std::string > &vec, const std::string &attrName, int &nullValues) |
| std::vector< std::string > | getDistinctClasses (const std::string &attrName) |
| int | getGeometryType () |
| void | listAttributes () |
| 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::se::Rule * > | m_legend |
| Rule items. More... | |
| bool | m_manual |
| te::da::DataSourceInfoPtr | m_outputDatasource |
| DataSource information. More... | |
| bool | m_toFile |
| std::unique_ptr< Ui::RasterizationWizardPageForm > | m_ui |
Definition at line 62 of file RasterizationWizardPage.h.
| te::qt::widgets::RasterizationWizardPage::RasterizationWizardPage | ( | QWidget * | parent = 0 | ) |
Definition at line 65 of file RasterizationWizardPage.cpp.
References m_colorBar, m_ui, onApplyPushButtonClicked(), onAttrComboBoxActivated(), onColorBarChanged(), onLoadPushButtonClicked(), onResXLineEditEditingFinished(), onResYLineEditEditingFinished(), onSavePushButtonClicked(), onSelectAllPushButtonClicked(), onTableWidgetItemDoubleClicked(), onTargetFileToolButtonPressed(), and onUnselectAllPushButtonClicked().
| te::qt::widgets::RasterizationWizardPage::~RasterizationWizardPage | ( | ) |
Definition at line 104 of file RasterizationWizardPage.cpp.
References te::common::FreeContents(), and m_legend.
|
signal |
Referenced by onApplyPushButtonClicked(), and onTableWidgetItemDoubleClicked().
|
private |
Definition at line 442 of file RasterizationWizardPage.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 506 of file RasterizationWizardPage.cpp.
References te::fe::CreateFilterByUniqueValue(), te::se::CreateSymbolizer(), getGeometryType(), m_legend, NO_TITLE, te::se::Rule::setFilter(), te::se::Rule::setName(), te::se::Rule::setSymbolizers(), and te::common::Globals::sm_nanStr.
Referenced by onApplyPushButtonClicked().
| std::string te::qt::widgets::RasterizationWizardPage::getAttributeName | ( | ) |
Definition at line 808 of file RasterizationWizardPage.cpp.
References m_ui.
|
private |
Definition at line 412 of file RasterizationWizardPage.cpp.
Referenced by onApplyPushButtonClicked().
| te::da::DataSourceInfoPtr te::qt::widgets::RasterizationWizardPage::getDataSourceInfo | ( | ) |
Definition at line 745 of file RasterizationWizardPage.cpp.
References m_outputDatasource.
|
private |
Definition at line 127 of file RasterizationWizardPage.cpp.
References te::common::Singleton< DataSourceManager >::getInstance(), m_layer, te::da::Select::setDistinct(), te::da::Select::setFrom(), and te::da::Select::setOrderBy().
| te::gm::Envelope te::qt::widgets::RasterizationWizardPage::getEnvelope | ( | ) |
Definition at line 760 of file RasterizationWizardPage.cpp.
References m_layer.
|
private |
Definition at line 635 of file RasterizationWizardPage.cpp.
References te::map::GetGeomType(), and m_layer.
Referenced by buildSymbolizer(), and createStringNullGroupingItem().
| std::map< std::string, std::vector< int > > te::qt::widgets::RasterizationWizardPage::getInformations | ( | ) |
Definition at line 813 of file RasterizationWizardPage.cpp.
References m_ui.
| std::string te::qt::widgets::RasterizationWizardPage::getRepositoryName | ( | ) |
Definition at line 800 of file RasterizationWizardPage.cpp.
References m_ui.
| double te::qt::widgets::RasterizationWizardPage::getResX | ( | ) |
Definition at line 750 of file RasterizationWizardPage.cpp.
References m_ui.
| double te::qt::widgets::RasterizationWizardPage::getResY | ( | ) |
Definition at line 755 of file RasterizationWizardPage.cpp.
References m_ui.
| int te::qt::widgets::RasterizationWizardPage::getSrid | ( | ) |
Definition at line 766 of file RasterizationWizardPage.cpp.
References m_layer.
| QTableWidget * te::qt::widgets::RasterizationWizardPage::getTableWidget | ( | ) |
Definition at line 899 of file RasterizationWizardPage.cpp.
References m_ui.
|
private |
Definition at line 642 of file RasterizationWizardPage.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 setLayer().
|
protectedslot |
Definition at line 171 of file RasterizationWizardPage.cpp.
References applyPushButtonClicked(), buildSymbolizer(), createStringNullGroupingItem(), te::common::FreeContents(), getDataAsString(), te::map::GroupingByUniqueValues(), m_legend, m_manual, m_ui, and updateUi().
Referenced by RasterizationWizardPage().
|
protectedslot |
Definition at line 221 of file RasterizationWizardPage.cpp.
Referenced by RasterizationWizardPage().
|
protectedslot |
Definition at line 227 of file RasterizationWizardPage.cpp.
References buildSymbolizer(), m_layer, and updateUi().
Referenced by RasterizationWizardPage(), and updateUi().
|
protectedslot |
Definition at line 332 of file RasterizationWizardPage.cpp.
Referenced by RasterizationWizardPage().
|
protectedslot |
Definition at line 703 of file RasterizationWizardPage.cpp.
References te::gm::Envelope::isValid(), m_layer, te::gm::Envelope::m_llx, m_ui, and te::gm::Envelope::m_urx.
Referenced by RasterizationWizardPage().
|
protectedslot |
Definition at line 721 of file RasterizationWizardPage.cpp.
References te::gm::Envelope::isValid(), m_layer, te::gm::Envelope::m_lly, m_ui, and te::gm::Envelope::m_ury.
Referenced by RasterizationWizardPage().
|
protectedslot |
Definition at line 404 of file RasterizationWizardPage.cpp.
References saveLegend().
Referenced by RasterizationWizardPage().
|
protectedslot |
Definition at line 681 of file RasterizationWizardPage.cpp.
References m_ui.
Referenced by RasterizationWizardPage().
|
protectedslot |
Definition at line 237 of file RasterizationWizardPage.cpp.
Referenced by updateUi().
|
protectedslot |
Definition at line 243 of file RasterizationWizardPage.cpp.
References applyPushButtonClicked(), te::qt::widgets::SymbologyPreview::build(), te::qt::widgets::PointSymbolizerWidget::getSymbolizer(), te::qt::widgets::LineSymbolizerWidget::getSymbolizer(), te::qt::widgets::PolygonSymbolizerWidget::getSymbolizer(), te::se::Rule::getSymbolizers(), m_legend, m_manual, m_ui, te::qt::widgets::PointSymbolizerWidget::setSymbolizer(), te::qt::widgets::LineSymbolizerWidget::setSymbolizer(), te::qt::widgets::PolygonSymbolizerWidget::setSymbolizer(), te::se::Rule::setSymbolizers(), and updateUi().
Referenced by RasterizationWizardPage().
|
protectedslot |
Definition at line 771 of file RasterizationWizardPage.cpp.
References te::qt::widgets::FileDialog::exec(), te::qt::widgets::FileDialog::getFileName(), te::qt::widgets::FileDialog::getPath(), m_toFile, m_ui, te::qt::widgets::FileDialog::RASTER, and te::common::Exception::what().
Referenced by RasterizationWizardPage().
|
protectedslot |
Definition at line 692 of file RasterizationWizardPage.cpp.
References m_ui.
Referenced by RasterizationWizardPage().
| bool te::qt::widgets::RasterizationWizardPage::outputDataSourceToFile | ( | ) |
Definition at line 740 of file RasterizationWizardPage.cpp.
References m_toFile.
| void te::qt::widgets::RasterizationWizardPage::saveLegend | ( | const std::string & | path | ) |
Definition at line 904 of file RasterizationWizardPage.cpp.
Referenced by onSavePushButtonClicked().
| void te::qt::widgets::RasterizationWizardPage::setLayer | ( | te::map::AbstractLayerPtr | layer | ) |
Definition at line 110 of file RasterizationWizardPage.cpp.
References te::common::Singleton< SpatialReferenceSystemManager >::getInstance(), listAttributes(), m_layer, and m_ui.
|
private |
Updates the widget form based on internal fill element.
Definition at line 527 of file RasterizationWizardPage.cpp.
References te::qt::widgets::SymbologyPreview::build(), te::se::SymbolizerColorFinder::find(), te::color::RGBAColor::getBlue(), te::se::SymbolizerColorFinder::getColor(), te::se::Fill::getColor(), te::se::GetColor(), te::qt::widgets::ColorCatalogWidget::getColorBar(), te::se::PolygonSymbolizer::getFill(), te::se::Rule::getFilter(), te::fe::GetFilterUniqueValue(), te::color::RGBAColor::getGreen(), te::color::RGBAColor::getRed(), te::se::Rule::getSymbolizers(), m_colorBar, m_legend, m_ui, onColorBarChanged(), onTableWidgetItemChanged(), and te::qt::widgets::colorbar::ColorBar::setColorBar().
Referenced by onApplyPushButtonClicked(), onColorBarChanged(), and onTableWidgetItemDoubleClicked().
| void te::qt::widgets::RasterizationWizardPage::validate | ( | ) |
Definition at line 834 of file RasterizationWizardPage.cpp.
|
private |
Terralib color bar objetc.
Definition at line 151 of file RasterizationWizardPage.h.
Referenced by buildSymbolizer().
|
private |
Widget used to pick a color.
Definition at line 152 of file RasterizationWizardPage.h.
Referenced by buildSymbolizer(), RasterizationWizardPage(), and updateUi().
|
private |
TerraLib layer auto ptr.
Definition at line 149 of file RasterizationWizardPage.h.
Referenced by getDataAsString(), getDistinctClasses(), getEnvelope(), getGeometryType(), getSrid(), listAttributes(), onColorBarChanged(), onResXLineEditEditingFinished(), onResYLineEditEditingFinished(), setLayer(), and validate().
|
private |
Rule items.
Definition at line 154 of file RasterizationWizardPage.h.
Referenced by buildSymbolizer(), createStringNullGroupingItem(), onApplyPushButtonClicked(), onTableWidgetItemDoubleClicked(), updateUi(), and ~RasterizationWizardPage().
|
private |
Definition at line 160 of file RasterizationWizardPage.h.
Referenced by onApplyPushButtonClicked(), and onTableWidgetItemDoubleClicked().
|
private |
DataSource information.
Definition at line 156 of file RasterizationWizardPage.h.
Referenced by getDataSourceInfo().
|
private |
Definition at line 158 of file RasterizationWizardPage.h.
Referenced by onTargetFileToolButtonPressed(), and outputDataSourceToFile().
|
private |
Definition at line 147 of file RasterizationWizardPage.h.
Referenced by getAttributeName(), getInformations(), getRepositoryName(), getResX(), getResY(), getTableWidget(), listAttributes(), onApplyPushButtonClicked(), onLoadPushButtonClicked(), onResXLineEditEditingFinished(), onResYLineEditEditingFinished(), onSelectAllPushButtonClicked(), onTableWidgetItemDoubleClicked(), onTargetFileToolButtonPressed(), onUnselectAllPushButtonClicked(), RasterizationWizardPage(), saveLegend(), setLayer(), updateUi(), and validate().