QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
raster
qgsrasterrendererutils.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsrasterrendererutils.h
3
-------------------
4
begin : September 2020
5
copyright : (C) 2020 by Nyall Dawson
6
email : nyall dawson dawson 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 QGSRASTERRENDERERUTILS_H
19
#define QGSRASTERRENDERERUTILS_H
20
21
#include "
qgis.h
"
22
#include "
qgscolorrampshader.h
"
23
30
class
CORE_EXPORT
QgsRasterRendererUtils
31
{
32
public
:
41
static
bool
parseColorMapFile
(
const
QString &path, QList<QgsColorRampShader::ColorRampItem> &items
SIP_OUT
,
Qgis::ShaderInterpolationMethod
&type
SIP_OUT
, QStringList &errors
SIP_OUT
);
42
51
static
bool
saveColorMapFile
(
const
QString &path,
const
QList<QgsColorRampShader::ColorRampItem> &items,
Qgis::ShaderInterpolationMethod
type );
52
};
53
54
#endif
// QGSRASTERRENDERERUTILS_H
Qgis::ShaderInterpolationMethod
ShaderInterpolationMethod
Color ramp shader interpolation methods.
Definition
qgis.h:1594
QgsRasterRendererUtils
Utility functions for raster renderers.
Definition
qgsrasterrendererutils.h:31
QgsRasterRendererUtils::saveColorMapFile
static bool saveColorMapFile(const QString &path, const QList< QgsColorRampShader::ColorRampItem > &items, Qgis::ShaderInterpolationMethod type)
Exports a list of color ramp items and ramp shader type to a color map file at the specified path.
Definition
qgsrasterrendererutils.cpp:104
QgsRasterRendererUtils::parseColorMapFile
static bool parseColorMapFile(const QString &path, QList< QgsColorRampShader::ColorRampItem > &items, Qgis::ShaderInterpolationMethod &type, QStringList &errors)
Parses an exported color map file at the specified path and extracts the stored color ramp items and ...
Definition
qgsrasterrendererutils.cpp:29
qgis.h
SIP_OUT
#define SIP_OUT
Definition
qgis_sip.h:57
qgscolorrampshader.h
Generated on
for QGIS API Documentation by
1.17.0