te::vp::IntersectionDialog Class Reference

A dialog used to execute vector intersection. More...

#include <IntersectionDialog.h>

Inheritance diagram for te::vp::IntersectionDialog:
QDialog

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::DoubleListWidgetm_doubleListWidget
 
te::map::AbstractLayerPtr m_firstSelectedLayer
 First layer selected. More...
 
te::map::AbstractLayerPtr m_layerResult
 Generated Layer. More...
 
std::list< te::map::AbstractLayerPtrm_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
 

Detailed Description

A dialog used to execute vector intersection.

Definition at line 61 of file IntersectionDialog.h.

Constructor & Destructor Documentation

te::vp::IntersectionDialog::IntersectionDialog ( QWidget parent = 0,
Qt::WindowFlags  f = 0 
)
te::vp::IntersectionDialog::~IntersectionDialog ( )
default

Referenced by Q_DECLARE_METATYPE().

Member Function Documentation

te::map::AbstractLayerPtr te::vp::IntersectionDialog::getLayer ( )
std::vector< std::pair< int, std::string > > te::vp::IntersectionDialog::getSelectedProperties ( )
protected
void te::vp::IntersectionDialog::onFirstLayerComboBoxChanged ( int  index)
protectedslot
void te::vp::IntersectionDialog::onSecondLayerComboBoxChanged ( int  index)
protectedslot

Definition at line 191 of file IntersectionDialog.cpp.

References m_secondSelectedLayer, m_ui, and updateDoubleListWidget().

Referenced by updateSecondLayerComboBox().

void te::vp::IntersectionDialog::onTargetDatasourceToolButtonPressed ( )
protectedslot
void te::vp::IntersectionDialog::setLayers ( std::list< te::map::AbstractLayerPtr layers)

Set the layer that can be used.

Parameters
layersList 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().

void te::vp::IntersectionDialog::updateDoubleListWidget ( )
protected
void te::vp::IntersectionDialog::updateFirstLayerComboBox ( )
protected

Definition at line 128 of file IntersectionDialog.cpp.

References m_firstSelectedLayer, m_layers, m_ui, and onFirstLayerComboBoxChanged().

Referenced by setLayers().

void te::vp::IntersectionDialog::updateSecondLayerComboBox ( )
protected

Member Data Documentation

std::unique_ptr<te::qt::widgets::DoubleListWidget> te::vp::IntersectionDialog::m_doubleListWidget
private

Definition at line 112 of file IntersectionDialog.h.

Referenced by getSelectedProperties(), and updateDoubleListWidget().

te::map::AbstractLayerPtr te::vp::IntersectionDialog::m_firstSelectedLayer
private
te::map::AbstractLayerPtr te::vp::IntersectionDialog::m_layerResult
private

Generated Layer.

Definition at line 110 of file IntersectionDialog.h.

Referenced by getLayer(), and onOkPushButtonClicked().

std::list<te::map::AbstractLayerPtr> te::vp::IntersectionDialog::m_layers
private

First layer selected.

Definition at line 105 of file IntersectionDialog.h.

Referenced by setLayers(), updateFirstLayerComboBox(), and updateSecondLayerComboBox().

std::string te::vp::IntersectionDialog::m_outputArchive
private

Archive information.

Definition at line 109 of file IntersectionDialog.h.

te::da::DataSourceInfoPtr te::vp::IntersectionDialog::m_outputDatasource
private

DataSource information.

Definition at line 108 of file IntersectionDialog.h.

Referenced by onOkPushButtonClicked(), and onTargetDatasourceToolButtonPressed().

te::map::AbstractLayerPtr te::vp::IntersectionDialog::m_secondSelectedLayer
private
bool te::vp::IntersectionDialog::m_toFile
private

The documentation for this class was generated from the following files: