#include <BufferDialog.h>
Public Member Functions | |
| BufferDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| int | getBoundariesRule () |
| te::map::AbstractLayerPtr | getLayer () |
| int | getPolygonRule () |
| void | setAttributesForDistance (std::vector< te::dt::Property * > properties) |
| void | setLayers (std::list< te::map::AbstractLayerPtr > layers) |
| Set the layer that can be used. More... | |
| void | setPossibleLevels () |
| ~BufferDialog () | |
Protected Slots | |
| void | onAttDistanceToggled () |
| void | onCancelPushButtonClicked () |
| void | onFixedDistanceToggled () |
| void | onLayerComboBoxChanged (int index) |
| void | onOkPushButtonClicked () |
| void | onRuleInOutToggled () |
| void | onRuleInToggled () |
| void | onRuleOutToggled () |
| void | onSrsToolButtonClicked () |
| void | onTargetDatasourceToolButtonPressed () |
| void | onTargetFileToolButtonPressed () |
| void | onWithBoundToggled () |
| void | onWithoutBoundToggled () |
Private Attributes | |
| std::list< te::map::AbstractLayerPtr > | m_layers |
| List of layers. More... | |
| int | m_newSRID |
| newSRID to compure buffer Area. More... | |
| std::string | m_outputArchive |
| Archive information. More... | |
| te::da::DataSourceInfoPtr | m_outputDatasource |
| DataSource information. More... | |
| te::map::AbstractLayerPtr | m_outputLayer |
| Generated Layer. More... | |
| std::vector< te::dt::Property * > | m_properties |
| Properties related to the selected Layer. More... | |
| te::map::AbstractLayerPtr | m_selectedLayer |
| Layer used for buffer. More... | |
| bool | m_toFile |
| std::unique_ptr< Ui::BufferDialogForm > | m_ui |
Definition at line 59 of file BufferDialog.h.
| te::vp::BufferDialog::BufferDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Definition at line 80 of file BufferDialog.cpp.
References m_ui, onAttDistanceToggled(), onCancelPushButtonClicked(), onFixedDistanceToggled(), onLayerComboBoxChanged(), onOkPushButtonClicked(), onRuleInOutToggled(), onRuleInToggled(), onRuleOutToggled(), onSrsToolButtonClicked(), onTargetDatasourceToolButtonPressed(), onTargetFileToolButtonPressed(), onWithBoundToggled(), onWithoutBoundToggled(), setPossibleLevels(), and ~BufferDialog().
|
default |
Referenced by BufferDialog().
| int te::vp::BufferDialog::getBoundariesRule | ( | ) |
Definition at line 192 of file BufferDialog.cpp.
References te::vp::DISSOLVE, m_ui, and te::vp::NOT_DISSOLVE.
Referenced by onOkPushButtonClicked().
| te::map::AbstractLayerPtr te::vp::BufferDialog::getLayer | ( | ) |
Definition at line 200 of file BufferDialog.cpp.
References m_outputLayer.
Referenced by te::qt::plugins::vp::BufferAction::onActionActivated().
| int te::vp::BufferDialog::getPolygonRule | ( | ) |
Definition at line 182 of file BufferDialog.cpp.
References te::vp::INSIDE_OUTSIDE, m_ui, te::vp::ONLY_INSIDE, and te::vp::ONLY_OUTSIDE.
Referenced by onOkPushButtonClicked().
|
protectedslot |
|
protectedslot |
Definition at line 686 of file BufferDialog.cpp.
Referenced by BufferDialog().
|
protectedslot |
|
protectedslot |
Definition at line 205 of file BufferDialog.cpp.
References te::common::Clone(), te::common::FreeContents(), te::map::AbstractLayer::getDataSetName(), te::da::GetDataSetType(), te::da::GetDataSource(), te::map::AbstractLayer::getDataSourceId(), te::da::GetFirstGeomProperty(), te::gm::Geometry::getGeomTypeString(), te::common::Singleton< SpatialReferenceSystemManager >::getInstance(), te::map::AbstractLayer::getSRID(), te::gm::LineStringType, m_layers, m_newSRID, m_properties, m_selectedLayer, m_ui, te::gm::MultiLineStringType, te::gm::MultiPointType, te::gm::MultiPolygonType, onRuleOutToggled(), te::gm::PointType, te::gm::PolygonType, and setAttributesForDistance().
Referenced by BufferDialog().
|
protectedslot |
Definition at line 426 of file BufferDialog.cpp.
References te::da::AssociateDataSetTypeConverterSRID(), ds, dt, te::core::FileSystem::exists(), getBoundariesRule(), te::map::AbstractLayer::getDataSetName(), te::da::GetDataSource(), te::map::AbstractLayer::getDataSourceId(), te::common::Singleton< DataSourceManager >::getInstance(), te::common::Singleton< DataSourceInfoManager >::getInstance(), getPolygonRule(), te::da::GetPropertyPos(), te::da::DataSourceCapabilities::getQueryCapabilities(), te::map::DataSetLayer::getSchema(), te::map::AbstractLayer::getSRID(), te::vp::IsProjectionLatLong(), m_newSRID, m_outputDatasource, m_outputLayer, m_selectedLayer, m_toFile, m_ui, te::da::DataSourceFactory::make(), te::vp::BufferOp::paramsAreValid(), te::vp::BufferOp::run(), te::vp::BufferOp::setInput(), te::vp::BufferOp::setOutput(), te::vp::BufferOp::setParams(), te::da::DataSourceCapabilities::supportsPreparedQueryAPI(), te::da::QueryCapabilities::supportsSpatialSQLDialect(), and TE_LOG_ERROR.
Referenced by BufferDialog().
|
protectedslot |
|
protectedslot |
|
protectedslot |
Definition at line 343 of file BufferDialog.cpp.
References te::dt::GEOMETRY_TYPE, te::gm::GeometryProperty::getGeometryType(), te::gm::LineStringType, m_properties, m_ui, te::gm::MultiLineStringType, te::gm::MultiPointType, te::gm::MultiPolygonType, te::gm::PointType, and te::gm::PolygonType.
Referenced by BufferDialog(), and onLayerComboBoxChanged().
|
protectedslot |
Definition at line 313 of file BufferDialog.cpp.
References te::common::Singleton< SpatialReferenceSystemManager >::getInstance(), te::qt::widgets::SRSManagerDialog::getSelectedSRS(), m_newSRID, and m_ui.
Referenced by BufferDialog().
|
protectedslot |
Definition at line 383 of file BufferDialog.cpp.
References te::qt::widgets::DataSourceSelectorDialog::getSelecteds(), m_outputDatasource, m_toFile, and m_ui.
Referenced by BufferDialog().
|
protectedslot |
Definition at line 404 of file BufferDialog.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 BufferDialog().
|
protectedslot |
|
protectedslot |
| void te::vp::BufferDialog::setAttributesForDistance | ( | std::vector< te::dt::Property * > | properties | ) |
Definition at line 153 of file BufferDialog.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, te::dt::INT64_TYPE, m_ui, te::dt::UINT16_TYPE, te::dt::UINT32_TYPE, and te::dt::UINT64_TYPE.
Referenced by onLayerComboBoxChanged().
| void te::vp::BufferDialog::setLayers | ( | std::list< te::map::AbstractLayerPtr > | layers | ) |
Set the layer that can be used.
| layers | List of AbstractLayerPtr |
Definition at line 132 of file BufferDialog.cpp.
References m_layers, and m_ui.
Referenced by te::qt::plugins::vp::BufferAction::onActionActivated().
| void te::vp::BufferDialog::setPossibleLevels | ( | ) |
|
private |
List of layers.
Definition at line 119 of file BufferDialog.h.
Referenced by onLayerComboBoxChanged(), and setLayers().
|
private |
newSRID to compure buffer Area.
Definition at line 123 of file BufferDialog.h.
Referenced by onLayerComboBoxChanged(), onOkPushButtonClicked(), and onSrsToolButtonClicked().
|
private |
Archive information.
Definition at line 118 of file BufferDialog.h.
|
private |
DataSource information.
Definition at line 117 of file BufferDialog.h.
Referenced by onOkPushButtonClicked(), and onTargetDatasourceToolButtonPressed().
|
private |
Generated Layer.
Definition at line 121 of file BufferDialog.h.
Referenced by getLayer(), and onOkPushButtonClicked().
|
private |
Properties related to the selected Layer.
Definition at line 122 of file BufferDialog.h.
Referenced by onLayerComboBoxChanged(), and onRuleOutToggled().
|
private |
Layer used for buffer.
Definition at line 120 of file BufferDialog.h.
Referenced by onLayerComboBoxChanged(), and onOkPushButtonClicked().
|
private |
Definition at line 124 of file BufferDialog.h.
Referenced by onOkPushButtonClicked(), onTargetDatasourceToolButtonPressed(), and onTargetFileToolButtonPressed().
|
private |
Definition at line 116 of file BufferDialog.h.
Referenced by BufferDialog(), getBoundariesRule(), getPolygonRule(), onAttDistanceToggled(), onFixedDistanceToggled(), onLayerComboBoxChanged(), onOkPushButtonClicked(), onRuleInOutToggled(), onRuleInToggled(), onRuleOutToggled(), onSrsToolButtonClicked(), onTargetDatasourceToolButtonPressed(), onTargetFileToolButtonPressed(), onWithBoundToggled(), onWithoutBoundToggled(), setAttributesForDistance(), setLayers(), and setPossibleLevels().