This class is GUI used to define the wizard for the VP geometric operation. More...
#include <GeometricOpDialog.h>
Public Member Functions | |
| void | enableOperations (te::gm::GeomType type) |
| GeometricOpDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| te::map::AbstractLayerPtr | getInLayer () |
| te::vp::GeometricOpObjStrategy | getObjectStrategy () |
| std::vector< te::map::AbstractLayerPtr > | getOutLayer () |
| bool | hasArea () |
| bool | hasCentroid () |
| bool | hasConvexHull () |
| bool | hasLine () |
| bool | hasMBR () |
| bool | hasPerimeter () |
| void | setLayers (std::list< te::map::AbstractLayerPtr > layers) |
| ~GeometricOpDialog () | |
Protected Slots | |
| void | onAllLayerOperationToggled () |
| void | onAllObjectsToggled () |
| void | onAttributeComboBoxChanged (int index) |
| void | onAttributeOperationToggled () |
| void | onCancelPushButtonClicked () |
| void | onLayerComboBoxChanged (int index) |
| void | onOkPushButtonClicked () |
| void | onSrsToolButtonClicked () |
| void | onTargetDatasourceToolButtonPressed () |
| void | onTargetFileToolButtonPressed () |
Private Attributes | |
| std::string | m_attribute |
| Properties related to the selected Layer to do the dissolve before operation. More... | |
| std::list< te::map::AbstractLayerPtr > | m_layers |
| List of layers. More... | |
| int | m_newSRID |
| newSRID to compure tabular operations (Area, Perimeter, Line). More... | |
| std::vector< te::vp::GeometricOperation > | m_ops |
| Operations selected to be executed. More... | |
| te::da::DataSourceInfoPtr | m_outputDatasource |
| DataSource information. More... | |
| std::vector< te::map::AbstractLayerPtr > | m_outputLayer |
| Generated Layer. More... | |
| te::map::AbstractLayerPtr | m_selectedLayer |
| Selected layer to operation. More... | |
| bool | m_toFile |
| Flag to indicate if the output will be stored in a file. More... | |
| std::unique_ptr< Ui::GeometricOpDialogForm > | m_ui |
| Qt Dialog Form. More... | |
This class is GUI used to define the wizard for the VP geometric operation.
Definition at line 57 of file GeometricOpDialog.h.
| te::vp::GeometricOpDialog::GeometricOpDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Definition at line 79 of file GeometricOpDialog.cpp.
References m_outputDatasource, m_ui, onAllLayerOperationToggled(), onAllObjectsToggled(), onAttributeComboBoxChanged(), onAttributeOperationToggled(), onCancelPushButtonClicked(), onLayerComboBoxChanged(), onOkPushButtonClicked(), onSrsToolButtonClicked(), onTargetDatasourceToolButtonPressed(), onTargetFileToolButtonPressed(), and ~GeometricOpDialog().
|
default |
Referenced by GeometricOpDialog().
| void te::vp::GeometricOpDialog::enableOperations | ( | te::gm::GeomType | type | ) |
Definition at line 201 of file GeometricOpDialog.cpp.
References te::gm::LineStringMType, te::gm::LineStringType, te::gm::LineStringZMType, te::gm::LineStringZType, m_ui, te::gm::MultiLineStringMType, te::gm::MultiLineStringType, te::gm::MultiLineStringZMType, te::gm::MultiLineStringZType, te::gm::MultiPointMType, te::gm::MultiPointType, te::gm::MultiPointZMType, te::gm::MultiPointZType, te::gm::PointKdType, te::gm::PointMType, te::gm::PointType, te::gm::PointZMType, and te::gm::PointZType.
Referenced by onLayerComboBoxChanged().
| te::map::AbstractLayerPtr te::vp::GeometricOpDialog::getInLayer | ( | ) |
Definition at line 161 of file GeometricOpDialog.cpp.
References m_selectedLayer.
| te::vp::GeometricOpObjStrategy te::vp::GeometricOpDialog::getObjectStrategy | ( | ) |
Definition at line 249 of file GeometricOpDialog.cpp.
References te::vp::AGGREG_BY_ATTRIBUTE, te::vp::AGGREG_OBJ, te::vp::ALL_OBJ, and m_ui.
Referenced by onOkPushButtonClicked().
| std::vector< te::map::AbstractLayerPtr > te::vp::GeometricOpDialog::getOutLayer | ( | ) |
Definition at line 166 of file GeometricOpDialog.cpp.
References m_outputLayer.
Referenced by te::qt::plugins::vp::GeometricOpAction::onActionActivated().
| bool te::vp::GeometricOpDialog::hasArea | ( | ) |
Definition at line 186 of file GeometricOpDialog.cpp.
References m_ui.
Referenced by onOkPushButtonClicked().
| bool te::vp::GeometricOpDialog::hasCentroid | ( | ) |
Definition at line 176 of file GeometricOpDialog.cpp.
References m_ui.
Referenced by onOkPushButtonClicked().
| bool te::vp::GeometricOpDialog::hasConvexHull | ( | ) |
Definition at line 171 of file GeometricOpDialog.cpp.
References m_ui.
Referenced by onOkPushButtonClicked().
| bool te::vp::GeometricOpDialog::hasLine | ( | ) |
Definition at line 191 of file GeometricOpDialog.cpp.
References m_ui.
Referenced by onOkPushButtonClicked().
| bool te::vp::GeometricOpDialog::hasMBR | ( | ) |
Definition at line 181 of file GeometricOpDialog.cpp.
References m_ui.
Referenced by onOkPushButtonClicked().
| bool te::vp::GeometricOpDialog::hasPerimeter | ( | ) |
Definition at line 196 of file GeometricOpDialog.cpp.
References m_ui.
Referenced by onOkPushButtonClicked().
|
protectedslot |
Definition at line 337 of file GeometricOpDialog.cpp.
References m_ui, and onAttributeComboBoxChanged().
Referenced by GeometricOpDialog().
|
protectedslot |
Definition at line 331 of file GeometricOpDialog.cpp.
References m_ui, and onAttributeComboBoxChanged().
Referenced by GeometricOpDialog().
|
protectedslot |
Definition at line 323 of file GeometricOpDialog.cpp.
References m_attribute, and m_ui.
Referenced by GeometricOpDialog(), onAllLayerOperationToggled(), and onAllObjectsToggled().
|
protectedslot |
Definition at line 343 of file GeometricOpDialog.cpp.
References m_ui.
Referenced by GeometricOpDialog().
|
protectedslot |
Definition at line 752 of file GeometricOpDialog.cpp.
Referenced by GeometricOpDialog().
|
protectedslot |
Definition at line 261 of file GeometricOpDialog.cpp.
References enableOperations(), te::dt::GEOMETRY_TYPE, te::gm::GeometryProperty::getGeometryType(), te::common::Singleton< SpatialReferenceSystemManager >::getInstance(), m_layers, m_newSRID, m_selectedLayer, and m_ui.
Referenced by GeometricOpDialog().
|
protectedslot |
Definition at line 391 of file GeometricOpDialog.cpp.
References te::vp::AGGREG_BY_ATTRIBUTE, te::vp::AREA, te::da::AssociateDataSetTypeConverterSRID(), te::vp::CENTROID, te::vp::CONVEX_HULL, ds, dt, te::core::FileSystem::exists(), te::map::AbstractLayer::getDataSetName(), te::da::GetDataSource(), te::map::AbstractLayer::getDataSourceId(), te::common::Singleton< DataSourceInfoManager >::getInstance(), te::common::Singleton< DataSourceManager >::getInstance(), getObjectStrategy(), te::vp::GeometricOp::GetOutputDSetNames(), te::da::DataSourceCapabilities::getQueryCapabilities(), te::map::DataSetLayer::getSchema(), te::map::AbstractLayer::getSRID(), hasArea(), hasCentroid(), hasConvexHull(), hasLine(), hasMBR(), hasPerimeter(), te::vp::IsProjectionLatLong(), te::vp::LINE, m_attribute, m_newSRID, m_ops, m_outputDatasource, m_outputLayer, m_selectedLayer, m_toFile, m_ui, te::da::DataSourceFactory::make(), te::vp::MBR, te::vp::GeometricOp::paramsAreValid(), te::vp::PERIMETER, te::vp::GeometricOp::run(), te::vp::GeometricOp::setInput(), te::vp::GeometricOp::setOutput(), te::vp::GeometricOp::setParams(), te::da::DataSourceCapabilities::supportsPreparedQueryAPI(), te::da::QueryCapabilities::supportsSpatialSQLDialect(), and TE_CORE_LOG_DEBUG.
Referenced by GeometricOpDialog().
|
protectedslot |
Definition at line 757 of file GeometricOpDialog.cpp.
References te::common::Singleton< SpatialReferenceSystemManager >::getInstance(), te::qt::widgets::SRSManagerDialog::getSelectedSRS(), m_newSRID, and m_ui.
Referenced by GeometricOpDialog().
|
protectedslot |
Definition at line 348 of file GeometricOpDialog.cpp.
References te::qt::widgets::DataSourceSelectorDialog::getSelecteds(), m_outputDatasource, m_toFile, and m_ui.
Referenced by GeometricOpDialog().
|
protectedslot |
Definition at line 369 of file GeometricOpDialog.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 GeometricOpDialog().
| void te::vp::GeometricOpDialog::setLayers | ( | std::list< te::map::AbstractLayerPtr > | layers | ) |
Definition at line 142 of file GeometricOpDialog.cpp.
References m_layers, and m_ui.
Referenced by te::qt::plugins::vp::GeometricOpAction::onActionActivated().
|
private |
Properties related to the selected Layer to do the dissolve before operation.
Definition at line 120 of file GeometricOpDialog.h.
Referenced by onAttributeComboBoxChanged(), and onOkPushButtonClicked().
|
private |
List of layers.
Definition at line 115 of file GeometricOpDialog.h.
Referenced by onLayerComboBoxChanged(), and setLayers().
|
private |
newSRID to compure tabular operations (Area, Perimeter, Line).
Definition at line 122 of file GeometricOpDialog.h.
Referenced by onLayerComboBoxChanged(), onOkPushButtonClicked(), and onSrsToolButtonClicked().
|
private |
Operations selected to be executed.
Definition at line 119 of file GeometricOpDialog.h.
Referenced by onOkPushButtonClicked().
|
private |
DataSource information.
Definition at line 117 of file GeometricOpDialog.h.
Referenced by GeometricOpDialog(), onOkPushButtonClicked(), and onTargetDatasourceToolButtonPressed().
|
private |
Generated Layer.
Definition at line 118 of file GeometricOpDialog.h.
Referenced by getOutLayer(), and onOkPushButtonClicked().
|
private |
Selected layer to operation.
Definition at line 116 of file GeometricOpDialog.h.
Referenced by getInLayer(), onLayerComboBoxChanged(), and onOkPushButtonClicked().
|
private |
Flag to indicate if the output will be stored in a file.
Definition at line 121 of file GeometricOpDialog.h.
Referenced by onOkPushButtonClicked(), onTargetDatasourceToolButtonPressed(), and onTargetFileToolButtonPressed().
|
private |
Qt Dialog Form.
Definition at line 113 of file GeometricOpDialog.h.
Referenced by enableOperations(), GeometricOpDialog(), getObjectStrategy(), hasArea(), hasCentroid(), hasConvexHull(), hasLine(), hasMBR(), hasPerimeter(), onAllLayerOperationToggled(), onAllObjectsToggled(), onAttributeComboBoxChanged(), onAttributeOperationToggled(), onLayerComboBoxChanged(), onOkPushButtonClicked(), onSrsToolButtonClicked(), onTargetDatasourceToolButtonPressed(), onTargetFileToolButtonPressed(), and setLayers().