30 class QProgressDialog;
38 ReliefColor(
const QColor& c,
double min,
double max ): color( c ), minElevation( min ), maxElevation( max ) { }
44 QgsRelief(
const QString& inputFile,
const QString& outputFile,
const QString& outputFormat );
50 int processRaster( QProgressDialog* p );
52 double zFactor()
const {
return mZFactor; }
55 void clearReliefColors();
56 void addReliefColorClass(
const ReliefColor& color );
57 const QList< ReliefColor >&
reliefColors()
const {
return mReliefColors; }
62 QList< ReliefColor > calculateOptimizedReliefClasses();
65 bool exportFrequencyDistributionToCsv(
const QString&
file );
91 bool processNineCellWindow(
float* x1,
float* x2,
float* x3,
float* x4,
float* x5,
float* x6,
float* x7,
float* x8,
float* x9,
92 unsigned char* red,
unsigned char* green,
unsigned char* blue );
95 GDALDatasetH openInputFile(
int& nCellsX,
int& nCellsY );
98 GDALDriverH openOutputDriver();
101 GDALDatasetH openOutputFile( GDALDatasetH inputDataset, GDALDriverH outputDriver );
104 bool setElevationColor(
double elevation,
int* red,
int* green,
int* blue );
107 void setDefaultReliefColors();
110 int frequencyClassForElevation(
double elevation,
double minElevation,
double elevationClassRange );
112 void optimiseClassBreaks( QList<int>& breaks,
double* frequencies );
118 bool calculateRegression(
const QList< QPair < int, double > >& input,
double& a,
double& b );
121 #endif // QGSRELIEF_H
QgsHillshadeFilter * mHillshadeFilter300
void setZFactor(double factor)
QgsSlopeFilter * mSlopeFilter
float mOutputNodataValue
The nodata value of the output layer.
double ANALYSIS_EXPORT max(double x, double y)
returns the maximum of two doubles or the first argument if both are equal
Calculates aspect values in a window of 3x3 cells based on first order derivatives in x- and y- direc...
float mInputNodataValue
The nodata value of the input layer.
ReliefColor(const QColor &c, double min, double max)
QgsAspectFilter * mAspectFilter
QList< ReliefColor > mReliefColors
QgsHillshadeFilter * mHillshadeFilter285
Calculates slope values in a window of 3x3 cells based on first order derivatives in x- and y- direct...
QgsHillshadeFilter * mHillshadeFilter315
const QList< ReliefColor > & reliefColors() const
void setReliefColors(const QList< ReliefColor > &c)
double ANALYSIS_EXPORT min(double x, double y)
returns the minimum of two doubles or the first argument if both are equal
Produces coloured relief rasters from DEM.