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:

Public Member Functions

bool fileExists () const
 
std::auto_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) 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...
 
 ~RasterInfoWidget ()
 

Protected Slots

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::auto_ptr< te::qt::widgets::ParameterTableWidgetm_table
 
std::auto_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).
te::qt::widgets::RasterInfoWidget::~RasterInfoWidget ( )

Member Function Documentation

bool te::qt::widgets::RasterInfoWidget::fileExists ( ) const
std::auto_ptr<te::da::DataSource> te::qt::widgets::RasterInfoWidget::getDataSource ( ) const
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";
Ui::RasterInfoWidgetForm* te::qt::widgets::RasterInfoWidget::getForm ( ) const
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";
std::map<std::string, std::string> te::qt::widgets::RasterInfoWidget::getInfo ( ) const
std::map<std::string, std::string> te::qt::widgets::RasterInfoWidget::getInfo ( int  count) const
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";
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";
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";
std::string te::qt::widgets::RasterInfoWidget::getType ( ) const
void te::qt::widgets::RasterInfoWidget::onOpenFileDlgToolButtonClicked ( )
protectedslot
void te::qt::widgets::RasterInfoWidget::onOpenSRIDDlgToolButtonClicked ( )
protectedslot
void te::qt::widgets::RasterInfoWidget::rawRasterCheckBoxStateChanged ( int  state)
protectedslot
void te::qt::widgets::RasterInfoWidget::rawRasterInfoChanged ( const QString &  text)
protectedslot
void te::qt::widgets::RasterInfoWidget::updateRawRasterFileName ( )
private

Member Data Documentation

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

The selected raster file full file name.

Definition at line 137 of file RasterInfoWidget.h.

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 134 of file RasterInfoWidget.h.

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

Definition at line 136 of file RasterInfoWidget.h.

std::auto_ptr<Ui::RasterInfoWidgetForm> te::qt::widgets::RasterInfoWidget::m_ui
private

Definition at line 135 of file RasterInfoWidget.h.


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