QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
QgsRasterFormatSaveOptionsWidget Class Reference

A widget to select format-specific raster saving options. More...

#include <qgsrasterformatsaveoptionswidget.h>

Inheritance diagram for QgsRasterFormatSaveOptionsWidget:
Inheritance graph
[legend]

Public Types

enum  Type {
  Default , Full , Table , LineEdit ,
  ProfileLineEdit
}
 

Public Slots

void apply ()
 
void helpOptions ()
 Opens window with options description for given provider and output format.
 
void updateProfiles ()
 Reloads profiles list from QGIS settings.
 
QString validateOptions (bool gui=true, bool reportOk=true)
 Validates options correctness.
 

Signals

void optionsChanged ()
 Emitted when the options configured in the widget are changed.
 

Public Member Functions

 QgsRasterFormatSaveOptionsWidget (QWidget *parent SIP_TRANSFERTHIS=nullptr, const QString &format="GTiff", QgsRasterFormatSaveOptionsWidget::Type type=Default, const QString &provider="gdal")
 
QStringList options () const
 Returns list of selected options.
 
void setFormat (const QString &format)
 Set output raster format, it is used to determine list of available options.
 
void setOptions (const QString &options)
 Populate widget with user-defined options.
 
void setProvider (const QString &provider)
 Set provider key, , it is used to determine list of available options.
 
void setPyramidsFormat (Qgis::RasterPyramidFormat format)
 Set pyramids format to use.
 
void setRasterFileName (const QString &file)
 Set output raster file name.
 
void setRasterLayer (QgsRasterLayer *rasterLayer)
 Set output raster layer.
 
void setType (QgsRasterFormatSaveOptionsWidget::Type type=Default)
 Set widget look and feel.
 

Protected Member Functions

void showEvent (QShowEvent *event) override
 

Detailed Description

A widget to select format-specific raster saving options.

Definition at line 31 of file qgsrasterformatsaveoptionswidget.h.

Member Enumeration Documentation

◆ Type

Enumerator
Default 
Full 
Table 
LineEdit 
ProfileLineEdit 

Definition at line 37 of file qgsrasterformatsaveoptionswidget.h.

Constructor & Destructor Documentation

◆ QgsRasterFormatSaveOptionsWidget()

QgsRasterFormatSaveOptionsWidget::QgsRasterFormatSaveOptionsWidget ( QWidget *parent  SIP_TRANSFERTHIS = nullptr,
const QString &  format = "GTiff",
QgsRasterFormatSaveOptionsWidget::Type  type = Default,
const QString &  provider = "gdal" 
)

Definition at line 40 of file qgsrasterformatsaveoptionswidget.cpp.

Member Function Documentation

◆ apply

void QgsRasterFormatSaveOptionsWidget::apply ( )
slot

Definition at line 274 of file qgsrasterformatsaveoptionswidget.cpp.

◆ helpOptions

void QgsRasterFormatSaveOptionsWidget::helpOptions ( )
slot

Opens window with options description for given provider and output format.

Definition at line 279 of file qgsrasterformatsaveoptionswidget.cpp.

◆ options()

QStringList QgsRasterFormatSaveOptionsWidget::options ( ) const

Returns list of selected options.

See also
setOptions()

Definition at line 492 of file qgsrasterformatsaveoptionswidget.cpp.

◆ optionsChanged

void QgsRasterFormatSaveOptionsWidget::optionsChanged ( )
signal

Emitted when the options configured in the widget are changed.

◆ setFormat()

void QgsRasterFormatSaveOptionsWidget::setFormat ( const QString &  format)

Set output raster format, it is used to determine list of available options.

Definition at line 129 of file qgsrasterformatsaveoptionswidget.cpp.

◆ setOptions()

void QgsRasterFormatSaveOptionsWidget::setOptions ( const QString &  options)

Populate widget with user-defined options.

String should contain key=value pairs separated by spaces, e.g. "TILED=YES TFW=YES"

See also
options()

Definition at line 589 of file qgsrasterformatsaveoptionswidget.cpp.

◆ setProvider()

void QgsRasterFormatSaveOptionsWidget::setProvider ( const QString &  provider)

Set provider key, , it is used to determine list of available options.

Definition at line 136 of file qgsrasterformatsaveoptionswidget.cpp.

◆ setPyramidsFormat()

void QgsRasterFormatSaveOptionsWidget::setPyramidsFormat ( Qgis::RasterPyramidFormat  format)
inline

Set pyramids format to use.

Definition at line 94 of file qgsrasterformatsaveoptionswidget.h.

◆ setRasterFileName()

void QgsRasterFormatSaveOptionsWidget::setRasterFileName ( const QString &  file)
inline

Set output raster file name.

Definition at line 71 of file qgsrasterformatsaveoptionswidget.h.

◆ setRasterLayer()

void QgsRasterFormatSaveOptionsWidget::setRasterLayer ( QgsRasterLayer rasterLayer)
inline

Set output raster layer.

Definition at line 66 of file qgsrasterformatsaveoptionswidget.h.

◆ setType()

void QgsRasterFormatSaveOptionsWidget::setType ( QgsRasterFormatSaveOptionsWidget::Type  type = Default)

Set widget look and feel.

Definition at line 143 of file qgsrasterformatsaveoptionswidget.cpp.

◆ showEvent()

void QgsRasterFormatSaveOptionsWidget::showEvent ( QShowEvent *  event)
overrideprotected

Definition at line 582 of file qgsrasterformatsaveoptionswidget.cpp.

◆ updateProfiles

void QgsRasterFormatSaveOptionsWidget::updateProfiles ( )
slot

Reloads profiles list from QGIS settings.

Definition at line 182 of file qgsrasterformatsaveoptionswidget.cpp.

◆ validateOptions

QString QgsRasterFormatSaveOptionsWidget::validateOptions ( bool  gui = true,
bool  reportOk = true 
)
slot

Validates options correctness.

Definition at line 313 of file qgsrasterformatsaveoptionswidget.cpp.


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