te::qt::widgets::RasterInfoWidget Class Reference

This class is used to define a map of information necessary to create a raster. More...

#include <RasterInfoWidget.h>

Inheritance diagram for te::qt::widgets::RasterInfoWidget:
QWidget

Public Member Functions

bool fileExists () const
 
std::unique_ptr< te::da::DataSourcegetDataSource () 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::ParameterTableWidgetm_table
 
std::unique_ptr< Ui::RasterInfoWidgetForm > m_ui
 

Detailed Description

This class is used to define a map of information necessary to create a raster.

See also
RasterFactory

Definition at line 59 of file RasterInfoWidget.h.

Constructor & Destructor Documentation

te::qt::widgets::RasterInfoWidget::RasterInfoWidget ( const bool  outputMode,
QWidget parent,
Qt::WindowFlags  f 
)

Default constructor.

Parameters
outputModeAllows 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().

te::qt::widgets::RasterInfoWidget::~RasterInfoWidget ( )
default

Referenced by RasterInfoWidget().

Member Function Documentation

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.

Returns
Returns the raster name extension.
Note
If the full raster file name is "/home/user/raster.tif" this methods will return ".tif";

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.

Returns
Returns the raster full name.
Note
If the full raster file name is "/home/user/raster.tif" this methods will return "/home/user/raster.tif";

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.

References m_table, and m_ui.

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.

References m_table, and m_ui.

std::string te::qt::widgets::RasterInfoWidget::getName ( ) const

Returns the raster name.

Returns
Returns the raster name.
Note
If the full raster file name is "/home/user/raster.tif" this methods will return "raster.tif";

Definition at line 185 of file RasterInfoWidget.cpp.

References m_ui.

std::string te::qt::widgets::RasterInfoWidget::getPath ( ) const

Returns the raster directory.

Returns
Returns the raster directory.
Note
If the full raster file name is "/home/user/raster.tif" this methods will return "/home/user";

Definition at line 216 of file RasterInfoWidget.cpp.

References m_ui.

std::string te::qt::widgets::RasterInfoWidget::getShortName ( ) const

Returns the raster short name.

Returns
Returns the raster short name.
Note
If the full raster file name is "/home/user/raster.tif" this methods will return "raster";

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.

void te::qt::widgets::RasterInfoWidget::onExtraParametersCheckBoxChecked ( bool  checked)
protectedslot

Definition at line 311 of file RasterInfoWidget.cpp.

References m_table.

Referenced by RasterInfoWidget().

void te::qt::widgets::RasterInfoWidget::onOpenSRIDDlgToolButtonClicked ( )
protectedslot

Definition at line 277 of file RasterInfoWidget.cpp.

References te::qt::widgets::SRSManagerDialog::getSelectedSRS(), and m_ui.

Referenced by RasterInfoWidget().

void te::qt::widgets::RasterInfoWidget::rawRasterCheckBoxStateChanged ( int  state)
protectedslot

Definition at line 299 of file RasterInfoWidget.cpp.

References m_originalFullFileName, m_ui, and updateRawRasterFileName().

Referenced by RasterInfoWidget().

void te::qt::widgets::RasterInfoWidget::rawRasterInfoChanged ( const QString &  text)
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.

Member Data Documentation

std::string te::qt::widgets::RasterInfoWidget::m_originalFullFileName
private

The selected raster file full file name.

Definition at line 141 of file RasterInfoWidget.h.

Referenced by onOpenFileDlgToolButtonClicked(), rawRasterCheckBoxStateChanged(), and updateRawRasterFileName().

bool te::qt::widgets::RasterInfoWidget::m_outputMode
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().

std::unique_ptr<te::qt::widgets::ParameterTableWidget> te::qt::widgets::RasterInfoWidget::m_table
private

Definition at line 140 of file RasterInfoWidget.h.

Referenced by getInfo(), onExtraParametersCheckBoxChecked(), and RasterInfoWidget().


The documentation for this class was generated from the following files: