52 double zFactor()
const {
return mZFactor; }
55 void clearReliefColors();
56 void addReliefColorClass(
const ReliefColor& color );
65 bool exportFrequencyDistributionToCsv(
const QString& file );
76 float mInputNodataValue;
78 float mOutputNodataValue;
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();
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 );
124 #endif // QGSRELIEF_H void setZFactor(double factor)
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...
ReliefColor(const QColor &c, double min, double max)
Calculates slope values in a window of 3x3 cells based on first order derivatives in x- and y- direct...
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.