#include <VectorToVectorDialog.h>
Public Member Functions | |
| te::map::AbstractLayerPtr | getLayer () |
| Get the generated layer. More... | |
| void | setLayers (std::list< te::map::AbstractLayerPtr > layers) |
| Set the layer that can be used. More... | |
| VectorToVectorDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| ~VectorToVectorDialog () | |
Protected Slots | |
| void | onCancelPushButtonClicked () |
| void | onFromLayerComboBoxCurrentIndexChanged (int index) |
| void | onOkPushButtonClicked () |
| void | onRejectAllComboBoxChanged (int index) |
| void | onSelectAllComboBoxChanged (int index) |
| void | onSelectAttrToolButtonPressed () |
| void | onStatisticsListWidgetItemPressed (QListWidgetItem *item) |
| void | onTargetDatasourceToolButtonPressed () |
| void | onTargetFileToolButtonPressed () |
| void | onToLayerComboBoxCurrentIndexChanged (int index) |
Private Types | |
| typedef std::map< te::stat::StatisticalSummary, std::string > | StaticalSummaryMap |
Private Member Functions | |
| te::map::AbstractLayerPtr | getCurrentFromLayer () |
| te::map::AbstractLayerPtr | getCurrentToLayer () |
| te::gm::GeomType | getCurrentToLayerGeomType () |
| std::map< std::string, std::vector< te::attributefill::OperationType > > | getSelections () |
| bool | isClassType (const int type) |
| bool | isNumProperty (const int type) |
| bool | isPoint (te::gm::GeomType type) |
| bool | isPolygon (te::gm::GeomType type) |
| bool | isValidPropertyType (const int type) |
| void | setFunctionsByLayer (te::map::AbstractLayerPtr layer) |
| void | setStatisticalSummary () |
Private Attributes | |
| std::list< te::map::AbstractLayerPtr > | m_layers |
| List of layers. More... | |
| te::map::AbstractLayerPtr | m_outLayer |
| std::vector< std::string > | m_outputAttributes |
| te::da::DataSourceInfoPtr | m_outputDatasource |
| DataSource information. More... | |
| std::string | m_path |
| Output layer path;. More... | |
| bool | m_toFile |
| std::unique_ptr< Ui::VectorToVectorDialogForm > | m_ui |
| User interface. More... | |
Definition at line 59 of file VectorToVectorDialog.h.
|
private |
Definition at line 132 of file VectorToVectorDialog.h.
| te::attributefill::VectorToVectorDialog::VectorToVectorDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Definition at line 82 of file VectorToVectorDialog.cpp.
References m_ui, onCancelPushButtonClicked(), onFromLayerComboBoxCurrentIndexChanged(), onOkPushButtonClicked(), onRejectAllComboBoxChanged(), onSelectAllComboBoxChanged(), onSelectAttrToolButtonPressed(), onStatisticsListWidgetItemPressed(), onTargetDatasourceToolButtonPressed(), onTargetFileToolButtonPressed(), onToLayerComboBoxCurrentIndexChanged(), setStatisticalSummary(), and ~VectorToVectorDialog().
|
default |
Referenced by VectorToVectorDialog().
|
private |
Definition at line 444 of file VectorToVectorDialog.cpp.
References m_layers, and m_ui.
Referenced by getSelections(), onFromLayerComboBoxCurrentIndexChanged(), and onOkPushButtonClicked().
|
private |
Definition at line 460 of file VectorToVectorDialog.cpp.
References m_layers, and m_ui.
Referenced by getCurrentToLayerGeomType(), onOkPushButtonClicked(), onSelectAttrToolButtonPressed(), and onToLayerComboBoxCurrentIndexChanged().
|
private |
Definition at line 875 of file VectorToVectorDialog.cpp.
References getCurrentToLayer(), te::da::GetFirstSpatialProperty(), te::gm::GeometryProperty::getGeometryType(), and p.
Referenced by setFunctionsByLayer().
| te::map::AbstractLayerPtr te::attributefill::VectorToVectorDialog::getLayer | ( | ) |
Get the generated layer.
Definition at line 149 of file VectorToVectorDialog.cpp.
References m_outLayer.
Referenced by te::qt::plugins::attributefill::VectorToVectorAction::onActionActivated().
|
private |
Definition at line 581 of file VectorToVectorDialog.cpp.
References getCurrentFromLayer(), m_ui, and te::common::Tokenize().
Referenced by onOkPushButtonClicked().
Definition at line 859 of file VectorToVectorDialog.cpp.
References te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, te::dt::STRING_TYPE, te::dt::UINT16_TYPE, te::dt::UINT32_TYPE, and te::dt::UINT64_TYPE.
Referenced by setFunctionsByLayer().
Definition at line 884 of file VectorToVectorDialog.cpp.
References te::dt::CDOUBLE_TYPE, te::dt::CFLOAT_TYPE, te::dt::CINT16_TYPE, te::dt::CINT32_TYPE, te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::dt::INT16_TYPE, te::dt::INT32_TYPE, and te::dt::INT64_TYPE.
Referenced by setFunctionsByLayer().
|
private |
Definition at line 821 of file VectorToVectorDialog.cpp.
References te::gm::MultiPointMType, te::gm::MultiPointType, te::gm::MultiPointZMType, te::gm::MultiPointZType, te::gm::PointMType, te::gm::PointType, te::gm::PointZMType, and te::gm::PointZType.
|
private |
Definition at line 806 of file VectorToVectorDialog.cpp.
References te::gm::MultiPolygonMType, te::gm::MultiPolygonType, te::gm::MultiPolygonZMType, te::gm::MultiPolygonZType, te::gm::PolygonMType, te::gm::PolygonType, te::gm::PolygonZMType, and te::gm::PolygonZType.
Referenced by setFunctionsByLayer().
Definition at line 836 of file VectorToVectorDialog.cpp.
References te::dt::CDOUBLE_TYPE, te::dt::CFLOAT_TYPE, te::dt::CHAR_TYPE, te::dt::CINT16_TYPE, te::dt::CINT32_TYPE, te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, te::dt::NUMERIC_TYPE, te::dt::STRING_TYPE, te::dt::UCHAR_TYPE, te::dt::UINT16_TYPE, te::dt::UINT32_TYPE, and te::dt::UINT64_TYPE.
Referenced by setFunctionsByLayer().
|
protectedslot |
Definition at line 323 of file VectorToVectorDialog.cpp.
Referenced by VectorToVectorDialog().
|
protectedslot |
Definition at line 328 of file VectorToVectorDialog.cpp.
References getCurrentFromLayer(), m_ui, and setFunctionsByLayer().
Referenced by onToLayerComboBoxCurrentIndexChanged(), setLayers(), and VectorToVectorDialog().
|
protectedslot |
Definition at line 154 of file VectorToVectorDialog.cpp.
References ds, dt, te::core::FileSystem::exists(), getCurrentFromLayer(), getCurrentToLayer(), te::da::GetDataSource(), te::common::Singleton< DataSourceManager >::getInstance(), te::common::Singleton< DataSourceInfoManager >::getInstance(), getSelections(), m_outLayer, m_outputAttributes, m_outputDatasource, m_toFile, m_ui, te::da::DataSourceFactory::make(), and te::common::Exception::what().
Referenced by VectorToVectorDialog().
|
protectedslot |
Definition at line 510 of file VectorToVectorDialog.cpp.
References m_ui, and te::common::Tokenize().
Referenced by VectorToVectorDialog().
|
protectedslot |
Definition at line 482 of file VectorToVectorDialog.cpp.
References m_ui, and te::common::Tokenize().
Referenced by VectorToVectorDialog().
|
protectedslot |
Definition at line 900 of file VectorToVectorDialog.cpp.
References d, te::dt::GEOMETRY_TYPE, getCurrentToLayer(), te::qt::widgets::DoubleListWidget::getOutputValues(), m_outputAttributes, te::qt::widgets::DoubleListWidget::setInputValues(), te::qt::widgets::DoubleListWidget::setLeftLabel(), te::qt::widgets::DoubleListWidget::setOutputValues(), and te::qt::widgets::DoubleListWidget::setRightLabel().
Referenced by VectorToVectorDialog().
|
protectedslot |
Definition at line 476 of file VectorToVectorDialog.cpp.
Referenced by VectorToVectorDialog().
|
protectedslot |
Definition at line 538 of file VectorToVectorDialog.cpp.
References te::qt::widgets::DataSourceSelectorDialog::getSelecteds(), m_outputDatasource, m_toFile, and m_ui.
Referenced by VectorToVectorDialog().
|
protectedslot |
Definition at line 559 of file VectorToVectorDialog.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().
Referenced by VectorToVectorDialog().
|
protectedslot |
Definition at line 347 of file VectorToVectorDialog.cpp.
References te::dt::GEOMETRY_TYPE, getCurrentToLayer(), m_outputAttributes, m_ui, and onFromLayerComboBoxCurrentIndexChanged().
Referenced by VectorToVectorDialog().
|
private |
Definition at line 621 of file VectorToVectorDialog.cpp.
References te::attributefill::AMPLITUDE, te::attributefill::COUNT, te::attributefill::COUNT_DISTINCT, ds, getCurrentToLayerGeomType(), te::da::GetFirstGeomProperty(), te::gm::GeometryProperty::getGeometryType(), te::dt::Property::getName(), te::attributefill::GetOperationFullName(), te::dt::Property::getType(), te::attributefill::HIGHEST_INTERSECTION, te::attributefill::HIGHEST_OCCURRENCE, isClassType(), isNumProperty(), isPolygon(), isValidPropertyType(), te::attributefill::KURTOSIS, m_ui, te::attributefill::MAX_VALUE, te::attributefill::MEAN, te::attributefill::MEDIAN, te::attributefill::MIN_DISTANCE, te::attributefill::MIN_DISTANCE_CENTROID, te::attributefill::MIN_VALUE, te::attributefill::MODE, te::attributefill::PERCENT_CLASS, te::attributefill::PERCENT_EACH_CLASS, te::attributefill::PERCENT_TOTAL_AREA, te::attributefill::PRESENCE, te::attributefill::SKEWNESS, te::attributefill::STANDARD_DEVIATION, te::dt::STRING_TYPE, te::attributefill::SUM, te::attributefill::VALID_COUNT, te::attributefill::VALUE, te::attributefill::VAR_COEFF, te::attributefill::VARIANCE, te::attributefill::WEIGHTED, and te::attributefill::WEIGHTED_SUM.
Referenced by onFromLayerComboBoxCurrentIndexChanged().
| void te::attributefill::VectorToVectorDialog::setLayers | ( | std::list< te::map::AbstractLayerPtr > | layers | ) |
Set the layer that can be used.
| layers | List of AbstractLayerPtr |
Definition at line 121 of file VectorToVectorDialog.cpp.
References m_layers, m_ui, and onFromLayerComboBoxCurrentIndexChanged().
Referenced by te::qt::plugins::attributefill::VectorToVectorAction::onActionActivated().
|
private |
Definition at line 385 of file VectorToVectorDialog.cpp.
References te::attributefill::AMPLITUDE, te::attributefill::COUNT, te::attributefill::COUNT_DISTINCT, te::attributefill::GetOperationFullName(), te::attributefill::HIGHEST_INTERSECTION, te::attributefill::HIGHEST_OCCURRENCE, te::attributefill::KURTOSIS, m_ui, te::attributefill::MAX_VALUE, te::attributefill::MEAN, te::attributefill::MEDIAN, te::attributefill::MIN_DISTANCE, te::attributefill::MIN_DISTANCE_CENTROID, te::attributefill::MIN_VALUE, te::attributefill::MODE, te::attributefill::PERCENT_CLASS, te::attributefill::PERCENT_EACH_CLASS, te::attributefill::PERCENT_TOTAL_AREA, te::attributefill::PRESENCE, te::attributefill::SKEWNESS, te::attributefill::STANDARD_DEVIATION, te::attributefill::SUM, te::attributefill::VALID_COUNT, te::attributefill::VALUE, te::attributefill::VAR_COEFF, te::attributefill::VARIANCE, te::attributefill::WEIGHTED, and te::attributefill::WEIGHTED_SUM.
Referenced by VectorToVectorDialog().
|
private |
List of layers.
Definition at line 136 of file VectorToVectorDialog.h.
Referenced by getCurrentFromLayer(), getCurrentToLayer(), and setLayers().
|
private |
Definition at line 138 of file VectorToVectorDialog.h.
Referenced by getLayer(), and onOkPushButtonClicked().
|
private |
Definition at line 137 of file VectorToVectorDialog.h.
Referenced by onOkPushButtonClicked(), onSelectAttrToolButtonPressed(), and onToLayerComboBoxCurrentIndexChanged().
|
private |
DataSource information.
Definition at line 135 of file VectorToVectorDialog.h.
Referenced by onOkPushButtonClicked(), and onTargetDatasourceToolButtonPressed().
|
private |
Output layer path;.
Definition at line 139 of file VectorToVectorDialog.h.
|
private |
Definition at line 140 of file VectorToVectorDialog.h.
Referenced by onOkPushButtonClicked(), onTargetDatasourceToolButtonPressed(), and onTargetFileToolButtonPressed().
|
private |
User interface.
Definition at line 134 of file VectorToVectorDialog.h.
Referenced by getCurrentFromLayer(), getCurrentToLayer(), getSelections(), onFromLayerComboBoxCurrentIndexChanged(), onOkPushButtonClicked(), onRejectAllComboBoxChanged(), onSelectAllComboBoxChanged(), onTargetDatasourceToolButtonPressed(), onTargetFileToolButtonPressed(), onToLayerComboBoxCurrentIndexChanged(), setFunctionsByLayer(), setLayers(), setStatisticalSummary(), and VectorToVectorDialog().