Skip to content
Permalink
Browse files

Merge pull request #40716 from 3nids/qvariant-properties

use QVariantMap instead of QgsStringMap for symbol layer properties
  • Loading branch information
3nids committed Jan 6, 2021
2 parents 0921df0 + 346a597 commit fd7406cb08e7ec745cd6eeb3657f20616221c026
Showing with 956 additions and 921 deletions.
  1. +3 −3 python/core/auto_generated/effects/qgsblureffect.sip.in
  2. +3 −3 python/core/auto_generated/effects/qgscoloreffect.sip.in
  3. +3 −3 python/core/auto_generated/effects/qgseffectstack.sip.in
  4. +4 −4 python/core/auto_generated/effects/qgsgloweffect.sip.in
  5. +5 −5 python/core/auto_generated/effects/qgspainteffect.sip.in
  6. +2 −2 python/core/auto_generated/effects/qgspainteffectregistry.sip.in
  7. +4 −4 python/core/auto_generated/effects/qgsshadoweffect.sip.in
  8. +3 −3 python/core/auto_generated/effects/qgstransformeffect.sip.in
  9. +1 −1 python/core/auto_generated/labeling/qgsrulebasedlabeling.sip.in
  10. +3 −3 python/core/auto_generated/labeling/qgsvectorlayerlabeling.sip.in
  11. +15 −12 python/core/auto_generated/qgscolorramp.sip.in
  12. +1 −1 python/core/auto_generated/raster/qgshillshaderenderer.sip.in
  13. +1 −1 python/core/auto_generated/raster/qgsmultibandcolorrenderer.sip.in
  14. +1 −1 python/core/auto_generated/raster/qgspalettedrasterrenderer.sip.in
  15. +1 −1 python/core/auto_generated/raster/qgsrasterlayer.sip.in
  16. +1 −1 python/core/auto_generated/raster/qgsrasterrenderer.sip.in
  17. +1 −1 python/core/auto_generated/raster/qgssinglebandgrayrenderer.sip.in
  18. +1 −1 python/core/auto_generated/raster/qgssinglebandpseudocolorrenderer.sip.in
  19. +2 −2 python/core/auto_generated/symbology/qgsarrowsymbollayer.sip.in
  20. +2 −2 python/core/auto_generated/symbology/qgscategorizedsymbolrenderer.sip.in
  21. +7 −4 python/core/auto_generated/symbology/qgsellipsesymbollayer.sip.in
  22. +25 −25 python/core/auto_generated/symbology/qgsfillsymbollayer.sip.in
  23. +5 −2 python/core/auto_generated/symbology/qgsgeometrygeneratorsymbollayer.sip.in
  24. +1 −1 python/core/auto_generated/symbology/qgsgraduatedsymbolrenderer.sip.in
  25. +9 −9 python/core/auto_generated/symbology/qgslinesymbollayer.sip.in
  26. +19 −16 python/core/auto_generated/symbology/qgsmarkersymbollayer.sip.in
  27. +2 −2 python/core/auto_generated/symbology/qgsmasksymbollayer.sip.in
  28. +1 −1 python/core/auto_generated/symbology/qgspointdistancerenderer.sip.in
  29. +2 −2 python/core/auto_generated/symbology/qgsrenderer.sip.in
  30. +1 −1 python/core/auto_generated/symbology/qgsrendererrange.sip.in
  31. +5 −2 python/core/auto_generated/symbology/qgsrulebasedrenderer.sip.in
  32. +1 −1 python/core/auto_generated/symbology/qgssinglesymbolrenderer.sip.in
  33. +4 −4 python/core/auto_generated/symbology/qgssymbol.sip.in
  34. +8 −5 python/core/auto_generated/symbology/qgssymbollayer.sip.in
  35. +6 −6 python/core/auto_generated/symbology/qgssymbollayerregistry.sip.in
  36. +13 −7 python/core/auto_generated/symbology/qgssymbollayerutils.sip.in
  37. +6 −3 python/core/auto_generated/symbology/qgsvectorfieldsymbollayer.sip.in
  38. +1 −1 python/core/auto_generated/vector/qgsvectorlayer.sip.in
  39. +2 −2 src/core/annotations/qgsannotation.cpp
  40. +6 −6 src/core/effects/qgsblureffect.cpp
  41. +3 −3 src/core/effects/qgsblureffect.h
  42. +5 −5 src/core/effects/qgscoloreffect.cpp
  43. +3 −3 src/core/effects/qgscoloreffect.h
  44. +4 −4 src/core/effects/qgseffectstack.cpp
  45. +3 −3 src/core/effects/qgseffectstack.h
  46. +10 −10 src/core/effects/qgsgloweffect.cpp
  47. +4 −4 src/core/effects/qgsgloweffect.h
  48. +7 −34 src/core/effects/qgspainteffect.cpp
  49. +5 −5 src/core/effects/qgspainteffect.h
  50. +1 −1 src/core/effects/qgspainteffectregistry.cpp
  51. +4 −4 src/core/effects/qgspainteffectregistry.h
  52. +10 −10 src/core/effects/qgsshadoweffect.cpp
  53. +4 −4 src/core/effects/qgsshadoweffect.h
  54. +6 −6 src/core/effects/qgstransformeffect.cpp
  55. +3 −3 src/core/effects/qgstransformeffect.h
  56. +1 −1 src/core/labeling/qgslabelingengine.cpp
  57. +2 −2 src/core/labeling/qgsrulebasedlabeling.cpp
  58. +1 −1 src/core/labeling/qgsrulebasedlabeling.h
  59. +3 −3 src/core/labeling/qgsvectorlayerlabeling.cpp
  60. +3 −3 src/core/labeling/qgsvectorlayerlabeling.h
  61. +2 −2 src/core/layout/qgscompositionconverter.cpp
  62. +3 −3 src/core/layout/qgslayoutitemmapgrid.cpp
  63. +1 −1 src/core/layout/qgslayoutitemmapoverview.cpp
  64. +1 −1 src/core/layout/qgslayoutitemmarker.cpp
  65. +2 −2 src/core/layout/qgslayoutitemnodeitem.cpp
  66. +1 −1 src/core/layout/qgslayoutitempage.cpp
  67. +1 −1 src/core/layout/qgslayoutitempolygon.cpp
  68. +1 −1 src/core/layout/qgslayoutitempolyline.cpp
  69. +1 −1 src/core/layout/qgslayoutitemshape.cpp
  70. +1 −1 src/core/layout/qgslayoutpagecollection.cpp
  71. +1 −1 src/core/mesh/qgsmeshlayer.cpp
  72. +29 −29 src/core/qgscolorramp.cpp
  73. +13 −12 src/core/qgscolorramp.h
  74. +1 −1 src/core/qgsdiagramrenderer.cpp
  75. +1 −1 src/core/qgsmaplayer.cpp
  76. +1 −1 src/core/raster/qgshillshaderenderer.cpp
  77. +1 −1 src/core/raster/qgshillshaderenderer.h
  78. +1 −1 src/core/raster/qgsmultibandcolorrenderer.cpp
  79. +1 −1 src/core/raster/qgsmultibandcolorrenderer.h
  80. +1 −1 src/core/raster/qgspalettedrasterrenderer.cpp
  81. +1 −1 src/core/raster/qgspalettedrasterrenderer.h
  82. +2 −2 src/core/raster/qgsrasterlayer.cpp
  83. +1 −1 src/core/raster/qgsrasterlayer.h
  84. +1 −1 src/core/raster/qgsrasterrenderer.cpp
  85. +1 −1 src/core/raster/qgsrasterrenderer.h
  86. +1 −1 src/core/raster/qgssinglebandgrayrenderer.cpp
  87. +1 −1 src/core/raster/qgssinglebandgrayrenderer.h
  88. +1 −1 src/core/raster/qgssinglebandpseudocolorrenderer.cpp
  89. +1 −1 src/core/raster/qgssinglebandpseudocolorrenderer.h
  90. +2 −2 src/core/symbology/qgs25drenderer.cpp
  91. +14 −14 src/core/symbology/qgsarrowsymbollayer.cpp
  92. +2 −2 src/core/symbology/qgsarrowsymbollayer.h
  93. +5 −5 src/core/symbology/qgscategorizedsymbolrenderer.cpp
  94. +2 −2 src/core/symbology/qgscategorizedsymbolrenderer.h
  95. +29 −29 src/core/symbology/qgsellipsesymbollayer.cpp
  96. +5 −4 src/core/symbology/qgsellipsesymbollayer.h
  97. +135 −135 src/core/symbology/qgsfillsymbollayer.cpp
  98. +25 −25 src/core/symbology/qgsfillsymbollayer.h
  99. +7 −7 src/core/symbology/qgsgeometrygeneratorsymbollayer.cpp
  100. +3 −2 src/core/symbology/qgsgeometrygeneratorsymbollayer.h
  101. +2 −2 src/core/symbology/qgsgraduatedsymbolrenderer.cpp
  102. +1 −1 src/core/symbology/qgsgraduatedsymbolrenderer.h
  103. +48 −48 src/core/symbology/qgslinesymbollayer.cpp
  104. +9 −9 src/core/symbology/qgslinesymbollayer.h
  105. +95 −91 src/core/symbology/qgsmarkersymbollayer.cpp
  106. +19 −17 src/core/symbology/qgsmarkersymbollayer.h
  107. +5 −5 src/core/symbology/qgsmasksymbollayer.cpp
  108. +2 −2 src/core/symbology/qgsmasksymbollayer.h
  109. +1 −1 src/core/symbology/qgspointdistancerenderer.cpp
  110. +1 −1 src/core/symbology/qgspointdistancerenderer.h
  111. +1 −1 src/core/symbology/qgsrenderer.cpp
  112. +2 −2 src/core/symbology/qgsrenderer.h
  113. +3 −3 src/core/symbology/qgsrendererrange.cpp
  114. +1 −1 src/core/symbology/qgsrendererrange.h
  115. +9 −7 src/core/symbology/qgsrulebasedrenderer.cpp
  116. +3 −2 src/core/symbology/qgsrulebasedrenderer.h
  117. +2 −2 src/core/symbology/qgssinglesymbolrenderer.cpp
  118. +1 −1 src/core/symbology/qgssinglesymbolrenderer.h
  119. +4 −4 src/core/symbology/qgssymbol.cpp
  120. +4 −4 src/core/symbology/qgssymbol.h
  121. +10 −10 src/core/symbology/qgssymbollayer.cpp
  122. +6 −5 src/core/symbology/qgssymbollayer.h
  123. +2 −2 src/core/symbology/qgssymbollayerregistry.cpp
  124. +8 −8 src/core/symbology/qgssymbollayerregistry.h
  125. +51 −32 src/core/symbology/qgssymbollayerutils.cpp
  126. +9 −7 src/core/symbology/qgssymbollayerutils.h
  127. +13 −13 src/core/symbology/qgsvectorfieldsymbollayer.cpp
  128. +4 −3 src/core/symbology/qgsvectorfieldsymbollayer.h
  129. +2 −2 src/core/textrenderer/qgstextrenderer.cpp
  130. +2 −2 src/core/vector/qgsvectorlayer.cpp
  131. +1 −1 src/core/vector/qgsvectorlayer.h
  132. +4 −4 src/gui/qgslegendpatchshapebutton.cpp
  133. +3 −3 src/gui/qgspropertyassistantwidget.cpp
  134. +4 −4 src/gui/qgssymbolbutton.cpp
  135. +1 −1 src/gui/symbology/qgsdatadefinedsizelegendwidget.cpp
  136. +1 −1 src/server/services/wms/qgswmsgetstyles.cpp
  137. +2 −2 tests/src/core/testqgsdatadefinedsizelegend.cpp
  138. +5 −5 tests/src/core/testqgsdiagram.cpp
  139. +1 −1 tests/src/core/testqgsdxfexport.cpp
  140. +1 −1 tests/src/core/testqgslabelingengine.cpp
  141. +4 −4 tests/src/core/testqgslayertree.cpp
  142. +2 −2 tests/src/core/testqgslayoutatlas.cpp
  143. +1 −1 tests/src/core/testqgslegendrenderer.cpp
  144. +2 −2 tests/src/core/testqgslinefillsymbol.cpp
  145. +2 −2 tests/src/core/testqgsmarkerlinesymbol.cpp
  146. +11 −11 tests/src/core/testqgspainteffect.cpp
  147. +4 −4 tests/src/core/testqgspainteffectregistry.cpp
  148. +7 −7 tests/src/core/testqgspointpatternfillsymbol.cpp
  149. +14 −14 tests/src/core/testqgsstyle.cpp
@@ -29,7 +29,7 @@ methods.
GaussianBlur
};

static QgsPaintEffect *create( const QgsStringMap &map ) /Factory/;
static QgsPaintEffect *create( const QVariantMap &map ) /Factory/;
%Docstring
Creates a new QgsBlurEffect effect from a properties string map.

@@ -44,9 +44,9 @@ Constructor for QgsBlurEffect.
%End

virtual QString type() const;
virtual QgsStringMap properties() const;
virtual QVariantMap properties() const;

virtual void readProperties( const QgsStringMap &props );
virtual void readProperties( const QVariantMap &props );

virtual QgsBlurEffect *clone() const /Factory/;

@@ -23,7 +23,7 @@ source picture.
%End
public:

static QgsPaintEffect *create( const QgsStringMap &map ) /Factory/;
static QgsPaintEffect *create( const QVariantMap &map ) /Factory/;
%Docstring
Creates a new QgsColorEffect effect from a properties string map.

@@ -35,9 +35,9 @@ Creates a new QgsColorEffect effect from a properties string map.
QgsColorEffect();

virtual QString type() const;
virtual QgsStringMap properties() const;
virtual QVariantMap properties() const;

virtual void readProperties( const QgsStringMap &props );
virtual void readProperties( const QVariantMap &props );

virtual QgsColorEffect *clone() const /Factory/;

@@ -34,7 +34,7 @@ effect will be drawn using the original picture, not the blurred version.
%End
public:

static QgsPaintEffect *create( const QgsStringMap &map ) /Factory/;
static QgsPaintEffect *create( const QVariantMap &map ) /Factory/;
%Docstring
Creates a new QgsEffectStack effect. This method ignores
the map parameter, and always returns an empty effect stack.
@@ -72,13 +72,13 @@ Creates a new QgsEffectStack effect from a single initial effect.
virtual bool readProperties( const QDomElement &element );


virtual QgsStringMap properties() const;
virtual QVariantMap properties() const;

%Docstring
Unused for QgsEffectStack, will always return an empty string map
%End

virtual void readProperties( const QgsStringMap &props );
virtual void readProperties( const QVariantMap &props );

%Docstring
Unused for QgsEffectStack, props parameter will be ignored
@@ -35,9 +35,9 @@ picture.
QgsGlowEffect( const QgsGlowEffect &other );
~QgsGlowEffect();

virtual QgsStringMap properties() const;
virtual QVariantMap properties() const;

virtual void readProperties( const QgsStringMap &props );
virtual void readProperties( const QVariantMap &props );


void setSpread( const double spread );
@@ -359,7 +359,7 @@ A paint effect which draws a glow outside of a picture.
%End
public:

static QgsPaintEffect *create( const QgsStringMap &map ) /Factory/;
static QgsPaintEffect *create( const QVariantMap &map ) /Factory/;
%Docstring
Creates a new QgsOuterGlowEffect effect from a properties string map.

@@ -395,7 +395,7 @@ A paint effect which draws a glow within a picture.
%End
public:

static QgsPaintEffect *create( const QgsStringMap &map ) /Factory/;
static QgsPaintEffect *create( const QVariantMap &map ) /Factory/;
%Docstring
Creates a new QgsInnerGlowEffect effect from a properties string map.

@@ -107,7 +107,7 @@ Duplicates an effect by creating a deep copy of the effect
:return: clone of paint effect
%End

virtual QgsStringMap properties() const = 0;
virtual QVariantMap properties() const = 0;
%Docstring
Returns the properties describing the paint effect encoded in a
string format.
@@ -119,7 +119,7 @@ string format.
.. seealso:: :py:func:`saveProperties`
%End

virtual void readProperties( const QgsStringMap &props ) = 0;
virtual void readProperties( const QVariantMap &props ) = 0;
%Docstring
Reads a string map of an effect's properties and restores the effect
to the state described by the properties map.
@@ -342,7 +342,7 @@ If no alterations are performed then the original picture will be rendered as a
Constructor for QgsDrawSourceEffect
%End

static QgsPaintEffect *create( const QgsStringMap &map ) /Factory/;
static QgsPaintEffect *create( const QVariantMap &map ) /Factory/;
%Docstring
Creates a new QgsDrawSource effect from a properties string map.

@@ -354,9 +354,9 @@ Creates a new QgsDrawSource effect from a properties string map.
virtual QString type() const;
virtual QgsDrawSourceEffect *clone() const /Factory/;

virtual QgsStringMap properties() const;
virtual QVariantMap properties() const;

virtual void readProperties( const QgsStringMap &props );
virtual void readProperties( const QVariantMap &props );


void setOpacity( const double opacity );
@@ -57,7 +57,7 @@ Returns the user visible string representing the paint effect class
.. seealso:: :py:func:`name`
%End

virtual QgsPaintEffect *createPaintEffect( const QgsStringMap &map ) = 0 /Factory/;
virtual QgsPaintEffect *createPaintEffect( const QVariantMap &map ) = 0 /Factory/;
%Docstring
Create a paint effect of this class given an encoded map of properties.

@@ -119,7 +119,7 @@ Registers a new effect type.
:return: ``True`` if add was successful.
%End

QgsPaintEffect *createEffect( const QString &name, const QgsStringMap &properties = QgsStringMap() ) const /Factory/;
QgsPaintEffect *createEffect( const QString &name, const QVariantMap &properties = QVariantMap() ) const /Factory/;
%Docstring
Creates a new paint effect given the effect name and properties map.

@@ -24,9 +24,9 @@ Base class for paint effects which offset, blurred shadows

QgsShadowEffect();

virtual QgsStringMap properties() const;
virtual QVariantMap properties() const;

virtual void readProperties( const QgsStringMap &props );
virtual void readProperties( const QVariantMap &props );


void setBlurLevel( const double level );
@@ -308,7 +308,7 @@ A paint effect which draws an offset and optionally blurred drop shadow
%End
public:

static QgsPaintEffect *create( const QgsStringMap &map ) /Factory/;
static QgsPaintEffect *create( const QVariantMap &map ) /Factory/;
%Docstring
Creates a new QgsDropShadowEffect effect from a properties string map.

@@ -345,7 +345,7 @@ within a picture.
%End
public:

static QgsPaintEffect *create( const QgsStringMap &map ) /Factory/;
static QgsPaintEffect *create( const QVariantMap &map ) /Factory/;
%Docstring
Creates a new QgsInnerShadowEffect effect from a properties string map.

@@ -23,7 +23,7 @@ scale and rotate) to a picture.
%End
public:

static QgsPaintEffect *create( const QgsStringMap &map ) /Factory/;
static QgsPaintEffect *create( const QVariantMap &map ) /Factory/;
%Docstring
Creates a new QgsTransformEffect effect from a properties string map.

@@ -38,9 +38,9 @@ Constructor for QgsTransformEffect.
%End

virtual QString type() const;
virtual QgsStringMap properties() const;
virtual QVariantMap properties() const;

virtual void readProperties( const QgsStringMap &props );
virtual void readProperties( const QVariantMap &props );

virtual QgsTransformEffect *clone() const /Factory/;

@@ -312,7 +312,7 @@ Set pal settings for a specific provider (takes ownership).
%End
virtual bool requiresAdvancedEffects() const;

virtual void toSld( QDomNode &parent, const QgsStringMap &props ) const;
virtual void toSld( QDomNode &parent, const QVariantMap &props ) const;


protected:
@@ -89,7 +89,7 @@ or exported to a vector format.
Try to create instance of an implementation based on the XML data
%End

virtual void toSld( QDomNode &parent, const QgsStringMap &props ) const;
virtual void toSld( QDomNode &parent, const QVariantMap &props ) const;
%Docstring
Writes the SE 1.1 TextSymbolizer element based on the current layer labeling settings
%End
@@ -107,7 +107,7 @@ should be canceled.

protected:

virtual void writeTextSymbolizer( QDomNode &parent, QgsPalLayerSettings &settings, const QgsStringMap &props ) const;
virtual void writeTextSymbolizer( QDomNode &parent, QgsPalLayerSettings &settings, const QVariantMap &props ) const;
%Docstring
Writes a TextSymbolizer element contents based on the provided labeling settings

@@ -163,7 +163,7 @@ Set pal settings (takes ownership).

virtual bool requiresAdvancedEffects() const;

virtual void toSld( QDomNode &parent, const QgsStringMap &props ) const;
virtual void toSld( QDomNode &parent, const QVariantMap &props ) const;


static QgsVectorLayerSimpleLabeling *create( const QDomElement &element, const QgsReadWriteContext &context );
@@ -74,7 +74,7 @@ Inverts the ordering of the color ramp.
Creates a clone of the color ramp.
%End

virtual QgsStringMap properties() const = 0;
virtual QVariantMap properties() const = 0;
%Docstring
Returns a string map containing all the color ramp's properties.
%End
@@ -149,7 +149,7 @@ Constructor for QgsGradientColorRamp
:param stops: optional list of additional color stops
%End

static QgsColorRamp *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
static QgsColorRamp *create( const QVariantMap &properties = QVariantMap() ) /Factory/;
%Docstring
Creates a new QgsColorRamp from a map of properties
%End
@@ -173,7 +173,7 @@ Returns the string identifier for QgsGradientColorRamp.

virtual QgsGradientColorRamp *clone() const /Factory/;

virtual QgsStringMap properties() const;
virtual QVariantMap properties() const;


QColor color1() const;
@@ -326,7 +326,7 @@ Constructor for QgsLimitedRandomColorRamp
:param valMax: maximum color value
%End

static QgsColorRamp *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
static QgsColorRamp *create( const QVariantMap &properties = QVariantMap() ) /Factory/;
%Docstring
Returns a new QgsLimitedRandomColorRamp color ramp created using the properties encoded in a string
map.
@@ -352,7 +352,7 @@ Returns the string identifier for QgsLimitedRandomColorRamp.

virtual QgsLimitedRandomColorRamp *clone() const /Factory/;

virtual QgsStringMap properties() const;
virtual QVariantMap properties() const;

virtual int count() const;

@@ -516,7 +516,7 @@ Returns the string identifier for QgsRandomColorRamp.
virtual QgsRandomColorRamp *clone() const /Factory/;


virtual QgsStringMap properties() const;
virtual QVariantMap properties() const;


protected:
@@ -552,7 +552,7 @@ Constructor for :py:class:`QgsPresetColorRamp`.
:param colors: list of named colors in ramp
%End

static QgsColorRamp *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
static QgsColorRamp *create( const QVariantMap &properties = QVariantMap() ) /Factory/;
%Docstring
Returns a new QgsPresetSchemeColorRamp color ramp created using the properties encoded in a string
map.
@@ -596,7 +596,7 @@ Returns the string identifier for QgsPresetSchemeColorRamp.

virtual QgsPresetSchemeColorRamp *clone() const /Factory/;

virtual QgsStringMap properties() const;
virtual QVariantMap properties() const;

virtual int count() const;

@@ -634,7 +634,7 @@ Constructor for QgsColorBrewerColorRamp
:param inverted: invert ramp ordering
%End

static QgsColorRamp *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
static QgsColorRamp *create( const QVariantMap &properties = QVariantMap() ) /Factory/;
%Docstring
Returns a new QgsColorBrewerColorRamp color ramp created using the properties encoded in a string
map.
@@ -661,7 +661,7 @@ Returns the string identifier for QgsColorBrewerColorRamp.

virtual QgsColorBrewerColorRamp *clone() const /Factory/;

virtual QgsStringMap properties() const;
virtual QVariantMap properties() const;

virtual int count() const;

@@ -762,7 +762,10 @@ Constructor for QgsCptCityColorRamp
:param doLoadFile: load cpt-city ramp from file
%End

static QgsColorRamp *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
static QgsColorRamp *create( const QVariantMap &properties = QVariantMap() ) /Factory/;
%Docstring
Creates the symbol layer
%End

static QString typeString();
%Docstring
@@ -782,7 +785,7 @@ Returns the string identifier for QgsCptCityColorRamp.
void copy( const QgsCptCityColorRamp *other );
QgsGradientColorRamp *cloneGradientRamp() const /Factory/;

virtual QgsStringMap properties() const;
virtual QVariantMap properties() const;


QString schemeName() const;
@@ -57,7 +57,7 @@ Factory method to create a new renderer
virtual QList<int> usesBands() const;


virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap &props = QgsStringMap() ) const;
virtual void toSld( QDomDocument &doc, QDomElement &element, const QVariantMap &props = QVariantMap() ) const;


int band() const;
@@ -124,7 +124,7 @@ Ownership of the enhancement is transferred.
virtual QList<QgsLayerTreeModelLegendNode *> createLegendNodes( QgsLayerTreeLayer *nodeLayer ) /Factory/;


virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap &props = QgsStringMap() ) const;
virtual void toSld( QDomDocument &doc, QDomElement &element, const QVariantMap &props = QVariantMap() ) const;


private:
@@ -92,7 +92,7 @@ Returns the raster band used for rendering the raster.

virtual QList<int> usesBands() const;

virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap &props = QgsStringMap() ) const;
virtual void toSld( QDomDocument &doc, QDomElement &element, const QVariantMap &props = QVariantMap() ) const;

virtual bool accept( QgsStyleEntityVisitorInterface *visitor ) const;

@@ -411,7 +411,7 @@ Draws a preview of the rasterlayer into a QImage
virtual bool accept( QgsStyleEntityVisitorInterface *visitor ) const;


bool writeSld( QDomNode &node, QDomDocument &doc, QString &errorMessage, const QgsStringMap &props = QgsStringMap() ) const;
bool writeSld( QDomNode &node, QDomDocument &doc, QString &errorMessage, const QVariantMap &props = QVariantMap() ) const;
%Docstring
Writes the symbology of the layer into the document provided in SLD 1.0.0 format

@@ -153,7 +153,7 @@ Returns const reference to origin of min/max values
Sets origin of min/max values
%End

virtual void toSld( QDomDocument &doc, QDomElement &element, const QgsStringMap &props = QgsStringMap() ) const;
virtual void toSld( QDomDocument &doc, QDomElement &element, const QVariantMap &props = QVariantMap() ) const;
%Docstring
Used from subclasses to create SLD Rule elements following SLD v1.0 specs

0 comments on commit fd7406c

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