#include <RasterToVectorDialog.h>
Public Member Functions | |
| te::map::AbstractLayerPtr | getLayer () |
| Get the generated layer. More... | |
| std::vector< unsigned int > | getSelectedBands () |
| Get the selected bands based on selected QListWidgetItem. More... | |
| std::vector< te::stat::StatisticalSummary > | getSelectedStatistics () |
| Get the selected statistics based on selected QListWidgetItem. More... | |
| bool | getValueOption () |
| Get the based on selected QListWidgetItem. More... | |
| RasterToVectorDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| void | setLayers (std::list< te::map::AbstractLayerPtr > layers) |
| Set the layer that can be used. More... | |
| ~RasterToVectorDialog () | |
Protected Slots | |
| void | onCancelPushButtonClicked () |
| void | onOkPushButtonClicked () |
| void | onRasterComboBoxChanged (int index) |
| void | onTargetDatasourceToolButtonPressed () |
| void | onTargetFileToolButtonPressed () |
| void | onVectorComboBoxChanged (int index) |
Private Attributes | |
| bool | m_isStatistical |
| std::list< te::map::AbstractLayerPtr > | m_layers |
| List of layers. More... | |
| te::map::AbstractLayerPtr | m_outLayer |
| Generated Layer. More... | |
| te::da::DataSourceInfoPtr | m_outputDatasource |
| DataSource information. More... | |
| std::string | m_path |
| Output layer path;. More... | |
| te::map::AbstractLayerPtr | m_rasterLayer |
| Raster layer. More... | |
| bool | m_texture |
| bool | m_toFile |
| std::unique_ptr< Ui::RasterToVectorDialogForm > | m_ui |
| User interface. More... | |
| te::map::AbstractLayerPtr | m_vectorLayer |
| Vector layer. More... | |
Definition at line 56 of file RasterToVectorDialog.h.
| te::attributefill::RasterToVectorDialog::RasterToVectorDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Definition at line 65 of file RasterToVectorDialog.cpp.
References m_ui, onCancelPushButtonClicked(), onOkPushButtonClicked(), onRasterComboBoxChanged(), onTargetDatasourceToolButtonPressed(), onTargetFileToolButtonPressed(), onVectorComboBoxChanged(), and ~RasterToVectorDialog().
|
default |
Referenced by RasterToVectorDialog().
| te::map::AbstractLayerPtr te::attributefill::RasterToVectorDialog::getLayer | ( | ) |
Get the generated layer.
Definition at line 125 of file RasterToVectorDialog.cpp.
References m_outLayer.
Referenced by te::qt::plugins::attributefill::RasterToVectorAction::onActionActivated().
| std::vector< unsigned int > te::attributefill::RasterToVectorDialog::getSelectedBands | ( | ) |
Get the selected bands based on selected QListWidgetItem.
Definition at line 130 of file RasterToVectorDialog.cpp.
References m_ui.
Referenced by onOkPushButtonClicked().
| std::vector< te::stat::StatisticalSummary > te::attributefill::RasterToVectorDialog::getSelectedStatistics | ( | ) |
Get the selected statistics based on selected QListWidgetItem.
Definition at line 144 of file RasterToVectorDialog.cpp.
References te::stat::AMPLITUDE, te::stat::COUNT, te::stat::KURTOSIS, m_ui, te::stat::MAX_VALUE, te::stat::MEAN, te::stat::MEDIAN, te::stat::MIN_VALUE, te::stat::MODE, te::stat::PERCENT_EACH_CLASS_BY_AREA, te::stat::SKEWNESS, te::stat::STANDARD_DEVIATION, te::stat::SUM, te::stat::VALID_COUNT, te::stat::VAR_COEFF, and te::stat::VARIANCE.
Referenced by onOkPushButtonClicked().
| bool te::attributefill::RasterToVectorDialog::getValueOption | ( | ) |
Get the based on selected QListWidgetItem.
Definition at line 207 of file RasterToVectorDialog.cpp.
References m_ui.
Referenced by onOkPushButtonClicked().
|
protectedslot |
Definition at line 614 of file RasterToVectorDialog.cpp.
Referenced by RasterToVectorDialog().
|
protectedslot |
Definition at line 343 of file RasterToVectorDialog.cpp.
References te::da::AssociateDataSetTypeConverterSRID(), ds, dt, te::core::FileSystem::exists(), te::map::AbstractLayer::getDataSetName(), te::da::GetDataSource(), te::map::AbstractLayer::getDataSourceId(), te::da::GetFirstPropertyPos(), te::common::Singleton< DataSourceManager >::getInstance(), te::common::Singleton< DataSourceInfoManager >::getInstance(), te::map::AbstractLayer::getSelected(), getSelectedBands(), getSelectedStatistics(), getValueOption(), te::qt::widgets::isValidSRIDs(), m_isStatistical, te::rst::BandProperty::m_noDataValue, m_outLayer, m_outputDatasource, m_rasterLayer, m_texture, m_toFile, m_ui, m_vectorLayer, te::da::DataSourceFactory::make(), te::attributefill::RasterToVector::paramsAreValid(), te::dt::RASTER_TYPE, te::attributefill::RasterToVector::run(), te::attributefill::RasterToVector::setInput(), te::attributefill::RasterToVector::setOutput(), te::attributefill::RasterToVector::setParams(), and TE_CORE_LOG_DEBUG.
Referenced by RasterToVectorDialog().
|
protectedslot |
Definition at line 212 of file RasterToVectorDialog.cpp.
References b, te::da::GetFirstRasterProperty(), te::dt::Property::getName(), m_layers, m_rasterLayer, and m_ui.
Referenced by RasterToVectorDialog().
|
protectedslot |
Definition at line 300 of file RasterToVectorDialog.cpp.
References te::qt::widgets::DataSourceSelectorDialog::getSelecteds(), m_outputDatasource, m_toFile, and m_ui.
Referenced by RasterToVectorDialog().
|
protectedslot |
Definition at line 321 of file RasterToVectorDialog.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 RasterToVectorDialog().
|
protectedslot |
Definition at line 249 of file RasterToVectorDialog.cpp.
References te::da::GetFirstGeomProperty(), te::gm::GeometryProperty::getGeometryType(), m_isStatistical, m_layers, m_ui, m_vectorLayer, te::gm::MultiPolygonType, and te::gm::PolygonType.
Referenced by RasterToVectorDialog().
| void te::attributefill::RasterToVectorDialog::setLayers | ( | std::list< te::map::AbstractLayerPtr > | layers | ) |
Set the layer that can be used.
| layers | List of AbstractLayerPtr |
Definition at line 97 of file RasterToVectorDialog.cpp.
References te::da::GetFirstGeomProperty(), te::gm::GeometryProperty::getGeometryType(), m_layers, m_ui, te::gm::MultiPointType, te::gm::MultiPolygonType, te::gm::PointType, and te::gm::PolygonType.
Referenced by te::qt::plugins::attributefill::RasterToVectorAction::onActionActivated().
|
private |
Definition at line 128 of file RasterToVectorDialog.h.
Referenced by onOkPushButtonClicked(), and onVectorComboBoxChanged().
|
private |
List of layers.
Definition at line 121 of file RasterToVectorDialog.h.
Referenced by onRasterComboBoxChanged(), onVectorComboBoxChanged(), and setLayers().
|
private |
Generated Layer.
Definition at line 124 of file RasterToVectorDialog.h.
Referenced by getLayer(), and onOkPushButtonClicked().
|
private |
DataSource information.
Definition at line 120 of file RasterToVectorDialog.h.
Referenced by onOkPushButtonClicked(), and onTargetDatasourceToolButtonPressed().
|
private |
Output layer path;.
Definition at line 125 of file RasterToVectorDialog.h.
|
private |
Raster layer.
Definition at line 122 of file RasterToVectorDialog.h.
Referenced by onOkPushButtonClicked(), and onRasterComboBoxChanged().
|
private |
Definition at line 127 of file RasterToVectorDialog.h.
Referenced by onOkPushButtonClicked().
|
private |
Definition at line 126 of file RasterToVectorDialog.h.
Referenced by onOkPushButtonClicked(), onTargetDatasourceToolButtonPressed(), and onTargetFileToolButtonPressed().
|
private |
User interface.
Definition at line 119 of file RasterToVectorDialog.h.
Referenced by getSelectedBands(), getSelectedStatistics(), getValueOption(), onOkPushButtonClicked(), onRasterComboBoxChanged(), onTargetDatasourceToolButtonPressed(), onTargetFileToolButtonPressed(), onVectorComboBoxChanged(), RasterToVectorDialog(), and setLayers().
|
private |
Vector layer.
Definition at line 123 of file RasterToVectorDialog.h.
Referenced by onOkPushButtonClicked(), and onVectorComboBoxChanged().