File tree Expand file tree Collapse file tree 2 files changed +41
-14
lines changed
python/analysis/auto_generated/raster Expand file tree Collapse file tree 2 files changed +41
-14
lines changed Original file line number Diff line number Diff line change 10
10
11
11
12
12
13
-
14
- struct QgsRasterCalculatorEntry
13
+ class QgsRasterCalculatorEntry
15
14
{
15
+ %Docstring
16
+ Represents an individual raster layer/band number entry within a raster calculation.
17
+ %End
18
+
19
+ %TypeHeaderCode
20
+ #include "qgsrastercalculator.h"
16
21
%TypeHeaderCode
17
22
#include <qgsrastercalculator.h>
18
23
%End
24
+ %End
25
+ public:
26
+
27
+ QString ref;
28
+
29
+ QgsRasterLayer *raster;
19
30
20
- QString ref; //name
21
- QgsRasterLayer *raster; //pointer to rasterlayer
22
- int bandNumber; //raster band number
31
+ int bandNumber;
23
32
};
24
33
25
34
class QgsRasterCalculator
26
35
{
27
36
%Docstring
28
- Raster calculator class*
37
+ Performs raster layer calculations.
29
38
%End
30
39
31
40
%TypeHeaderCode
Original file line number Diff line number Diff line change 29
29
class QgsRasterLayer ;
30
30
class QgsFeedback ;
31
31
32
-
33
- struct ANALYSIS_EXPORT QgsRasterCalculatorEntry
32
+ /* *
33
+ * \ingroup analysis
34
+ * \class QgsRasterCalculatorEntry
35
+ * Represents an individual raster layer/band number entry within a raster calculation.
36
+ */
37
+ class ANALYSIS_EXPORT QgsRasterCalculatorEntry
34
38
{
35
39
#ifdef SIP_RUN
36
- % TypeHeaderCode
40
+ % TypeHeaderCode
37
41
#include < qgsrastercalculator.h>
38
- % End
42
+ % End
39
43
#endif
40
44
41
- QString ref; // name
42
- QgsRasterLayer *raster; // pointer to rasterlayer
43
- int bandNumber; // raster band number
45
+ public:
46
+
47
+ /* *
48
+ * Name of entry.
49
+ */
50
+ QString ref;
51
+
52
+ /* *
53
+ * Raster layer associated with entry.
54
+ */
55
+ QgsRasterLayer *raster = nullptr ;
56
+
57
+ /* *
58
+ * Band number for entry. Numbering for bands usually starts at 1 for the first band, not 0.
59
+ */
60
+ int bandNumber = 1 ;
44
61
};
45
62
46
63
/* *
47
64
* \ingroup analysis
48
- * Raster calculator class*/
65
+ * Performs raster layer calculations.
66
+ */
49
67
class ANALYSIS_EXPORT QgsRasterCalculator
50
68
{
51
69
public:
You can’t perform that action at this time.
0 commit comments