Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
4,990 additions
and
1,225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
class QgsRasterResampleFilter | ||
{ | ||
%TypeHeaderCode | ||
#include "qgsrasterresamplefilter.h" | ||
%End | ||
|
||
public: | ||
QgsRasterResampleFilter( QgsRasterFace* input = 0 ); | ||
~QgsRasterResampleFilter(); | ||
|
||
void * readBlock( int bandNo, const QgsRectangle & extent, int width, int height ); | ||
|
||
/**Set resampler for zoomed in scales. Takes ownership of the object*/ | ||
void setZoomedInResampler( QgsRasterResampler* r ); | ||
const QgsRasterResampler* zoomedInResampler(); | ||
|
||
/**Set resampler for zoomed out scales. Takes ownership of the object*/ | ||
void setZoomedOutResampler( QgsRasterResampler* r ); | ||
const QgsRasterResampler* zoomedOutResampler() const; | ||
|
||
void setMaxOversampling( double os ); | ||
double maxOversampling() const; | ||
|
||
virtual void writeXML( QDomDocument& doc, QDomElement& parentElem ) const = 0; | ||
|
||
/**Sets base class members from xml. Usually called from create() methods of subclasses*/ | ||
void readXML( const QDomElement& rendererElem ); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
|
||
class QgsRasterFormatSaveOptionsWidget : QWidget | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsrasterformatsaveoptionswidget.h> | ||
%End | ||
|
||
public: | ||
|
||
enum Type | ||
{ | ||
Default, // everything except profile buttons (save as dlg) | ||
Full, // everything (options dlg) | ||
Table, // just table | ||
LineEdit // just the line edit | ||
}; | ||
|
||
QgsRasterFormatSaveOptionsWidget( QWidget* parent = 0, QString format = "GTiff", | ||
QgsRasterFormatSaveOptionsWidget::Type type = Default, | ||
QString provider = "gdal" ); | ||
~QgsRasterFormatSaveOptionsWidget(); | ||
|
||
void setFormat( QString format ); | ||
void setProvider( QString provider ); | ||
QStringList options() const; | ||
void setType( QgsRasterFormatSaveOptionsWidget::Type type = Default ); | ||
|
||
public slots: | ||
|
||
void apply(); | ||
void helpOptions(); | ||
bool validateOptions( bool gui = true ); | ||
|
||
private slots: | ||
|
||
void on_mProfileNewButton_clicked(); | ||
void on_mProfileDeleteButton_clicked(); | ||
void on_mProfileResetButton_clicked(); | ||
void on_mOptionsAddButton_clicked(); | ||
void on_mOptionsDeleteButton_clicked(); | ||
void on_mOptionsLabel_clicked(); | ||
void on_mOptionsLineEdit_editingFinished(); | ||
void optionsTableChanged(); | ||
void optionsTableEnableDeleteButton(); | ||
void updateOptions(); | ||
void swapOptionsUI( int newIndex = -1 ); | ||
|
||
private: | ||
|
||
QString settingsKey( QString profile ) const; | ||
QString currentProfileKey() const; | ||
QString createOptions( QString profile ) const; | ||
void deleteCreateOptions( QString profile ); | ||
void setCreateOptions( ); | ||
void setCreateOptions( QString profile, QString options ); | ||
void setCreateOptions( QString profile, QStringList list ); | ||
QStringList profiles() const; | ||
void updateProfiles(); | ||
bool eventFilter(QObject *obj, QEvent *event); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.