QGIS API Documentation  2.3.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Slots | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
QgsRasterLayerSaveAsDialog Class Reference

#include <qgsrasterlayersaveasdialog.h>

Inheritance diagram for QgsRasterLayerSaveAsDialog:
Inheritance graph
[legend]
Collaboration diagram for QgsRasterLayerSaveAsDialog:
Collaboration graph
[legend]

Public Types

enum  Mode { RawDataMode, RenderedImageMode }
 
enum  CrsState { OriginalCrs, CurrentCrs, UserCrs }
 
enum  ResolutionState { OriginalResolution, UserResolution }
 

Public Slots

virtual void accept ()
 

Public Member Functions

 QgsRasterLayerSaveAsDialog (QgsRasterLayer *rasterLayer, QgsRasterDataProvider *sourceProvider, const QgsRectangle &currentExtent, const QgsCoordinateReferenceSystem &layerCrs, const QgsCoordinateReferenceSystem &currentCrs, QWidget *parent=0, Qt::WindowFlags f=0)
 
 ~QgsRasterLayerSaveAsDialog ()
 
Mode mode () const
 
int nColumns () const
 
int nRows () const
 
double xResolution () const
 
double yResolution () const
 
int maximumTileSizeX () const
 
int maximumTileSizeY () const
 
bool tileMode () const
 
QString outputFileName () const
 
QString outputFormat () const
 
QgsCoordinateReferenceSystem outputCrs ()
 
QStringList createOptions () const
 
QgsRectangle outputRectangle () const
 
QgsRasterRangeList noData () const
 
QList< int > pyramidsList () const
 
QgsRaster::RasterBuildPyramids buildPyramidsFlag () const
 
QString pyramidsResamplingMethod () const
 
QgsRaster::RasterPyramidsFormat pyramidsFormat () const
 
QStringList pyramidsConfigOptions () const
 
void hideFormat ()
 
void hideOutput ()
 

Private Slots

void on_mRawModeRadioButton_toggled (bool)
 
void on_mBrowseButton_clicked ()
 
void on_mSaveAsLineEdit_textChanged (const QString &text)
 
void on_mFormatComboBox_currentIndexChanged (const QString &text)
 
void on_mResolutionRadioButton_toggled (bool)
 
void on_mOriginalResolutionPushButton_clicked ()
 
void on_mXResolutionLineEdit_textEdited (const QString &)
 
void on_mYResolutionLineEdit_textEdited (const QString &)
 
void on_mOriginalSizePushButton_clicked ()
 
void on_mColumnsLineEdit_textEdited (const QString &)
 
void on_mRowsLineEdit_textEdited (const QString &)
 
void on_mChangeCrsPushButton_clicked ()
 
void on_mCrsComboBox_currentIndexChanged (int)
 
void on_mAddNoDataManuallyToolButton_clicked ()
 
void on_mLoadTransparentNoDataToolButton_clicked ()
 
void on_mRemoveSelectedNoDataToolButton_clicked ()
 
void on_mRemoveAllNoDataToolButton_clicked ()
 
void noDataCellTextEdited (const QString &text)
 
void on_mTileModeCheckBox_toggled (bool toggled)
 
void on_mPyramidsGroupBox_toggled (bool toggled)
 
void populatePyramidsLevels ()
 
void extentChanged ()
 

Private Member Functions

void setValidators ()
 
void toggleResolutionSize ()
 
void setResolution (double xRes, double yRes, const QgsCoordinateReferenceSystem &srcCrs)
 
void setOriginalResolution ()
 
void setOriginalSize ()
 
void recalcSize ()
 
void recalcResolution ()
 
void updateResolutionStateMsg ()
 
void recalcResolutionSize ()
 
void crsChanged ()
 
void updateCrsGroup ()
 
void addNoDataRow (double min, double max)
 
void setNoDataToEdited (int row)
 
double noDataCellValue (int row, int column) const
 
void adjustNoDataCellWidth (int row, int column)
 
bool validate () const
 

Private Attributes

QgsRasterLayermRasterLayer
 
QgsRasterDataProvidermDataProvider
 
QgsRectangle mCurrentExtent
 
QgsCoordinateReferenceSystem mLayerCrs
 
QgsCoordinateReferenceSystem mCurrentCrs
 
QgsCoordinateReferenceSystem mUserCrs
 
QgsCoordinateReferenceSystem mPreviousCrs
 
ResolutionState mResolutionState
 
QVector< bool > mNoDataToEdited
 

Detailed Description

Definition at line 27 of file qgsrasterlayersaveasdialog.h.

Member Enumeration Documentation

Enumerator
OriginalCrs 
CurrentCrs 
UserCrs 

Definition at line 36 of file qgsrasterlayersaveasdialog.h.

Enumerator
RawDataMode 
RenderedImageMode 

Definition at line 31 of file qgsrasterlayersaveasdialog.h.

Enumerator
OriginalResolution 
UserResolution 

Definition at line 42 of file qgsrasterlayersaveasdialog.h.

Constructor & Destructor Documentation

QgsRasterLayerSaveAsDialog::QgsRasterLayerSaveAsDialog ( QgsRasterLayer rasterLayer,
QgsRasterDataProvider sourceProvider,
const QgsRectangle currentExtent,
const QgsCoordinateReferenceSystem layerCrs,
const QgsCoordinateReferenceSystem currentCrs,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)
QgsRasterLayerSaveAsDialog::~QgsRasterLayerSaveAsDialog ( )

Definition at line 151 of file qgsrasterlayersaveasdialog.cpp.

Member Function Documentation

virtual void QgsRasterLayerSaveAsDialog::accept ( )
inlinevirtualslot

Definition at line 79 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::addNoDataRow ( double  min,
double  max 
)
private
void QgsRasterLayerSaveAsDialog::adjustNoDataCellWidth ( int  row,
int  column 
)
private

Definition at line 729 of file qgsrasterlayersaveasdialog.cpp.

Referenced by addNoDataRow().

QgsRaster::RasterBuildPyramids QgsRasterLayerSaveAsDialog::buildPyramidsFlag ( ) const
QStringList QgsRasterLayerSaveAsDialog::createOptions ( ) const

Definition at line 273 of file qgsrasterlayersaveasdialog.cpp.

void QgsRasterLayerSaveAsDialog::crsChanged ( )
private
void QgsRasterLayerSaveAsDialog::extentChanged ( )
privateslot
void QgsRasterLayerSaveAsDialog::hideFormat ( )

Definition at line 283 of file qgsrasterlayersaveasdialog.cpp.

void QgsRasterLayerSaveAsDialog::hideOutput ( )

Definition at line 289 of file qgsrasterlayersaveasdialog.cpp.

int QgsRasterLayerSaveAsDialog::maximumTileSizeX ( ) const

Definition at line 248 of file qgsrasterlayersaveasdialog.cpp.

int QgsRasterLayerSaveAsDialog::maximumTileSizeY ( ) const

Definition at line 253 of file qgsrasterlayersaveasdialog.cpp.

QgsRasterLayerSaveAsDialog::Mode QgsRasterLayerSaveAsDialog::mode ( ) const

Definition at line 516 of file qgsrasterlayersaveasdialog.cpp.

References RawDataMode, and RenderedImageMode.

int QgsRasterLayerSaveAsDialog::nColumns ( ) const

Definition at line 228 of file qgsrasterlayersaveasdialog.cpp.

Referenced by recalcResolution().

QgsRasterRangeList QgsRasterLayerSaveAsDialog::noData ( ) const

Definition at line 740 of file qgsrasterlayersaveasdialog.cpp.

References noDataCellValue().

void QgsRasterLayerSaveAsDialog::noDataCellTextEdited ( const QString &  text)
privateslot

Definition at line 603 of file qgsrasterlayersaveasdialog.cpp.

References mNoDataToEdited, QgsDebugMsg, and setNoDataToEdited().

Referenced by addNoDataRow().

double QgsRasterLayerSaveAsDialog::noDataCellValue ( int  row,
int  column 
) const
private

Definition at line 719 of file qgsrasterlayersaveasdialog.cpp.

Referenced by noData().

int QgsRasterLayerSaveAsDialog::nRows ( ) const

Definition at line 233 of file qgsrasterlayersaveasdialog.cpp.

Referenced by recalcResolution().

void QgsRasterLayerSaveAsDialog::on_mAddNoDataManuallyToolButton_clicked ( )
privateslot

Definition at line 527 of file qgsrasterlayersaveasdialog.cpp.

References addNoDataRow().

void QgsRasterLayerSaveAsDialog::on_mBrowseButton_clicked ( )
privateslot

Definition at line 155 of file qgsrasterlayersaveasdialog.cpp.

References tr.

void QgsRasterLayerSaveAsDialog::on_mChangeCrsPushButton_clicked ( )
privateslot
void QgsRasterLayerSaveAsDialog::on_mColumnsLineEdit_textEdited ( const QString &  )
inlineprivateslot

Definition at line 92 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::on_mCrsComboBox_currentIndexChanged ( int  )
inlineprivateslot

Definition at line 97 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::on_mFormatComboBox_currentIndexChanged ( const QString &  text)
privateslot

Definition at line 218 of file qgsrasterlayersaveasdialog.cpp.

References mDataProvider, and QgsDataProvider::name().

void QgsRasterLayerSaveAsDialog::on_mLoadTransparentNoDataToolButton_clicked ( )
privateslot
void QgsRasterLayerSaveAsDialog::on_mOriginalResolutionPushButton_clicked ( )
inlineprivateslot

Definition at line 87 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::on_mOriginalSizePushButton_clicked ( )
inlineprivateslot

Definition at line 91 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::on_mPyramidsGroupBox_toggled ( bool  toggled)
privateslot

Definition at line 670 of file qgsrasterlayersaveasdialog.cpp.

References populatePyramidsLevels().

void QgsRasterLayerSaveAsDialog::on_mRawModeRadioButton_toggled ( bool  checked)
privateslot
void QgsRasterLayerSaveAsDialog::on_mRemoveAllNoDataToolButton_clicked ( )
privateslot

Definition at line 556 of file qgsrasterlayersaveasdialog.cpp.

void QgsRasterLayerSaveAsDialog::on_mRemoveSelectedNoDataToolButton_clicked ( )
privateslot

Definition at line 551 of file qgsrasterlayersaveasdialog.cpp.

void QgsRasterLayerSaveAsDialog::on_mResolutionRadioButton_toggled ( bool  )
inlineprivateslot

Definition at line 86 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::on_mRowsLineEdit_textEdited ( const QString &  )
inlineprivateslot

Definition at line 93 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::on_mSaveAsLineEdit_textChanged ( const QString &  text)
privateslot

Definition at line 206 of file qgsrasterlayersaveasdialog.cpp.

void QgsRasterLayerSaveAsDialog::on_mTileModeCheckBox_toggled ( bool  toggled)
privateslot

Definition at line 643 of file qgsrasterlayersaveasdialog.cpp.

void QgsRasterLayerSaveAsDialog::on_mXResolutionLineEdit_textEdited ( const QString &  )
inlineprivateslot

Definition at line 88 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::on_mYResolutionLineEdit_textEdited ( const QString &  )
inlineprivateslot

Definition at line 89 of file qgsrasterlayersaveasdialog.h.

QgsCoordinateReferenceSystem QgsRasterLayerSaveAsDialog::outputCrs ( )
QString QgsRasterLayerSaveAsDialog::outputFileName ( ) const

Definition at line 263 of file qgsrasterlayersaveasdialog.cpp.

QString QgsRasterLayerSaveAsDialog::outputFormat ( ) const

Definition at line 268 of file qgsrasterlayersaveasdialog.cpp.

QgsRectangle QgsRasterLayerSaveAsDialog::outputRectangle ( ) const

Definition at line 278 of file qgsrasterlayersaveasdialog.cpp.

Referenced by recalcResolution(), recalcSize(), and setResolution().

void QgsRasterLayerSaveAsDialog::populatePyramidsLevels ( )
privateslot
QStringList QgsRasterLayerSaveAsDialog::pyramidsConfigOptions ( ) const
inline

Definition at line 73 of file qgsrasterlayersaveasdialog.h.

QgsRaster::RasterPyramidsFormat QgsRasterLayerSaveAsDialog::pyramidsFormat ( ) const
inline

Definition at line 72 of file qgsrasterlayersaveasdialog.h.

QList< int > QgsRasterLayerSaveAsDialog::pyramidsList ( ) const

Definition at line 755 of file qgsrasterlayersaveasdialog.cpp.

QString QgsRasterLayerSaveAsDialog::pyramidsResamplingMethod ( ) const
inline

Definition at line 71 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::recalcResolution ( )
private
void QgsRasterLayerSaveAsDialog::recalcResolutionSize ( )
private
void QgsRasterLayerSaveAsDialog::recalcSize ( )
private
void QgsRasterLayerSaveAsDialog::setNoDataToEdited ( int  row)
private
void QgsRasterLayerSaveAsDialog::setOriginalResolution ( )
private
void QgsRasterLayerSaveAsDialog::setOriginalSize ( )
private
void QgsRasterLayerSaveAsDialog::setResolution ( double  xRes,
double  yRes,
const QgsCoordinateReferenceSystem srcCrs 
)
private
void QgsRasterLayerSaveAsDialog::setValidators ( )
private

Definition at line 141 of file qgsrasterlayersaveasdialog.cpp.

Referenced by QgsRasterLayerSaveAsDialog().

bool QgsRasterLayerSaveAsDialog::tileMode ( ) const

Definition at line 258 of file qgsrasterlayersaveasdialog.cpp.

void QgsRasterLayerSaveAsDialog::toggleResolutionSize ( )
private
void QgsRasterLayerSaveAsDialog::updateCrsGroup ( )
private
void QgsRasterLayerSaveAsDialog::updateResolutionStateMsg ( )
private

Definition at line 399 of file qgsrasterlayersaveasdialog.cpp.

References mResolutionState, OriginalResolution, tr, and UserResolution.

Referenced by recalcResolution(), and recalcSize().

bool QgsRasterLayerSaveAsDialog::validate ( ) const
private

Definition at line 770 of file qgsrasterlayersaveasdialog.cpp.

double QgsRasterLayerSaveAsDialog::xResolution ( ) const

Definition at line 238 of file qgsrasterlayersaveasdialog.cpp.

Referenced by crsChanged(), and recalcSize().

double QgsRasterLayerSaveAsDialog::yResolution ( ) const

Definition at line 243 of file qgsrasterlayersaveasdialog.cpp.

Referenced by crsChanged(), and recalcSize().

Member Data Documentation

QgsCoordinateReferenceSystem QgsRasterLayerSaveAsDialog::mCurrentCrs
private
QgsRectangle QgsRasterLayerSaveAsDialog::mCurrentExtent
private

Definition at line 112 of file qgsrasterlayersaveasdialog.h.

Referenced by QgsRasterLayerSaveAsDialog().

QgsRasterDataProvider* QgsRasterLayerSaveAsDialog::mDataProvider
private
QgsCoordinateReferenceSystem QgsRasterLayerSaveAsDialog::mLayerCrs
private
QVector<bool> QgsRasterLayerSaveAsDialog::mNoDataToEdited
private

Definition at line 118 of file qgsrasterlayersaveasdialog.h.

Referenced by noDataCellTextEdited(), and setNoDataToEdited().

QgsCoordinateReferenceSystem QgsRasterLayerSaveAsDialog::mPreviousCrs
private

Definition at line 116 of file qgsrasterlayersaveasdialog.h.

Referenced by crsChanged().

QgsRasterLayer* QgsRasterLayerSaveAsDialog::mRasterLayer
private
ResolutionState QgsRasterLayerSaveAsDialog::mResolutionState
private
QgsCoordinateReferenceSystem QgsRasterLayerSaveAsDialog::mUserCrs
private

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