75 lines
2.4 KiB
Plaintext
Raw Normal View History

2017-06-21 09:55:29 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/analysis/raster/qgsrelief.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsRelief
{
2017-06-21 09:55:29 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Produces colored relief rasters from DEM*
%End
2017-06-21 09:55:29 +02:00
%TypeHeaderCode
#include "qgsrelief.h"
%End
public:
struct ReliefColor
{
ReliefColor( const QColor &c, double min, double max );
QColor color;
double minElevation;
double maxElevation;
};
QgsRelief( const QString &inputFile, const QString &outputFile, const QString &outputFormat );
~QgsRelief();
2017-06-21 09:55:29 +02:00
int processRaster( QgsFeedback *feedback = 0 );
2017-06-21 09:55:29 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Starts the calculation, reads from mInputFile and stores the result in mOutputFile
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param feedback: feedback object that receives update and that is checked for cancelation.
2017-06-21 09:55:29 +02:00
:return: 0 in case of success*
%End
double zFactor() const;
void setZFactor( double factor );
void clearReliefColors();
void addReliefColorClass( const QgsRelief::ReliefColor &color );
QList< QgsRelief::ReliefColor > reliefColors() const;
void setReliefColors( const QList< QgsRelief::ReliefColor > &c );
QList< QgsRelief::ReliefColor > calculateOptimizedReliefClasses();
2017-06-21 09:55:29 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Calculates class breaks according with the method of Buenzli (2011) using an iterative algorithm for segmented regression
2017-06-21 09:55:29 +02:00
:return: true in case of success*
%End
bool exportFrequencyDistributionToCsv( const QString &file );
2017-06-21 09:55:29 +02:00
%Docstring
Write frequency of elevation values to file for manual inspection
%End
private:
QgsRelief( const QgsRelief &rh );
};
2017-06-21 09:55:29 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/analysis/raster/qgsrelief.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/