23#include "qgis_analysis.h"
47 QgsRelief(
const QString &inputFile,
const QString &outputFile,
const QString &outputFormat );
62 OutputCreationFailed = 3,
83 double zFactor()
const {
return mZFactor; }
99 void clearReliefColors();
117 QList<QgsRasterReliefColor>
reliefColors()
const {
return mReliefColors; }
133 QList<QgsRasterReliefColor> calculateOptimizedReliefClasses();
136 bool exportFrequencyDistributionToCsv(
const QString &file );
145 QString mOutputFormat;
147 double mCellSizeX = 0.0;
148 double mCellSizeY = 0.0;
150 float mInputNodataValue = -1;
152 float mOutputNodataValue = -1;
156 std::unique_ptr<QgsSlopeFilter> mSlopeFilter;
157 std::unique_ptr<QgsAspectFilter> mAspectFilter;
158 std::unique_ptr<QgsHillshadeFilter> mHillshadeFilter285;
159 std::unique_ptr<QgsHillshadeFilter> mHillshadeFilter300;
160 std::unique_ptr<QgsHillshadeFilter> mHillshadeFilter315;
163 QList<QgsRasterReliefColor> mReliefColors;
165 bool processNineCellWindow(
float *x1,
float *x2,
float *x3,
float *x4,
float *x5,
float *x6,
float *x7,
float *x8,
float *x9,
unsigned char *red,
unsigned char *green,
unsigned char *blue );
170 bool getElevationColor(
double elevation,
int *red,
int *green,
int *blue )
const;
173 void setDefaultReliefColors();
179 static int frequencyClassForElevation(
double elevation,
double minElevation,
double elevationClassRange );
Calculates aspect values in a window of 3x3 cells based on first order derivatives in x- and y- direc...
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Defines elevation range and color for raster relief coloring.
Produces colored relief rasters from DEM.
void setZFactor(double factor)
Sets the z factor, which controls vertical elevation exaggeration.
Result
Calculation results.
QgsRelief(const QString &inputFile, const QString &outputFile, const QString &outputFormat)
Constructor for QgsRelief.
double zFactor() const
Returns the z factor, which controls vertical elevation exaggeration.
QList< QgsRasterReliefColor > reliefColors() const
Returns a list of all relief colors.
QgsRelief & operator=(const QgsRelief &rh)=delete
QgsRelief(const QgsRelief &rh)=delete
void setReliefColors(const QList< QgsRasterReliefColor > &c)
Sets the list of relief colors.
Calculates slope values in a window of 3x3 cells based on first order derivatives in x- and y- direct...
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into c