File: qgsrelief.sip.in

package info (click to toggle)
qgis 3.40.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,181,336 kB
  • sloc: cpp: 1,593,302; python: 370,494; xml: 23,474; perl: 3,664; sh: 3,482; ansic: 2,257; sql: 2,133; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 157
file content (76 lines) | stat: -rw-r--r-- 2,506 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/analysis/raster/qgsrelief.h                                      *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/





class QgsRelief
{
%Docstring(signature="appended")
Produces colored relief rasters from DEM.
%End

%TypeHeaderCode
#include "qgsrelief.h"
%End
  public:
    struct ReliefColor
    {
        ReliefColor( const QColor &c, double min, double max );
        double minElevation;
        double maxElevation;
    };

    QgsRelief( const QString &inputFile, const QString &outputFile, const QString &outputFormat );
    ~QgsRelief();


    int processRaster( QgsFeedback *feedback = 0 );
%Docstring
Starts the calculation, reads from mInputFile and stores the result in
mOutputFile

:param feedback: feedback object that receives update and that is
                 checked for cancellation.

: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();
%Docstring
Calculates class breaks according with the method of Buenzli (2011)
using an iterative algorithm for segmented regression

:return: ``True`` in case of success
%End

    bool exportFrequencyDistributionToCsv( const QString &file );
%Docstring
Write frequency of elevation values to file for manual inspection
%End

  private:
    QgsRelief( const QgsRelief &rh );
};

/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/analysis/raster/qgsrelief.h                                      *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/