Skip to content
Permalink
Browse files
Update some recently merged classes
  • Loading branch information
nyalldawson committed Apr 3, 2017
1 parent e1e1f0d commit dbc8ad76f1908ef6326452c44151f08250087820
Showing with 13 additions and 13 deletions.
  1. +13 −13 src/core/raster/qgspalettedrasterrenderer.h
@@ -95,49 +95,49 @@ class CORE_EXPORT QgsPalettedRasterRenderer: public QgsRasterRenderer

/**
* Set the source color \a ramp. Ownership is transferred to the renderer.
* @note added in QGIS 3.0
* @see sourceColorRamp()
* \since QGIS 3.0
* \see sourceColorRamp()
*/
void setSourceColorRamp( QgsColorRamp *ramp );

/** Get the source color ramp
* @note added in QGIS 3.0
* @see setSourceColorRamp()
* \since QGIS 3.0
* \see setSourceColorRamp()
*/
QgsColorRamp *sourceColorRamp() const;

/**
* Converts a raster color \a table to paletted renderer class data.
* @note added in QGIS 3.0
* \since QGIS 3.0
*/
static QgsPalettedRasterRenderer::ClassData colorTableToClassData( const QList<QgsColorRampShader::ColorRampItem> &table );

/**
* Converts a \a string containing a color table or class data to to paletted renderer class data.
* @note added in QGIS 3.0
* @see classDataFromFile()
* @see classDataToString()
* \since QGIS 3.0
* \see classDataFromFile()
* \see classDataToString()
*/
static QgsPalettedRasterRenderer::ClassData classDataFromString( const QString &string );

/**
* Opens a color table file and returns corresponding paletted renderer class data.
* @note added in QGIS 3.0
* @see classDataFromString()
* \since QGIS 3.0
* \see classDataFromString()
*/
static QgsPalettedRasterRenderer::ClassData classDataFromFile( const QString &path );

/**
* Converts classes to a string representation, using the .clr/gdal color table file format.
* @note added in QGIS 3.0
* @see classDataFromString()
* \since QGIS 3.0
* \see classDataFromString()
*/
static QString classDataToString( const QgsPalettedRasterRenderer::ClassData &classes );

/**
* Generates class data from a \a raster, for the specified \a bandNumber. An optional
* color \a ramp can be specified to automatically assign colors from the ramp.
* @note added in QGIS 3.0
* \since QGIS 3.0
*/
static QgsPalettedRasterRenderer::ClassData classDataFromRaster( QgsRasterInterface *raster, int bandNumber, QgsColorRamp *ramp = nullptr,
QgsRasterBlockFeedback *feedback = nullptr );

0 comments on commit dbc8ad7

Please sign in to comment.