#include <AggregationDialog.h>
Public Member Functions | |
AggregationDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
te::map::AbstractLayerPtr | getLayer () |
Get the generated layer. More... | |
std::vector< te::dt::Property * > | getSelectedProperties () |
Get the selected properties based on selected QListWidgetItem. More... | |
te::dt::Property * | getSelectedPropertyByName (std::string propertyName) |
Get the selected property based on selected QListWidgetItem using the name of property. More... | |
std::map< te::dt::Property *, std::vector< te::stat::StatisticalSummary > > | getStatisticalSummary () |
Get the Grouping Functions Type based on selected QListWidgetItem. More... | |
void | setFunctionsByLayer (std::vector< te::dt::Property * > properties) |
Set Grouping Functions Type for 'm_outputListWidget' based on Selected Layer. More... | |
void | setLayers (std::list< te::map::AbstractLayerPtr > layers, te::map::AbstractLayerPtr selectedLayer=0) |
Set the layer that can be used. More... | |
void | setStatisticalSummary () |
Set Statistical Summary Type for combobox 'm_selectAllComboBox' and 'm_rejectAllComboBox' based on a enum. More... | |
void | setStatisticalSummaryMap () |
Map Statistical Summary Type enum for an intuitive name. More... | |
~AggregationDialog () | |
Protected Slots | |
void | onCalculateStatistics (bool visible) |
void | onCancelPushButtonClicked () |
void | onFilterLineEditTextChanged (const QString &text) |
void | onLayerComboBoxChanged (int index) |
void | onOkPushButtonClicked () |
void | onOutputListWidgetClicked (QListWidgetItem *item) |
void | onRejectAllComboBoxChanged (int index) |
void | onSelectAllComboBoxChanged (int index) |
void | onTargetDatasourceToolButtonPressed () |
void | onTargetFileToolButtonPressed () |
Private Types | |
typedef std::map< te::stat::StatisticalSummary, std::string > | StaticalSummaryMap |
Private Attributes | |
te::map::AbstractLayerPtr | m_layer |
Generated Layer. More... | |
std::list< te::map::AbstractLayerPtr > | m_layers |
List of layers. More... | |
te::da::DataSourceInfoPtr | m_outputDatasource |
DataSource information. More... | |
std::vector< te::dt::Property * > | m_properties |
Properties related to the selected Layer. More... | |
te::map::AbstractLayerPtr | m_selectedLayer |
Layer used for aggregation. More... | |
StaticalSummaryMap | m_StatisticalSummaryMap |
Maping of Statistical Summary enum. More... | |
bool | m_toFile |
std::auto_ptr< Ui::AggregationDialogForm > | m_ui |
Definition at line 59 of file AggregationDialog.h.
|
private |
Definition at line 143 of file AggregationDialog.h.
te::vp::AggregationDialog::AggregationDialog | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Definition at line 70 of file AggregationDialog.cpp.
References m_outputDatasource, m_ui, onCalculateStatistics(), onCancelPushButtonClicked(), onFilterLineEditTextChanged(), onLayerComboBoxChanged(), onOkPushButtonClicked(), onOutputListWidgetClicked(), onRejectAllComboBoxChanged(), onSelectAllComboBoxChanged(), onTargetDatasourceToolButtonPressed(), onTargetFileToolButtonPressed(), setStatisticalSummary(), and setStatisticalSummaryMap().
te::vp::AggregationDialog::~AggregationDialog | ( | ) |
Definition at line 108 of file AggregationDialog.cpp.
te::map::AbstractLayerPtr te::vp::AggregationDialog::getLayer | ( | ) |
Get the generated layer.
Definition at line 227 of file AggregationDialog.cpp.
Referenced by te::qt::plugins::vp::AggregationAction::onActionActivated().
std::vector< te::dt::Property * > te::vp::AggregationDialog::getSelectedProperties | ( | ) |
Get the selected properties based on selected QListWidgetItem.
Definition at line 212 of file AggregationDialog.cpp.
te::dt::Property * te::vp::AggregationDialog::getSelectedPropertyByName | ( | std::string | propertyName | ) |
Get the selected property based on selected QListWidgetItem using the name of property.
Definition at line 195 of file AggregationDialog.cpp.
std::map< te::dt::Property *, std::vector< te::stat::StatisticalSummary > > te::vp::AggregationDialog::getStatisticalSummary | ( | ) |
Get the Grouping Functions Type based on selected QListWidgetItem.
Definition at line 150 of file AggregationDialog.cpp.
|
protectedslot |
Definition at line 509 of file AggregationDialog.cpp.
Referenced by AggregationDialog().
|
protectedslot |
Definition at line 853 of file AggregationDialog.cpp.
Referenced by AggregationDialog().
|
protectedslot |
Definition at line 515 of file AggregationDialog.cpp.
Referenced by AggregationDialog().
|
protectedslot |
Definition at line 466 of file AggregationDialog.cpp.
References te::common::Clone(), te::common::FreeContents(), and te::dt::GEOMETRY_TYPE.
Referenced by AggregationDialog().
|
protectedslot |
Definition at line 620 of file AggregationDialog.cpp.
References te::common::ProgressManager::addViewer(), te::da::AssociateDataSetTypeConverterSRID(), te::map::DataSetLayer::getDataSetName(), te::da::GetDataSource(), te::map::DataSetLayer::getDataSourceId(), te::common::Singleton< DataSourceManager >::getInstance(), te::common::Singleton< DataSourceInfoManager >::getInstance(), te::common::Singleton< ProgressManager >::getInstance(), te::da::DataSourceCapabilities::getQueryCapabilities(), te::map::DataSetLayer::getSchema(), te::map::AbstractLayer::getSRID(), te::da::DataSourceFactory::make(), te::vp::AggregationOp::paramsAreValid(), te::common::ProgressManager::removeViewer(), te::vp::AggregationOp::run(), te::vp::AggregationOp::setInput(), te::vp::AggregationOp::setOutput(), te::vp::AggregationOp::setParams(), te::da::DataSourceCapabilities::supportsPreparedQueryAPI(), and te::da::QueryCapabilities::supportsSpatialSQLDialect().
Referenced by AggregationDialog().
|
protectedslot |
Definition at line 570 of file AggregationDialog.cpp.
Referenced by AggregationDialog().
|
protectedslot |
Definition at line 553 of file AggregationDialog.cpp.
Referenced by AggregationDialog().
|
protectedslot |
Definition at line 536 of file AggregationDialog.cpp.
Referenced by AggregationDialog().
|
protectedslot |
Definition at line 578 of file AggregationDialog.cpp.
References te::qt::widgets::DataSourceSelectorDialog::getSelecteds().
Referenced by AggregationDialog().
|
protectedslot |
Definition at line 599 of file AggregationDialog.cpp.
Referenced by AggregationDialog().
void te::vp::AggregationDialog::setFunctionsByLayer | ( | std::vector< te::dt::Property * > | properties | ) |
Set Grouping Functions Type for 'm_outputListWidget' based on Selected Layer.
Definition at line 285 of file AggregationDialog.cpp.
References te::stat::AMPLITUDE, te::stat::COUNT, te::dt::GEOMETRY_TYPE, te::da::GetDataSource(), te::map::DataSetLayer::getDataSourceId(), te::stat::KURTOSIS, te::stat::MAX_VALUE, te::stat::MEAN, te::stat::MEDIAN, te::stat::MIN_VALUE, te::stat::MODE, te::stat::SKEWNESS, te::stat::STANDARD_DEVIATION, te::dt::STRING_TYPE, te::stat::SUM, te::stat::VALID_COUNT, te::stat::VAR_COEFF, and te::stat::VARIANCE.
void te::vp::AggregationDialog::setLayers | ( | std::list< te::map::AbstractLayerPtr > | layers, |
te::map::AbstractLayerPtr | selectedLayer = 0 |
||
) |
Set the layer that can be used.
layers | List of AbstractLayerPtr |
Definition at line 112 of file AggregationDialog.cpp.
Referenced by te::qt::plugins::vp::AggregationAction::onActionActivated().
void te::vp::AggregationDialog::setStatisticalSummary | ( | ) |
Set Statistical Summary Type for combobox 'm_selectAllComboBox' and 'm_rejectAllComboBox' based on a enum.
Definition at line 232 of file AggregationDialog.cpp.
References te::stat::AMPLITUDE, te::stat::COUNT, te::stat::GetStatSummaryFullName(), te::stat::KURTOSIS, te::stat::MAX_VALUE, te::stat::MEAN, te::stat::MEDIAN, te::stat::MIN_VALUE, te::stat::MODE, te::stat::SKEWNESS, te::stat::STANDARD_DEVIATION, te::stat::SUM, te::stat::VALID_COUNT, te::stat::VAR_COEFF, and te::stat::VARIANCE.
Referenced by AggregationDialog().
void te::vp::AggregationDialog::setStatisticalSummaryMap | ( | ) |
Map Statistical Summary Type enum for an intuitive name.
Definition at line 267 of file AggregationDialog.cpp.
References te::stat::AMPLITUDE, te::stat::COUNT, te::stat::GetStatSummaryFullName(), te::stat::KURTOSIS, te::stat::MAX_VALUE, te::stat::MEAN, te::stat::MEDIAN, te::stat::MIN_VALUE, te::stat::MODE, te::stat::SKEWNESS, te::stat::STANDARD_DEVIATION, te::stat::SUM, te::stat::VALID_COUNT, te::stat::VAR_COEFF, and te::stat::VARIANCE.
Referenced by AggregationDialog().
|
private |
Generated Layer.
Definition at line 151 of file AggregationDialog.h.
|
private |
List of layers.
Definition at line 147 of file AggregationDialog.h.
|
private |
DataSource information.
Definition at line 146 of file AggregationDialog.h.
Referenced by AggregationDialog().
|
private |
Properties related to the selected Layer.
Definition at line 149 of file AggregationDialog.h.
|
private |
Layer used for aggregation.
Definition at line 148 of file AggregationDialog.h.
|
private |
Maping of Statistical Summary enum.
Definition at line 150 of file AggregationDialog.h.
|
private |
Definition at line 152 of file AggregationDialog.h.
|
private |
Definition at line 145 of file AggregationDialog.h.
Referenced by AggregationDialog().