QGIS API Documentation  2.99.0-Master (7d4f81d)
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,
38  PaletteIndex = 2,
39  RedBand = 3,
40  GreenBand = 4,
41  BlueBand = 5,
42  AlphaBand = 6,
43  HueBand = 7,
44  SaturationBand = 8,
45  LightnessBand = 9,
46  CyanBand = 10,
47  MagentaBand = 11,
48  YellowBand = 12,
49  BlackBand = 13,
50  YCbCr_YBand = 14,
51  YCbCr_CbBand = 15,
52  YCbCr_CrBand = 16,
53  ContinuousPalette = 17
54  };
55 
57  {
58  IdentifyFormatUndefined = 0,
59  IdentifyFormatValue = 1, // numerical pixel value
60  IdentifyFormatText = 1 << 1, // WMS text
61  IdentifyFormatHtml = 1 << 2, // WMS HTML
62  IdentifyFormatFeature = 1 << 3, // WMS GML/JSON -> feature
63  };
64 
65  // Progress types
67  {
68  ProgressHistogram = 0,
69  ProgressPyramids = 1,
70  ProgressStatistics = 2
71  };
72 
74  {
75  PyramidsFlagNo = 0,
76  PyramidsFlagYes = 1,
77  PyramidsCopyExisting = 2
78  };
79 
81  {
82  PyramidsGTiff = 0,
83  PyramidsInternal = 1,
84  PyramidsErdas = 2
85  };
86 
89  {
91  SingleBandGray, // a single band image drawn as a range of gray colors
92  SingleBandPseudoColor, // a single band image drawn using a pseudocolor algorithm
93  PalettedColor, // a "Palette" image drawn using color table
94  PalettedSingleBandGray, // a "Palette" layer drawn in gray scale
95  PalettedSingleBandPseudoColor, // a "Palette" layerdrawn using a pseudocolor algorithm
96  PalettedMultiBandColor, // currently not supported
97  MultiBandSingleBandGray, // a layer containing 2 or more bands, but a single band drawn as a range of gray colors
98  MultiBandSingleBandPseudoColor, // a layer containing 2 or more bands, but a single band drawn using a pseudocolor algorithm
99  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.
100  SingleBandColorDataStyle // ARGB values rendered directly
101  };
102 
109  static bool isRepresentableValue( double value, Qgis::DataType dataType ) SIP_SKIP;
110 
118  static double representableValue( double value, Qgis::DataType dataType );
119 };
120 
121 #endif
122 
123 
IdentifyFormat
Definition: qgsraster.h:56
DrawingStyle
This enumerator describes the different kinds of drawing we can do.
Definition: qgsraster.h:88
RasterProgressType
Definition: qgsraster.h:66
DataType
Raster data types.
Definition: qgis.h:74
#define SIP_SKIP
Definition: qgis_sip.h:119
ColorInterpretation
Definition: qgsraster.h:34
Raster namespace.
Definition: qgsraster.h:30
RasterBuildPyramids
Definition: qgsraster.h:73
RasterPyramidsFormat
Definition: qgsraster.h:80