This class is GUI used to define the segmenter advanced options parameters for the RP constast operation. More...
#include <SegmenterAdvancedOptionsWizardPage.h>
Public Member Functions | |
| void | applyVectorization () |
| Ui::SegmenterAdvancedOptionsWizardPageForm * | getForm () const |
| te::map::AbstractLayerPtr | getOutputLayer () |
| SegmenterAdvancedOptionsWizardPage (QWidget *parent=0) | |
| void | set (te::map::AbstractLayerPtr layer) |
| void | setOutputLayerName (const std::string &name) |
| void | setOutputLayerPath (const std::string &path) |
| ~SegmenterAdvancedOptionsWizardPage () | |
Protected Member Functions | |
| std::unique_ptr< te::mem::DataSet > | createDataSet (te::da::DataSetType *dsType, std::vector< te::gm::Geometry * > &geoms, std::vector< double > &geomsValues) |
| std::unique_ptr< te::da::DataSetType > | createDataSetType (std::string dataSetName, int srid) |
| void | saveDataSet (te::mem::DataSet *dataSet, te::da::DataSetType *dsType, te::da::DataSourcePtr ds, std::string dataSetName) |
Private Attributes | |
| te::map::AbstractLayerPtr | m_layer |
| std::string | m_name |
| te::map::AbstractLayerPtr | m_outputLayer |
| std::string | m_path |
| std::unique_ptr< Ui::SegmenterAdvancedOptionsWizardPageForm > | m_ui |
This class is GUI used to define the segmenter advanced options parameters for the RP constast operation.
Definition at line 64 of file SegmenterAdvancedOptionsWizardPage.h.
| te::qt::widgets::SegmenterAdvancedOptionsWizardPage::SegmenterAdvancedOptionsWizardPage | ( | QWidget * | parent = 0 | ) |
Definition at line 41 of file SegmenterAdvancedOptionsWizardPage.cpp.
References te::rp::Segmenter::InputParameters::m_blocksOverlapPercent, te::rp::Segmenter::InputParameters::m_enableThreadedProcessing, te::rp::Segmenter::InputParameters::m_maxBlockSize, te::rp::Segmenter::InputParameters::m_maxSegThreads, m_ui, and ~SegmenterAdvancedOptionsWizardPage().
|
default |
Referenced by SegmenterAdvancedOptionsWizardPage().
| void te::qt::widgets::SegmenterAdvancedOptionsWizardPage::applyVectorization | ( | ) |
Definition at line 75 of file SegmenterAdvancedOptionsWizardPage.cpp.
References band, createDataSet(), createDataSetType(), ds, dt, te::da::GetDataSource(), te::common::Singleton< DataSourceInfoManager >::getInstance(), te::common::Singleton< DataSourceManager >::getInstance(), te::map::GetRaster(), te::rst::Raster::getSRID(), m_layer, m_name, m_outputLayer, m_path, saveDataSet(), TE_TR, and te::rst::Raster::vectorize().
|
protected |
Function used to create the output data
Definition at line 226 of file SegmenterAdvancedOptionsWizardPage.cpp.
References ds, te::mem::DataSetItem::setDouble(), te::mem::DataSetItem::setGeometry(), and te::mem::DataSetItem::setInt32().
Referenced by applyVectorization().
|
protected |
Function used to create the output dataset type
Definition at line 202 of file SegmenterAdvancedOptionsWizardPage.cpp.
References te::da::PrimaryKey::add(), te::dt::DOUBLE_TYPE, te::dt::INT32_TYPE, and te::gm::PolygonType.
Referenced by applyVectorization().
| Ui::SegmenterAdvancedOptionsWizardPageForm * te::qt::widgets::SegmenterAdvancedOptionsWizardPage::getForm | ( | ) | const |
Definition at line 70 of file SegmenterAdvancedOptionsWizardPage.cpp.
References m_ui.
| te::map::AbstractLayerPtr te::qt::widgets::SegmenterAdvancedOptionsWizardPage::getOutputLayer | ( | ) |
Definition at line 197 of file SegmenterAdvancedOptionsWizardPage.cpp.
References m_outputLayer.
|
protected |
Function used to save the output dataset
Definition at line 250 of file SegmenterAdvancedOptionsWizardPage.cpp.
References te::mem::DataSet::moveBeforeFirst().
Referenced by applyVectorization().
| void te::qt::widgets::SegmenterAdvancedOptionsWizardPage::set | ( | te::map::AbstractLayerPtr | layer | ) |
Definition at line 182 of file SegmenterAdvancedOptionsWizardPage.cpp.
References m_layer.
| void te::qt::widgets::SegmenterAdvancedOptionsWizardPage::setOutputLayerName | ( | const std::string & | name | ) |
Definition at line 192 of file SegmenterAdvancedOptionsWizardPage.cpp.
References m_name.
| void te::qt::widgets::SegmenterAdvancedOptionsWizardPage::setOutputLayerPath | ( | const std::string & | path | ) |
Definition at line 187 of file SegmenterAdvancedOptionsWizardPage.cpp.
References m_path.
|
private |
Definition at line 103 of file SegmenterAdvancedOptionsWizardPage.h.
Referenced by applyVectorization(), and set().
|
private |
Definition at line 109 of file SegmenterAdvancedOptionsWizardPage.h.
Referenced by applyVectorization(), and setOutputLayerName().
|
private |
Definition at line 105 of file SegmenterAdvancedOptionsWizardPage.h.
Referenced by applyVectorization(), and getOutputLayer().
|
private |
Definition at line 107 of file SegmenterAdvancedOptionsWizardPage.h.
Referenced by applyVectorization(), and setOutputLayerPath().
|
private |
Definition at line 101 of file SegmenterAdvancedOptionsWizardPage.h.
Referenced by getForm(), and SegmenterAdvancedOptionsWizardPage().