QGIS API Documentation  3.24.2-Tisler (13c1a02865)
qgsraster.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsraster.h - Raster namespace
3  --------------------------------------
4  Date : Apr 2013
5  Copyright : (C) 2013 by Radim Blazek
6  email : radim dot blazek at gmail dot com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSRASTER_H
19 #define QGSRASTER_H
20 
21 #include "qgis_core.h"
22 #include "qgis_sip.h"
23 #include <QString>
24 
25 #include "qgis.h"
26 
31 class CORE_EXPORT QgsRaster
32 {
33  public:
34  // This is modified copy of GDALColorInterp
36  {
37  UndefinedColorInterpretation = 0,
38  GrayIndex = 1,
39  PaletteIndex = 2,
40  RedBand = 3,
41  GreenBand = 4,
42  BlueBand = 5,
43  AlphaBand = 6,
44  HueBand = 7,
45  SaturationBand = 8,
46  LightnessBand = 9,
47  CyanBand = 10,
48  MagentaBand = 11,
49  YellowBand = 12,
50  BlackBand = 13,
51  YCbCr_YBand = 14,
52  YCbCr_CbBand = 15,
53  YCbCr_CrBand = 16,
54  ContinuousPalette = 17
55  };
56 
58  {
59  IdentifyFormatUndefined = 0,
60  IdentifyFormatValue = 1, // numerical pixel value
61  IdentifyFormatText = 1 << 1, // WMS text
62  IdentifyFormatHtml = 1 << 2, // WMS HTML
63  IdentifyFormatFeature = 1 << 3, // WMS GML/JSON -> feature
64  };
65 
66  // Progress types
68  {
69  ProgressHistogram = 0,
70  ProgressPyramids = 1,
71  ProgressStatistics = 2
72  };
73 
75  {
76  PyramidsFlagNo = 0,
77  PyramidsFlagYes = 1,
78  PyramidsCopyExisting = 2
79  };
80 
82  {
83  PyramidsGTiff = 0,
84  PyramidsInternal = 1,
85  PyramidsErdas = 2
86  };
87 
90  {
92  SingleBandGray, // a single band image drawn as a range of gray colors
93  SingleBandPseudoColor, // a single band image drawn using a pseudocolor algorithm
94  PalettedColor, // a "Palette" image drawn using color table
95  PalettedSingleBandGray, // a "Palette" layer drawn in gray scale
96  PalettedSingleBandPseudoColor, // a "Palette" layerdrawn using a pseudocolor algorithm
97  PalettedMultiBandColor, // currently not supported
98  MultiBandSingleBandGray, // a layer containing 2 or more bands, but a single band drawn as a range of gray colors
99  MultiBandSingleBandPseudoColor, // a layer containing 2 or more bands, but a single band drawn using a pseudocolor algorithm
100  MultiBandColor, // a layer containing 2 or more bands, mapped to RGB color space. In the case of a multiband with only two bands, one band will be mapped to more than one color.
101  SingleBandColorDataStyle // ARGB values rendered directly
102  };
103 
112  static bool isRepresentableValue( double value, Qgis::DataType dataType ) SIP_SKIP;
113 
123  static double representableValue( double value, Qgis::DataType dataType );
124 };
125 
126 #endif
127 
128 
DataType
Raster data types.
Definition: qgis.h:121
Raster namespace.
Definition: qgsraster.h:32
IdentifyFormat
Definition: qgsraster.h:58
RasterPyramidsFormat
Definition: qgsraster.h:82
RasterBuildPyramids
Definition: qgsraster.h:75
ColorInterpretation
Definition: qgsraster.h:36
DrawingStyle
This enumerator describes the different kinds of drawing we can do.
Definition: qgsraster.h:90
@ MultiBandColor
Definition: qgsraster.h:100
@ PalettedColor
Definition: qgsraster.h:94
@ SingleBandPseudoColor
Definition: qgsraster.h:93
@ PalettedSingleBandPseudoColor
Definition: qgsraster.h:96
@ PalettedSingleBandGray
Definition: qgsraster.h:95
@ SingleBandGray
Definition: qgsraster.h:92
@ MultiBandSingleBandGray
Definition: qgsraster.h:98
@ PalettedMultiBandColor
Definition: qgsraster.h:97
@ UndefinedDrawingStyle
Definition: qgsraster.h:91
@ MultiBandSingleBandPseudoColor
Definition: qgsraster.h:99
RasterProgressType
Definition: qgsraster.h:68
#define SIP_SKIP
Definition: qgis_sip.h:126