QGIS API Documentation
3.28.14-Firenze (exported)
Loading...
Searching...
No Matches
src
core
raster
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
35
enum
ColorInterpretation
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
57
enum
IdentifyFormat
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
enum
RasterBuildPyramids
67
{
68
PyramidsFlagNo = 0,
69
PyramidsFlagYes = 1,
70
PyramidsCopyExisting = 2
71
};
72
73
enum
RasterPyramidsFormat
74
{
75
PyramidsGTiff = 0,
76
PyramidsInternal = 1,
77
PyramidsErdas = 2
78
};
79
81
enum
DrawingStyle
82
{
83
UndefinedDrawingStyle
,
84
SingleBandGray
,
// a single band image drawn as a range of gray colors
85
SingleBandPseudoColor
,
// a single band image drawn using a pseudocolor algorithm
86
PalettedColor
,
// a "Palette" image drawn using color table
87
PalettedSingleBandGray
,
// a "Palette" layer drawn in gray scale
88
PalettedSingleBandPseudoColor
,
// a "Palette" layerdrawn using a pseudocolor algorithm
89
PalettedMultiBandColor
,
// currently not supported
90
MultiBandSingleBandGray
,
// a layer containing 2 or more bands, but a single band drawn as a range of gray colors
91
MultiBandSingleBandPseudoColor
,
// a layer containing 2 or more bands, but a single band drawn using a pseudocolor algorithm
92
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.
93
SingleBandColorDataStyle
// ARGB values rendered directly
94
};
95
104
static
bool
isRepresentableValue(
double
value,
Qgis::DataType
dataType )
SIP_SKIP
;
105
115
static
double
representableValue(
double
value,
Qgis::DataType
dataType );
116
};
117
118
#endif
119
120
Qgis::DataType
DataType
Raster data types.
Definition
qgis.h:129
QgsRaster
Raster namespace.
Definition
qgsraster.h:32
QgsRaster::IdentifyFormat
IdentifyFormat
Definition
qgsraster.h:58
QgsRaster::RasterPyramidsFormat
RasterPyramidsFormat
Definition
qgsraster.h:74
QgsRaster::RasterBuildPyramids
RasterBuildPyramids
Definition
qgsraster.h:67
QgsRaster::ColorInterpretation
ColorInterpretation
Definition
qgsraster.h:36
QgsRaster::DrawingStyle
DrawingStyle
This enumerator describes the different kinds of drawing we can do.
Definition
qgsraster.h:82
QgsRaster::MultiBandColor
@ MultiBandColor
Definition
qgsraster.h:92
QgsRaster::PalettedColor
@ PalettedColor
Definition
qgsraster.h:86
QgsRaster::SingleBandPseudoColor
@ SingleBandPseudoColor
Definition
qgsraster.h:85
QgsRaster::PalettedSingleBandPseudoColor
@ PalettedSingleBandPseudoColor
Definition
qgsraster.h:88
QgsRaster::PalettedSingleBandGray
@ PalettedSingleBandGray
Definition
qgsraster.h:87
QgsRaster::SingleBandGray
@ SingleBandGray
Definition
qgsraster.h:84
QgsRaster::MultiBandSingleBandGray
@ MultiBandSingleBandGray
Definition
qgsraster.h:90
QgsRaster::PalettedMultiBandColor
@ PalettedMultiBandColor
Definition
qgsraster.h:89
QgsRaster::UndefinedDrawingStyle
@ UndefinedDrawingStyle
Definition
qgsraster.h:83
QgsRaster::MultiBandSingleBandPseudoColor
@ MultiBandSingleBandPseudoColor
Definition
qgsraster.h:91
qgis.h
qgis_sip.h
SIP_SKIP
#define SIP_SKIP
Definition
qgis_sip.h:126
Generated on Sat Dec 23 2023 15:24:23 for QGIS API Documentation by
1.9.8