A dialog used to execute vector intersection. More...
#include <IntersectionDialog.h>
Public Member Functions | |
| te::map::AbstractLayerPtr | getLayer () |
| IntersectionDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| void | setLayers (std::list< te::map::AbstractLayerPtr > layers) |
| Set the layer that can be used. More... | |
| ~IntersectionDialog () | |
Protected Slots | |
| void | onFirstLayerComboBoxChanged (int index) |
| void | onOkPushButtonClicked () |
| void | onSecondLayerComboBoxChanged (int index) |
| void | onTargetDatasourceToolButtonPressed () |
| void | onTargetFileToolButtonPressed () |
Protected Member Functions | |
| std::vector< std::pair< int, 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 |
| First layer selected. More... | |
| te::map::AbstractLayerPtr | m_layerResult |
| Generated Layer. More... | |
| std::list< te::map::AbstractLayerPtr > | m_layers |
| First layer selected. More... | |
| std::string | m_outputArchive |
| Archive information. More... | |
| te::da::DataSourceInfoPtr | m_outputDatasource |
| DataSource information. More... | |
| te::map::AbstractLayerPtr | m_secondSelectedLayer |
| Second layer selected. More... | |
| bool | m_toFile |
| std::unique_ptr< Ui::IntersectionDialogForm > | m_ui |
A dialog used to execute vector intersection.
Definition at line 61 of file IntersectionDialog.h.
| te::vp::IntersectionDialog::IntersectionDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
|
default |
Referenced by Q_DECLARE_METATYPE().
| te::map::AbstractLayerPtr te::vp::IntersectionDialog::getLayer | ( | ) |
Definition at line 172 of file IntersectionDialog.cpp.
References m_layerResult.
Referenced by te::qt::plugins::vp::IntersectionAction::onActionActivated().
|
protected |
Definition at line 242 of file IntersectionDialog.cpp.
References te::qt::plugins::wtss::attribute, m_doubleListWidget, and te::common::Tokenize().
Referenced by onOkPushButtonClicked().
|
protectedslot |
Definition at line 177 of file IntersectionDialog.cpp.
References m_firstSelectedLayer, m_ui, updateDoubleListWidget(), and updateSecondLayerComboBox().
Referenced by updateFirstLayerComboBox().
|
protectedslot |
Definition at line 263 of file IntersectionDialog.cpp.
References te::da::AssociateDataSetTypeConverterSRID(), te::da::Expression::clone(), ds, dt, te::core::FileSystem::exists(), te::map::AbstractLayer::getDataSetName(), te::da::GetDataSource(), te::da::Where::getExp(), te::da::ObjectIdSet::getExpressionByInClause(), te::common::Singleton< DataSourceManager >::getInstance(), te::common::Singleton< DataSourceInfoManager >::getInstance(), te::map::QueryLayer::getQuery(), te::da::DataSourceCapabilities::getQueryCapabilities(), getSelectedProperties(), te::map::AbstractLayer::getTitle(), te::da::Select::getWhere(), m_firstSelectedLayer, m_layerResult, m_outputDatasource, m_secondSelectedLayer, m_toFile, m_ui, te::da::DataSourceFactory::make(), te::vp::IntersectionOp::paramsAreValid(), te::vp::IntersectionOp::run(), te::vp::IntersectionOp::setInput(), te::vp::IntersectionOp::setIsFirstQuery(), te::vp::IntersectionOp::setIsSecondQuery(), te::vp::IntersectionOp::setOutput(), te::vp::IntersectionOp::setParams(), te::da::Select::setWhere(), te::da::QueryCapabilities::supportsSpatialSQLDialect(), TE_CORE_LOG_DEBUG, TE_TR, and TE_UNKNOWN_SRS.
|
protectedslot |
Definition at line 191 of file IntersectionDialog.cpp.
References m_secondSelectedLayer, m_ui, and updateDoubleListWidget().
Referenced by updateSecondLayerComboBox().
|
protectedslot |
Definition at line 626 of file IntersectionDialog.cpp.
References te::qt::widgets::DataSourceSelectorDialog::getSelecteds(), m_outputDatasource, m_toFile, and m_ui.
|
protectedslot |
Definition at line 647 of file IntersectionDialog.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::IntersectionDialog::setLayers | ( | std::list< te::map::AbstractLayerPtr > | layers | ) |
Set the layer that can be used.
| layers | List of AbstractLayerPtr |
Definition at line 106 of file IntersectionDialog.cpp.
References m_layers, updateDoubleListWidget(), updateFirstLayerComboBox(), and updateSecondLayerComboBox().
Referenced by te::qt::plugins::vp::IntersectionAction::onActionActivated().
|
protected |
Definition at line 201 of file IntersectionDialog.cpp.
References te::dt::GEOMETRY_TYPE, m_doubleListWidget, m_firstSelectedLayer, and m_secondSelectedLayer.
Referenced by onFirstLayerComboBoxChanged(), onSecondLayerComboBoxChanged(), and setLayers().
|
protected |
Definition at line 128 of file IntersectionDialog.cpp.
References m_firstSelectedLayer, m_layers, m_ui, and onFirstLayerComboBoxChanged().
Referenced by setLayers().
|
protected |
Definition at line 148 of file IntersectionDialog.cpp.
References m_layers, m_secondSelectedLayer, m_ui, and onSecondLayerComboBoxChanged().
Referenced by onFirstLayerComboBoxChanged(), and setLayers().
|
private |
Definition at line 112 of file IntersectionDialog.h.
Referenced by getSelectedProperties(), and updateDoubleListWidget().
|
private |
First layer selected.
Definition at line 106 of file IntersectionDialog.h.
Referenced by onFirstLayerComboBoxChanged(), onOkPushButtonClicked(), updateDoubleListWidget(), and updateFirstLayerComboBox().
|
private |
Generated Layer.
Definition at line 110 of file IntersectionDialog.h.
Referenced by getLayer(), and onOkPushButtonClicked().
|
private |
First layer selected.
Definition at line 105 of file IntersectionDialog.h.
Referenced by setLayers(), updateFirstLayerComboBox(), and updateSecondLayerComboBox().
|
private |
Archive information.
Definition at line 109 of file IntersectionDialog.h.
|
private |
DataSource information.
Definition at line 108 of file IntersectionDialog.h.
Referenced by onOkPushButtonClicked(), and onTargetDatasourceToolButtonPressed().
|
private |
Second layer selected.
Definition at line 107 of file IntersectionDialog.h.
Referenced by onOkPushButtonClicked(), onSecondLayerComboBoxChanged(), updateDoubleListWidget(), and updateSecondLayerComboBox().
|
private |
Definition at line 111 of file IntersectionDialog.h.
Referenced by onOkPushButtonClicked(), onTargetDatasourceToolButtonPressed(), and onTargetFileToolButtonPressed().
|
private |
Definition at line 104 of file IntersectionDialog.h.
Referenced by onFirstLayerComboBoxChanged(), onOkPushButtonClicked(), onSecondLayerComboBoxChanged(), onTargetDatasourceToolButtonPressed(), onTargetFileToolButtonPressed(), updateFirstLayerComboBox(), and updateSecondLayerComboBox().