mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-18 00:06:00 -04:00
Merge pull request #59591 from nyalldawson/color_ramp_ne
Add != operator for QgsColorRampShader
This commit is contained in:
commit
1b8df45808
@ -39,6 +39,8 @@ Creates a new color ramp shader.
|
|||||||
|
|
||||||
bool operator==( const QgsColorRampShader &other ) const;
|
bool operator==( const QgsColorRampShader &other ) const;
|
||||||
|
|
||||||
|
bool operator!=( const QgsColorRampShader &other ) const;
|
||||||
|
|
||||||
struct ColorRampItem
|
struct ColorRampItem
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -39,6 +39,8 @@ Creates a new color ramp shader.
|
|||||||
|
|
||||||
bool operator==( const QgsColorRampShader &other ) const;
|
bool operator==( const QgsColorRampShader &other ) const;
|
||||||
|
|
||||||
|
bool operator!=( const QgsColorRampShader &other ) const;
|
||||||
|
|
||||||
struct ColorRampItem
|
struct ColorRampItem
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -75,6 +75,11 @@ class CORE_EXPORT QgsColorRampShader : public QgsRasterShaderFunction
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool operator!=( const QgsColorRampShader &other ) const
|
||||||
|
{
|
||||||
|
return !( *this == other );
|
||||||
|
}
|
||||||
|
|
||||||
//An entry for classification based upon value.
|
//An entry for classification based upon value.
|
||||||
//Such a classification is typically used for
|
//Such a classification is typically used for
|
||||||
//single band layers where a pixel value represents
|
//single band layers where a pixel value represents
|
||||||
|
Loading…
x
Reference in New Issue
Block a user