QGIS API Documentation  2.99.0-Master (d55fa22)
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 
30 class CORE_EXPORT QgsRaster
31 {
32  public:
33  // This is modified copy of GDALColorInterp
35  {
36  UndefinedColorInterpretation = 0,
37  GrayIndex = 1,
39  PaletteIndex = 2, // indexed color table
41  RedBand = 3,
43  GreenBand = 4,
45  BlueBand = 5,
47  AlphaBand = 6,
49  HueBand = 7,
51  SaturationBand = 8,
53  LightnessBand = 9,
55  CyanBand = 10,
57  MagentaBand = 11,
59  YellowBand = 12,
61  BlackBand = 13,
63  YCbCr_YBand = 14,
65  YCbCr_CbBand = 15,
67  YCbCr_CrBand = 16,
69  ContinuousPalette = 17
71  };
72 
74  {
75  IdentifyFormatUndefined = 0,
76  IdentifyFormatValue = 1, // numerical pixel value
77  IdentifyFormatText = 1 << 1, // WMS text
78  IdentifyFormatHtml = 1 << 2, // WMS HTML
79  IdentifyFormatFeature = 1 << 3, // WMS GML/JSON -> feature
80  };
81 
82  // Progress types
84  {
85  ProgressHistogram = 0,
86  ProgressPyramids = 1,
87  ProgressStatistics = 2
88  };
89 
91  {
92  PyramidsFlagNo = 0,
93  PyramidsFlagYes = 1,
94  PyramidsCopyExisting = 2
95  };
96 
98  {
99  PyramidsGTiff = 0,
100  PyramidsInternal = 1,
101  PyramidsErdas = 2
102  };
103 
106  {
108  SingleBandGray, // a single band image drawn as a range of gray colors
109  SingleBandPseudoColor, // a single band image drawn using a pseudocolor algorithm
110  PalettedColor, // a "Palette" image drawn using color table
111  PalettedSingleBandGray, // a "Palette" layer drawn in gray scale
112  PalettedSingleBandPseudoColor, // a "Palette" layerdrawn using a pseudocolor algorithm
113  PalettedMultiBandColor, // currently not supported
114  MultiBandSingleBandGray, // a layer containing 2 or more bands, but a single band drawn as a range of gray colors
115  MultiBandSingleBandPseudoColor, // a layer containing 2 or more bands, but a single band drawn using a pseudocolor algorithm
116  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.
117  SingleBandColorDataStyle // ARGB values rendered directly
118  };
119 
126  static bool isRepresentableValue( double value, Qgis::DataType dataType ) SIP_SKIP;
127 
135  static double representableValue( double value, Qgis::DataType dataType );
136 };
137 
138 #endif
139 
140 
IdentifyFormat
Definition: qgsraster.h:73
DrawingStyle
This enumerator describes the different kinds of drawing we can do.
Definition: qgsraster.h:105
RasterProgressType
Definition: qgsraster.h:83
DataType
Raster data types.
Definition: qgis.h:64
#define SIP_SKIP
Definition: qgis_sip.h:87
ColorInterpretation
Definition: qgsraster.h:34
Raster namespace.
Definition: qgsraster.h:30
RasterBuildPyramids
Definition: qgsraster.h:90
RasterPyramidsFormat
Definition: qgsraster.h:97