Skip to content
Permalink
Browse files

update Python bindings

  • Loading branch information
alexbruy committed Nov 2, 2016
1 parent 2497375 commit 75b23cb55c654d073680992e082c718bcf1cc29e
Showing with 20 additions and 6 deletions.
  1. +10 −0 python/core/raster/qgscolorrampshader.sip
  2. +10 −6 src/core/raster/qgscolorrampshader.h
@@ -40,12 +40,22 @@ class QgsColorRampShader : QgsRasterShaderFunction
/** \brief Get the color ramp type */
QgsColorRampShader::ColorRamp_TYPE colorRampType() const;

/** \brief Get the original color ramp name
* @note added in QGIS 3.0
*/
QString colorRampName() const;

/** \brief Get the color ramp type as a string */
QString colorRampTypeAsQString();

/** \brief Set custom colormap */
void setColorRampItemList( const QList<QgsColorRampShader::ColorRampItem>& theList ); //TODO: sort on set

/** \brief Set the source color ramp name
* @note added in QGIS 3.0
*/
void setColorRampName( const QString& theName );

/** \brief Set the color ramp type*/
void setColorRampType( QgsColorRampShader::ColorRamp_TYPE theColorRampType );

@@ -72,10 +72,12 @@ class CORE_EXPORT QgsColorRampShader : public QgsRasterShaderFunction
//! \brief Get the color ramp type
QgsColorRampShader::ColorRamp_TYPE colorRampType() const {return mColorRampType;}

//! \brief Get the color ramp type as a string
// \brief Get the color ramp type as a string
QString colorRampTypeAsQString();

//! \brief Get the original color ramp name
/** \brief Get the original color ramp name
* @note added in QGIS 3.0
*/
QString colorRampName() const {return mColorRampName;}

//! \brief Set custom colormap
@@ -84,12 +86,14 @@ class CORE_EXPORT QgsColorRampShader : public QgsRasterShaderFunction
//! \brief Set the color ramp type
void setColorRampType( QgsColorRampShader::ColorRamp_TYPE theColorRampType );

//! \brief Set the color ramp type
void setColorRampType( const QString& theType );

//! \brief Set the source color ramp name
/** \brief Set the source color ramp name
* @note added in QGIS 3.0
*/
void setColorRampName( const QString& theName );

// \brief Set the color ramp type
void setColorRampType( const QString& theType );

//! \brief Generates and new RGB value based on one input value
bool shade( double, int*, int*, int*, int* ) override;

0 comments on commit 75b23cb

Please sign in to comment.
You can’t perform that action at this time.