A dialog used to execute vector difference. More...
#include <DifferenceDialog.h>
Classes | |
| struct | DataStruct |
Public Member Functions | |
| DifferenceDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| te::map::AbstractLayerPtr | getLayer () |
| void | setLayers (std::list< te::map::AbstractLayerPtr > layers) |
| Set the layer that can be used. More... | |
| ~DifferenceDialog () | |
Protected Slots | |
| void | onCancelPushButtonClicked () |
| void | onDifferenceLayerComboBoxChanged (int index) |
| void | onInputLayerComboBoxChanged (int index) |
| void | onOkPushButtonClicked () |
| void | onTargetDatasourceToolButtonPressed () |
| void | onTargetFileToolButtonPressed () |
Protected Member Functions | |
| std::vector< std::string > | getSelectedProperties () |
| bool | isCollection () |
| void | updateDifferenceLayerComboBox () |
| void | updateDoubleListWidget () |
| void | updateInputLayerComboBox () |
Private Attributes | |
| te::map::AbstractLayerPtr | m_differenceSelectedLayer |
| Difference layer selected. More... | |
| std::unique_ptr< te::qt::widgets::DoubleListWidget > | m_doubleListWidget |
| std::vector< te::vp::InputParams > | m_inputParams |
| A vector of input parameters. More... | |
| te::map::AbstractLayerPtr | m_inputSelectedLayer |
| Input layer selected. More... | |
| te::map::AbstractLayerPtr | m_layerResult |
| Generated Layer. More... | |
| std::list< te::map::AbstractLayerPtr > | m_layers |
| The vector layers in Layer Explorer. More... | |
| te::da::DataSourceInfoPtr | m_outputDatasource |
| DataSource information. More... | |
| te::vp::AlgorithmParams * | m_params |
| Algorithm parameters. More... | |
| bool | m_toFile |
| The result is in a file? More... | |
| std::unique_ptr< Ui::DifferenceDialogForm > | m_ui |
A dialog used to execute vector difference.
Definition at line 62 of file DifferenceDialog.h.
| te::vp::DifferenceDialog::DifferenceDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
|
default |
Referenced by Q_DECLARE_METATYPE().
| te::map::AbstractLayerPtr te::vp::DifferenceDialog::getLayer | ( | ) |
Definition at line 140 of file DifferenceDialog.cpp.
References m_layerResult.
Referenced by te::qt::plugins::vp::DifferenceAction::onActionActivated().
|
protected |
Definition at line 145 of file DifferenceDialog.cpp.
References m_doubleListWidget, and te::common::Tokenize().
Referenced by onOkPushButtonClicked().
|
protected |
Definition at line 161 of file DifferenceDialog.cpp.
References m_ui.
Referenced by onOkPushButtonClicked().
|
protectedslot |
Definition at line 653 of file DifferenceDialog.cpp.
|
protectedslot |
Definition at line 256 of file DifferenceDialog.cpp.
References m_differenceSelectedLayer, and m_ui.
Referenced by updateDifferenceLayerComboBox().
|
protectedslot |
Definition at line 241 of file DifferenceDialog.cpp.
References m_doubleListWidget, m_inputSelectedLayer, m_ui, updateDifferenceLayerComboBox(), and updateDoubleListWidget().
Referenced by updateInputLayerComboBox().
|
protectedslot |
Definition at line 308 of file DifferenceDialog.cpp.
References te::common::Convert2LCase(), difference(), ds, dt, te::vp::Difference::executeMemory(), te::vp::Difference::executeQuery(), te::core::FileSystem::exists(), te::da::GetDataSource(), te::vp::GetDataStructFromLayer(), te::da::GetFirstGeomProperty(), te::common::Singleton< DataSourceManager >::getInstance(), te::common::Singleton< DataSourceInfoManager >::getInstance(), te::da::DataSourceCapabilities::getQueryCapabilities(), getSelectedProperties(), te::vp::GetSelectQueryFromLayer(), te::gm::GeometryProperty::getSRID(), isCollection(), te::vp::DataStruct::m_dataSet, te::vp::DataStruct::m_dataSetType, m_differenceSelectedLayer, te::vp::InputParams::m_inputDataSet, te::vp::InputParams::m_inputDataSetType, te::vp::InputParams::m_inputDataSource, m_inputParams, te::vp::InputParams::m_inputQuery, m_inputSelectedLayer, m_layerResult, m_outputDatasource, m_params, m_toFile, m_ui, te::da::DataSourceFactory::make(), te::vp::AlgorithmParams::setInputParams(), te::vp::AlgorithmParams::setOutputDataSetName(), te::vp::AlgorithmParams::setOutputDataSource(), te::vp::AlgorithmParams::setSpecificParams(), te::da::QueryCapabilities::supportsSpatialSQLDialect(), TE_LOG_ERROR, TE_TR, and TE_UNKNOWN_SRS.
|
protectedslot |
Definition at line 264 of file DifferenceDialog.cpp.
References te::qt::widgets::DataSourceSelectorDialog::getSelecteds(), m_outputDatasource, m_toFile, and m_ui.
|
protectedslot |
Definition at line 285 of file DifferenceDialog.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::VECTOR, and te::common::Exception::what().
| void te::vp::DifferenceDialog::setLayers | ( | std::list< te::map::AbstractLayerPtr > | layers | ) |
Set the layer that can be used.
| layers | List of AbstractLayerPtr |
Definition at line 118 of file DifferenceDialog.cpp.
References m_layers, updateDifferenceLayerComboBox(), updateDoubleListWidget(), and updateInputLayerComboBox().
Referenced by te::qt::plugins::vp::DifferenceAction::onActionActivated().
|
protected |
Definition at line 189 of file DifferenceDialog.cpp.
References m_differenceSelectedLayer, m_layers, m_ui, and onDifferenceLayerComboBoxChanged().
Referenced by onInputLayerComboBoxChanged(), and setLayers().
|
protected |
Definition at line 213 of file DifferenceDialog.cpp.
References te::dt::GEOMETRY_TYPE, m_doubleListWidget, and m_inputSelectedLayer.
Referenced by onInputLayerComboBoxChanged(), and setLayers().
|
protected |
Definition at line 169 of file DifferenceDialog.cpp.
References m_inputSelectedLayer, m_layers, m_ui, and onInputLayerComboBoxChanged().
Referenced by setLayers().
|
private |
Difference layer selected.
Definition at line 126 of file DifferenceDialog.h.
Referenced by onDifferenceLayerComboBoxChanged(), onOkPushButtonClicked(), and updateDifferenceLayerComboBox().
|
private |
Definition at line 136 of file DifferenceDialog.h.
Referenced by getSelectedProperties(), onInputLayerComboBoxChanged(), and updateDoubleListWidget().
|
private |
A vector of input parameters.
Definition at line 128 of file DifferenceDialog.h.
Referenced by onOkPushButtonClicked().
|
private |
Input layer selected.
Definition at line 125 of file DifferenceDialog.h.
Referenced by onInputLayerComboBoxChanged(), onOkPushButtonClicked(), updateDoubleListWidget(), and updateInputLayerComboBox().
|
private |
Generated Layer.
Definition at line 132 of file DifferenceDialog.h.
Referenced by getLayer(), and onOkPushButtonClicked().
|
private |
The vector layers in Layer Explorer.
Definition at line 124 of file DifferenceDialog.h.
Referenced by setLayers(), updateDifferenceLayerComboBox(), and updateInputLayerComboBox().
|
private |
DataSource information.
Definition at line 131 of file DifferenceDialog.h.
Referenced by onOkPushButtonClicked(), and onTargetDatasourceToolButtonPressed().
|
private |
Algorithm parameters.
Definition at line 129 of file DifferenceDialog.h.
Referenced by onOkPushButtonClicked().
|
private |
The result is in a file?
Definition at line 134 of file DifferenceDialog.h.
Referenced by onOkPushButtonClicked(), onTargetDatasourceToolButtonPressed(), and onTargetFileToolButtonPressed().
|
private |
Definition at line 123 of file DifferenceDialog.h.
Referenced by isCollection(), onDifferenceLayerComboBoxChanged(), onInputLayerComboBoxChanged(), onOkPushButtonClicked(), onTargetDatasourceToolButtonPressed(), onTargetFileToolButtonPressed(), updateDifferenceLayerComboBox(), and updateInputLayerComboBox().