QGIS API Documentation  2.0.1-Dufour
 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>

Collaboration diagram for QgsRasterLayerSaveAsDialog:
Collaboration graph
[legend]

Public Types

enum  Mode { RawDataMode, RenderedImageMode }
enum  CrsState { OriginalCrs, CurrentCrs, UserCrs }
enum  ExtentState { OriginalExtent, CurrentExtent, UserExtent }
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_mCurrentExtentButton_clicked ()
void on_mOriginalExtentButton_clicked ()
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_mXMinLineEdit_textEdited (const QString &)
void on_mXMaxLineEdit_textEdited (const QString &)
void on_mYMinLineEdit_textEdited (const QString &)
void on_mYMaxLineEdit_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 ()

Private Member Functions

void setValidators ()
void setOutputExtent (const QgsRectangle &r, const QgsCoordinateReferenceSystem &srcCrs, ExtentState state)
void extentChanged ()
void updateExtentStateMsg ()
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
ExtentState mExtentState
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:
OriginalExtent 
CurrentExtent 
UserExtent 

Definition at line 42 of file qgsrasterlayersaveasdialog.h.

Enumerator:
RawDataMode 
RenderedImageMode 

Definition at line 31 of file qgsrasterlayersaveasdialog.h.

Enumerator:
OriginalResolution 
UserResolution 

Definition at line 48 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 152 of file qgsrasterlayersaveasdialog.cpp.

Member Function Documentation

virtual void QgsRasterLayerSaveAsDialog::accept ( )
inlinevirtualslot

Definition at line 87 of file qgsrasterlayersaveasdialog.h.

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

Definition at line 789 of file qgsrasterlayersaveasdialog.cpp.

Referenced by addNoDataRow().

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

Definition at line 286 of file qgsrasterlayersaveasdialog.cpp.

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

Definition at line 318 of file qgsrasterlayersaveasdialog.cpp.

void QgsRasterLayerSaveAsDialog::hideOutput ( )

Definition at line 324 of file qgsrasterlayersaveasdialog.cpp.

int QgsRasterLayerSaveAsDialog::maximumTileSizeX ( ) const

Definition at line 261 of file qgsrasterlayersaveasdialog.cpp.

int QgsRasterLayerSaveAsDialog::maximumTileSizeY ( ) const

Definition at line 266 of file qgsrasterlayersaveasdialog.cpp.

QgsRasterLayerSaveAsDialog::Mode QgsRasterLayerSaveAsDialog::mode ( ) const

Definition at line 576 of file qgsrasterlayersaveasdialog.cpp.

References RawDataMode, and RenderedImageMode.

int QgsRasterLayerSaveAsDialog::nColumns ( ) const

Definition at line 241 of file qgsrasterlayersaveasdialog.cpp.

Referenced by recalcResolution().

QgsRasterRangeList QgsRasterLayerSaveAsDialog::noData ( ) const

Definition at line 800 of file qgsrasterlayersaveasdialog.cpp.

References noDataCellValue().

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

Definition at line 663 of file qgsrasterlayersaveasdialog.cpp.

References mNoDataToEdited, QgsDebugMsg, and setNoDataToEdited().

Referenced by addNoDataRow().

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

Definition at line 779 of file qgsrasterlayersaveasdialog.cpp.

Referenced by noData().

int QgsRasterLayerSaveAsDialog::nRows ( ) const

Definition at line 246 of file qgsrasterlayersaveasdialog.cpp.

Referenced by recalcResolution().

void QgsRasterLayerSaveAsDialog::on_mAddNoDataManuallyToolButton_clicked ( )
privateslot

Definition at line 587 of file qgsrasterlayersaveasdialog.cpp.

References addNoDataRow().

void QgsRasterLayerSaveAsDialog::on_mBrowseButton_clicked ( )
privateslot

Definition at line 156 of file qgsrasterlayersaveasdialog.cpp.

References tr.

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

Definition at line 102 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::on_mCrsComboBox_currentIndexChanged ( int  )
inlineprivateslot

Definition at line 112 of file qgsrasterlayersaveasdialog.h.

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

Definition at line 231 of file qgsrasterlayersaveasdialog.cpp.

References mDataProvider, and QgsDataProvider::name().

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

Definition at line 97 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::on_mOriginalSizePushButton_clicked ( )
inlineprivateslot

Definition at line 101 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::on_mPyramidsGroupBox_toggled ( bool  toggled)
privateslot

Definition at line 730 of file qgsrasterlayersaveasdialog.cpp.

References populatePyramidsLevels().

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

Definition at line 616 of file qgsrasterlayersaveasdialog.cpp.

void QgsRasterLayerSaveAsDialog::on_mRemoveSelectedNoDataToolButton_clicked ( )
privateslot

Definition at line 611 of file qgsrasterlayersaveasdialog.cpp.

void QgsRasterLayerSaveAsDialog::on_mResolutionRadioButton_toggled ( bool  )
inlineprivateslot

Definition at line 96 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::on_mRowsLineEdit_textEdited ( const QString &  )
inlineprivateslot

Definition at line 103 of file qgsrasterlayersaveasdialog.h.

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

Definition at line 207 of file qgsrasterlayersaveasdialog.cpp.

void QgsRasterLayerSaveAsDialog::on_mTileModeCheckBox_toggled ( bool  toggled)
privateslot

Definition at line 703 of file qgsrasterlayersaveasdialog.cpp.

void QgsRasterLayerSaveAsDialog::on_mXMaxLineEdit_textEdited ( const QString &  )
inlineprivateslot

Definition at line 106 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::on_mXMinLineEdit_textEdited ( const QString &  )
inlineprivateslot

Definition at line 105 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::on_mXResolutionLineEdit_textEdited ( const QString &  )
inlineprivateslot

Definition at line 98 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::on_mYMaxLineEdit_textEdited ( const QString &  )
inlineprivateslot

Definition at line 108 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::on_mYMinLineEdit_textEdited ( const QString &  )
inlineprivateslot

Definition at line 107 of file qgsrasterlayersaveasdialog.h.

void QgsRasterLayerSaveAsDialog::on_mYResolutionLineEdit_textEdited ( const QString &  )
inlineprivateslot

Definition at line 99 of file qgsrasterlayersaveasdialog.h.

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

Definition at line 276 of file qgsrasterlayersaveasdialog.cpp.

QString QgsRasterLayerSaveAsDialog::outputFormat ( ) const

Definition at line 281 of file qgsrasterlayersaveasdialog.cpp.

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

Definition at line 80 of file qgsrasterlayersaveasdialog.h.

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

Definition at line 78 of file qgsrasterlayersaveasdialog.h.

QList< int > QgsRasterLayerSaveAsDialog::pyramidsList ( ) const

Definition at line 815 of file qgsrasterlayersaveasdialog.cpp.

QString QgsRasterLayerSaveAsDialog::pyramidsResamplingMethod ( ) const
inline

Definition at line 77 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::setOutputExtent ( const QgsRectangle r,
const QgsCoordinateReferenceSystem srcCrs,
ExtentState  state 
)
private
void QgsRasterLayerSaveAsDialog::setResolution ( double  xRes,
double  yRes,
const QgsCoordinateReferenceSystem srcCrs 
)
private
void QgsRasterLayerSaveAsDialog::setValidators ( )
private

Definition at line 138 of file qgsrasterlayersaveasdialog.cpp.

Referenced by QgsRasterLayerSaveAsDialog().

bool QgsRasterLayerSaveAsDialog::tileMode ( ) const

Definition at line 271 of file qgsrasterlayersaveasdialog.cpp.

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

Definition at line 463 of file qgsrasterlayersaveasdialog.cpp.

References CurrentExtent, mExtentState, OriginalExtent, tr, and UserExtent.

Referenced by extentChanged().

void QgsRasterLayerSaveAsDialog::updateResolutionStateMsg ( )
private

Definition at line 434 of file qgsrasterlayersaveasdialog.cpp.

References mResolutionState, OriginalResolution, tr, and UserResolution.

Referenced by recalcResolution(), and recalcSize().

bool QgsRasterLayerSaveAsDialog::validate ( ) const
private

Definition at line 830 of file qgsrasterlayersaveasdialog.cpp.

double QgsRasterLayerSaveAsDialog::xResolution ( ) const

Definition at line 251 of file qgsrasterlayersaveasdialog.cpp.

Referenced by crsChanged(), and recalcSize().

double QgsRasterLayerSaveAsDialog::yResolution ( ) const

Definition at line 256 of file qgsrasterlayersaveasdialog.cpp.

Referenced by crsChanged(), and recalcSize().

Member Data Documentation

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

Definition at line 126 of file qgsrasterlayersaveasdialog.h.

Referenced by crsChanged(), and on_mCurrentExtentButton_clicked().

QgsRasterDataProvider* QgsRasterLayerSaveAsDialog::mDataProvider
private
ExtentState QgsRasterLayerSaveAsDialog::mExtentState
private

Definition at line 131 of file qgsrasterlayersaveasdialog.h.

Referenced by crsChanged(), setOutputExtent(), and updateExtentStateMsg().

QgsCoordinateReferenceSystem QgsRasterLayerSaveAsDialog::mLayerCrs
private
QVector<bool> QgsRasterLayerSaveAsDialog::mNoDataToEdited
private

Definition at line 133 of file qgsrasterlayersaveasdialog.h.

Referenced by noDataCellTextEdited(), and setNoDataToEdited().

QgsCoordinateReferenceSystem QgsRasterLayerSaveAsDialog::mPreviousCrs
private

Definition at line 130 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: