te::vp::DifferenceDialog Class Reference

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

#include <DifferenceDialog.h>

Inheritance diagram for te::vp::DifferenceDialog:
QDialog

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::DoubleListWidgetm_doubleListWidget
 
std::vector< te::vp::InputParamsm_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::AbstractLayerPtrm_layers
 The vector layers in Layer Explorer. More...
 
te::da::DataSourceInfoPtr m_outputDatasource
 DataSource information. More...
 
te::vp::AlgorithmParamsm_params
 Algorithm parameters. More...
 
bool m_toFile
 The result is in a file? More...
 
std::unique_ptr< Ui::DifferenceDialogForm > m_ui
 

Detailed Description

A dialog used to execute vector difference.

Definition at line 62 of file DifferenceDialog.h.

Constructor & Destructor Documentation

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

Referenced by Q_DECLARE_METATYPE().

Member Function Documentation

te::map::AbstractLayerPtr te::vp::DifferenceDialog::getLayer ( )
std::vector< std::string > te::vp::DifferenceDialog::getSelectedProperties ( )
protected

Definition at line 145 of file DifferenceDialog.cpp.

References m_doubleListWidget, and te::common::Tokenize().

Referenced by onOkPushButtonClicked().

bool te::vp::DifferenceDialog::isCollection ( )
protected

Definition at line 161 of file DifferenceDialog.cpp.

References m_ui.

Referenced by onOkPushButtonClicked().

void te::vp::DifferenceDialog::onCancelPushButtonClicked ( )
protectedslot

Definition at line 653 of file DifferenceDialog.cpp.

void te::vp::DifferenceDialog::onDifferenceLayerComboBoxChanged ( int  index)
protectedslot

Definition at line 256 of file DifferenceDialog.cpp.

References m_differenceSelectedLayer, and m_ui.

Referenced by updateDifferenceLayerComboBox().

void te::vp::DifferenceDialog::onInputLayerComboBoxChanged ( int  index)
protectedslot
void te::vp::DifferenceDialog::onTargetDatasourceToolButtonPressed ( )
protectedslot
void te::vp::DifferenceDialog::setLayers ( std::list< te::map::AbstractLayerPtr layers)

Set the layer that can be used.

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

void te::vp::DifferenceDialog::updateDifferenceLayerComboBox ( )
protected
void te::vp::DifferenceDialog::updateDoubleListWidget ( )
protected
void te::vp::DifferenceDialog::updateInputLayerComboBox ( )
protected

Definition at line 169 of file DifferenceDialog.cpp.

References m_inputSelectedLayer, m_layers, m_ui, and onInputLayerComboBoxChanged().

Referenced by setLayers().

Member Data Documentation

te::map::AbstractLayerPtr te::vp::DifferenceDialog::m_differenceSelectedLayer
private
std::unique_ptr<te::qt::widgets::DoubleListWidget> te::vp::DifferenceDialog::m_doubleListWidget
private
std::vector<te::vp::InputParams> te::vp::DifferenceDialog::m_inputParams
private

A vector of input parameters.

Definition at line 128 of file DifferenceDialog.h.

Referenced by onOkPushButtonClicked().

te::map::AbstractLayerPtr te::vp::DifferenceDialog::m_inputSelectedLayer
private
te::map::AbstractLayerPtr te::vp::DifferenceDialog::m_layerResult
private

Generated Layer.

Definition at line 132 of file DifferenceDialog.h.

Referenced by getLayer(), and onOkPushButtonClicked().

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

The vector layers in Layer Explorer.

Definition at line 124 of file DifferenceDialog.h.

Referenced by setLayers(), updateDifferenceLayerComboBox(), and updateInputLayerComboBox().

te::da::DataSourceInfoPtr te::vp::DifferenceDialog::m_outputDatasource
private

DataSource information.

Definition at line 131 of file DifferenceDialog.h.

Referenced by onOkPushButtonClicked(), and onTargetDatasourceToolButtonPressed().

te::vp::AlgorithmParams* te::vp::DifferenceDialog::m_params
private

Algorithm parameters.

Definition at line 129 of file DifferenceDialog.h.

Referenced by onOkPushButtonClicked().

bool te::vp::DifferenceDialog::m_toFile
private

The result is in a file?

Definition at line 134 of file DifferenceDialog.h.

Referenced by onOkPushButtonClicked(), onTargetDatasourceToolButtonPressed(), and onTargetFileToolButtonPressed().


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