This class is used to define a map of information necessary to create a raster. More...
#include <RasterInfoWidget.h>
Public Member Functions | |
| bool | fileExists () const |
| std::unique_ptr< te::da::DataSource > | getDataSource () const |
| std::string | getExtension () const |
| Returns the raster name extension. More... | |
| Ui::RasterInfoWidgetForm * | getForm () const |
| std::string | getFullName () const |
| Returns the raster full name. More... | |
| std::map< std::string, std::string > | getInfo () const |
| std::map< std::string, std::string > | getInfo (int count, std::string name="") const |
| std::string | getName () const |
| Returns the raster name. More... | |
| std::string | getPath () const |
| Returns the raster directory. More... | |
| std::string | getShortName () const |
| Returns the raster short name. More... | |
| std::string | getType () const |
| RasterInfoWidget (const bool outputMode, QWidget *parent, Qt::WindowFlags f) | |
| Default constructor. More... | |
| void | setHideRasterParameters () |
| ~RasterInfoWidget () | |
Protected Slots | |
| void | onExtraParametersCheckBoxChecked (bool checked) |
| void | onOpenFileDlgToolButtonClicked () |
| void | onOpenSRIDDlgToolButtonClicked () |
| void | rawRasterCheckBoxStateChanged (int state) |
| void | rawRasterInfoChanged (const QString &text) |
Private Member Functions | |
| void | updateRawRasterFileName () |
Private Attributes | |
| std::string | m_originalFullFileName |
| The selected raster file full file name. More... | |
| bool | m_outputMode |
| Allows select input rasters (outputMode=false - rasters that already exists) or output raster info - outputMode=true). More... | |
| std::unique_ptr< te::qt::widgets::ParameterTableWidget > | m_table |
| std::unique_ptr< Ui::RasterInfoWidgetForm > | m_ui |
This class is used to define a map of information necessary to create a raster.
Definition at line 59 of file RasterInfoWidget.h.
| te::qt::widgets::RasterInfoWidget::RasterInfoWidget | ( | const bool | outputMode, |
| QWidget * | parent, | ||
| Qt::WindowFlags | f | ||
| ) |
Default constructor.
| outputMode | Allows select input rasters (outputMode=false - rasters that already exists) or output raster info - outputMode=true). |
Definition at line 56 of file RasterInfoWidget.cpp.
References m_table, m_ui, onExtraParametersCheckBoxChecked(), onOpenFileDlgToolButtonClicked(), onOpenSRIDDlgToolButtonClicked(), rawRasterCheckBoxStateChanged(), rawRasterInfoChanged(), and ~RasterInfoWidget().
|
default |
Referenced by RasterInfoWidget().
| bool te::qt::widgets::RasterInfoWidget::fileExists | ( | ) | const |
Definition at line 222 of file RasterInfoWidget.cpp.
References te::core::FileSystem::exists(), and m_ui.
| std::unique_ptr< te::da::DataSource > te::qt::widgets::RasterInfoWidget::getDataSource | ( | ) | const |
Definition at line 173 of file RasterInfoWidget.cpp.
References m_ui, and te::da::DataSourceFactory::make().
| std::string te::qt::widgets::RasterInfoWidget::getExtension | ( | ) | const |
Returns the raster name extension.
Definition at line 210 of file RasterInfoWidget.cpp.
References m_ui.
| Ui::RasterInfoWidgetForm * te::qt::widgets::RasterInfoWidget::getForm | ( | ) | const |
Definition at line 110 of file RasterInfoWidget.cpp.
References m_ui.
| std::string te::qt::widgets::RasterInfoWidget::getFullName | ( | ) | const |
Returns the raster full name.
Definition at line 205 of file RasterInfoWidget.cpp.
References m_ui.
| std::map< std::string, std::string > te::qt::widgets::RasterInfoWidget::getInfo | ( | ) | const |
Definition at line 120 of file RasterInfoWidget.cpp.
| std::map< std::string, std::string > te::qt::widgets::RasterInfoWidget::getInfo | ( | int | count, |
| std::string | name = "" |
||
| ) | const |
Definition at line 135 of file RasterInfoWidget.cpp.
| std::string te::qt::widgets::RasterInfoWidget::getName | ( | ) | const |
Returns the raster name.
Definition at line 185 of file RasterInfoWidget.cpp.
References m_ui.
| std::string te::qt::widgets::RasterInfoWidget::getPath | ( | ) | const |
Returns the raster directory.
Definition at line 216 of file RasterInfoWidget.cpp.
References m_ui.
| std::string te::qt::widgets::RasterInfoWidget::getShortName | ( | ) | const |
Returns the raster short name.
Definition at line 191 of file RasterInfoWidget.cpp.
References m_ui.
| std::string te::qt::widgets::RasterInfoWidget::getType | ( | ) | const |
Definition at line 115 of file RasterInfoWidget.cpp.
|
protectedslot |
Definition at line 311 of file RasterInfoWidget.cpp.
References m_table.
Referenced by RasterInfoWidget().
|
protectedslot |
Definition at line 233 of file RasterInfoWidget.cpp.
References te::qt::widgets::AddFilePathToSettings(), te::qt::widgets::FileDialog::exec(), te::qt::widgets::GetDiskRasterFileSelFilter(), te::qt::widgets::GetFilePathFromSettings(), te::qt::widgets::FileDialog::getPath(), m_originalFullFileName, m_outputMode, m_ui, te::qt::widgets::FileDialog::RASTER, updateRawRasterFileName(), and te::common::Exception::what().
Referenced by RasterInfoWidget().
|
protectedslot |
Definition at line 277 of file RasterInfoWidget.cpp.
References te::qt::widgets::SRSManagerDialog::getSelectedSRS(), and m_ui.
Referenced by RasterInfoWidget().
|
protectedslot |
Definition at line 299 of file RasterInfoWidget.cpp.
References m_originalFullFileName, m_ui, and updateRawRasterFileName().
Referenced by RasterInfoWidget().
|
protectedslot |
Definition at line 294 of file RasterInfoWidget.cpp.
References updateRawRasterFileName().
Referenced by RasterInfoWidget().
| void te::qt::widgets::RasterInfoWidget::setHideRasterParameters | ( | ) |
Definition at line 228 of file RasterInfoWidget.cpp.
References m_ui.
|
private |
Definition at line 316 of file RasterInfoWidget.cpp.
References te::common::Convert2UCase(), te::common::Singleton< SpatialReferenceSystemManager >::getInstance(), te::core::FileSystem::isRegularFile(), m_originalFullFileName, m_ui, and te::core::FileSystem::remove().
Referenced by onOpenFileDlgToolButtonClicked(), rawRasterCheckBoxStateChanged(), and rawRasterInfoChanged().
|
private |
The selected raster file full file name.
Definition at line 141 of file RasterInfoWidget.h.
Referenced by onOpenFileDlgToolButtonClicked(), rawRasterCheckBoxStateChanged(), and updateRawRasterFileName().
|
private |
Allows select input rasters (outputMode=false - rasters that already exists) or output raster info - outputMode=true).
Definition at line 138 of file RasterInfoWidget.h.
Referenced by onOpenFileDlgToolButtonClicked().
|
private |
Definition at line 140 of file RasterInfoWidget.h.
Referenced by getInfo(), onExtraParametersCheckBoxChecked(), and RasterInfoWidget().
|
private |
Definition at line 139 of file RasterInfoWidget.h.
Referenced by fileExists(), getDataSource(), getExtension(), getForm(), getFullName(), getInfo(), getName(), getPath(), getShortName(), onOpenFileDlgToolButtonClicked(), onOpenSRIDDlgToolButtonClicked(), RasterInfoWidget(), rawRasterCheckBoxStateChanged(), setHideRasterParameters(), and updateRawRasterFileName().