Merge pull request #59591 from nyalldawson/color_ramp_ne

Add != operator for QgsColorRampShader
This commit is contained in:
Alexander Bruy 2024-11-26 09:57:59 +00:00 committed by GitHub
commit 1b8df45808
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 0 deletions

View File

@ -39,6 +39,8 @@ Creates a new color ramp shader.
bool operator==( const QgsColorRampShader &other ) const;
bool operator!=( const QgsColorRampShader &other ) const;
struct ColorRampItem
{

View File

@ -39,6 +39,8 @@ Creates a new color ramp shader.
bool operator==( const QgsColorRampShader &other ) const;
bool operator!=( const QgsColorRampShader &other ) const;
struct ColorRampItem
{

View File

@ -75,6 +75,11 @@ class CORE_EXPORT QgsColorRampShader : public QgsRasterShaderFunction
return true;
}
bool operator!=( const QgsColorRampShader &other ) const
{
return !( *this == other );
}
//An entry for classification based upon value.
//Such a classification is typically used for
//single band layers where a pixel value represents