A dialog used to execute vector union. More...
#include <UnionDialog.h>
Classes | |
| struct | DataStruct |
Public Member Functions | |
| te::map::AbstractLayerPtr | getLayer () |
| void | setLayers (std::list< te::map::AbstractLayerPtr > layers) |
| Set the layer that can be used. More... | |
| UnionDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| ~UnionDialog () | |
Protected Slots | |
| void | onCancelPushButtonClicked () |
| void | onFirstLayerComboBoxChanged (int index) |
| void | onOkPushButtonClicked () |
| void | onSecondLayerComboBoxChanged (int index) |
| void | onTargetDatasourceToolButtonPressed () |
| void | onTargetFileToolButtonPressed () |
Protected Member Functions | |
| std::vector< std::pair< std::string, std::string > > | getSelectedProperties () |
| void | updateDoubleListWidget () |
| void | updateFirstLayerComboBox () |
| void | updateSecondLayerComboBox () |
Private Attributes | |
| std::unique_ptr< te::qt::widgets::DoubleListWidget > | m_doubleListWidget |
| te::map::AbstractLayerPtr | m_firstSelectedLayer |
| Input layer selected. More... | |
| std::vector< te::vp::InputParams > | m_inputParams |
| A vector of input parameters. More... | |
| std::list< te::map::AbstractLayerPtr > | m_layers |
| The vector layers in Layer Explorer. More... | |
| te::da::DataSourceInfoPtr | m_outputDatasource |
| DataSource information. More... | |
| te::map::AbstractLayerPtr | m_outputLayer |
| Generated Layer. More... | |
| te::vp::AlgorithmParams * | m_params |
| Algorithm parameters. More... | |
| te::map::AbstractLayerPtr | m_secondSelectedLayer |
| Union layer selected. More... | |
| bool | m_toFile |
| The result is in a file? More... | |
| std::unique_ptr< Ui::UnionDialogForm > | m_ui |
A dialog used to execute vector union.
Definition at line 62 of file UnionDialog.h.
| te::vp::UnionDialog::UnionDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
|
default |
Referenced by Q_DECLARE_METATYPE().
| te::map::AbstractLayerPtr te::vp::UnionDialog::getLayer | ( | ) |
Definition at line 148 of file UnionDialog.cpp.
References m_outputLayer.
Referenced by te::qt::plugins::vp::UnionAction::onActionActivated().
|
protected |
Definition at line 154 of file UnionDialog.cpp.
References m_doubleListWidget, m_firstSelectedLayer, p, te::gm::CurvePolygon::push_back(), and te::common::Tokenize().
Referenced by onOkPushButtonClicked().
|
protectedslot |
Definition at line 576 of file UnionDialog.cpp.
|
protectedslot |
Definition at line 286 of file UnionDialog.cpp.
References m_firstSelectedLayer, m_ui, updateDoubleListWidget(), and updateSecondLayerComboBox().
Referenced by updateFirstLayerComboBox().
|
protectedslot |
Definition at line 355 of file UnionDialog.cpp.
References te::da::AssociateDataSetTypeConverterSRID(), te::da::CreateAdapter(), ds, dt, te::vp::Union::executeMemory(), te::core::FileSystem::exists(), te::da::GetDataSource(), te::common::Singleton< DataSourceManager >::getInstance(), te::common::Singleton< DataSourceInfoManager >::getInstance(), getSelectedProperties(), m_firstSelectedLayer, te::vp::InputParams::m_inputDataSet, te::vp::InputParams::m_inputDataSetType, te::vp::InputParams::m_inputDataSource, m_outputDatasource, m_outputLayer, m_secondSelectedLayer, m_toFile, m_ui, te::da::DataSourceFactory::make(), and te::common::Exception::what().
|
protectedslot |
Definition at line 300 of file UnionDialog.cpp.
References m_secondSelectedLayer, m_ui, and updateDoubleListWidget().
Referenced by updateSecondLayerComboBox().
|
protectedslot |
Definition at line 312 of file UnionDialog.cpp.
References te::qt::widgets::DataSourceSelectorDialog::getSelecteds(), m_outputDatasource, m_toFile, and m_ui.
|
protectedslot |
Definition at line 333 of file UnionDialog.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::UnionDialog::setLayers | ( | std::list< te::map::AbstractLayerPtr > | layers | ) |
Set the layer that can be used.
| layers | List of AbstractLayerPtr |
Definition at line 124 of file UnionDialog.cpp.
References m_layers, updateDoubleListWidget(), updateFirstLayerComboBox(), and updateSecondLayerComboBox().
Referenced by te::qt::plugins::vp::UnionAction::onActionActivated().
|
protected |
Definition at line 237 of file UnionDialog.cpp.
References te::dt::GEOMETRY_TYPE, m_doubleListWidget, m_firstSelectedLayer, and m_secondSelectedLayer.
Referenced by onFirstLayerComboBoxChanged(), onSecondLayerComboBoxChanged(), and setLayers().
|
protected |
Definition at line 183 of file UnionDialog.cpp.
References m_firstSelectedLayer, m_layers, m_ui, and onFirstLayerComboBoxChanged().
Referenced by setLayers().
|
protected |
Definition at line 208 of file UnionDialog.cpp.
References m_layers, m_secondSelectedLayer, m_ui, and onSecondLayerComboBoxChanged().
Referenced by onFirstLayerComboBoxChanged(), and setLayers().
|
private |
Definition at line 133 of file UnionDialog.h.
Referenced by getSelectedProperties(), and updateDoubleListWidget().
|
private |
Input layer selected.
Definition at line 122 of file UnionDialog.h.
Referenced by getSelectedProperties(), onFirstLayerComboBoxChanged(), onOkPushButtonClicked(), updateDoubleListWidget(), and updateFirstLayerComboBox().
|
private |
A vector of input parameters.
Definition at line 125 of file UnionDialog.h.
|
private |
The vector layers in Layer Explorer.
Definition at line 121 of file UnionDialog.h.
Referenced by setLayers(), updateFirstLayerComboBox(), and updateSecondLayerComboBox().
|
private |
DataSource information.
Definition at line 128 of file UnionDialog.h.
Referenced by onOkPushButtonClicked(), and onTargetDatasourceToolButtonPressed().
|
private |
Generated Layer.
Definition at line 129 of file UnionDialog.h.
Referenced by getLayer(), and onOkPushButtonClicked().
|
private |
Algorithm parameters.
Definition at line 126 of file UnionDialog.h.
|
private |
Union layer selected.
Definition at line 123 of file UnionDialog.h.
Referenced by onOkPushButtonClicked(), onSecondLayerComboBoxChanged(), updateDoubleListWidget(), and updateSecondLayerComboBox().
|
private |
The result is in a file?
Definition at line 131 of file UnionDialog.h.
Referenced by onOkPushButtonClicked(), onTargetDatasourceToolButtonPressed(), and onTargetFileToolButtonPressed().
|
private |
Definition at line 120 of file UnionDialog.h.
Referenced by onFirstLayerComboBoxChanged(), onOkPushButtonClicked(), onSecondLayerComboBoxChanged(), onTargetDatasourceToolButtonPressed(), onTargetFileToolButtonPressed(), updateFirstLayerComboBox(), and updateSecondLayerComboBox().