Skip to content
Permalink
Browse files

Return derived classes from clone() methods, avoids need to

dynamic_cast results
  • Loading branch information
nyalldawson committed Nov 12, 2015
1 parent dfb1585 commit cdf21b7c3e1fb00323f36a174f304a28484c885d
Showing with 221 additions and 221 deletions.
  1. +1 −1 python/core/diagram/qgsdiagram.sip
  2. +1 −1 python/core/diagram/qgshistogramdiagram.sip
  3. +1 −1 python/core/diagram/qgspiediagram.sip
  4. +1 −1 python/core/diagram/qgstextdiagram.sip
  5. +1 −1 python/core/effects/qgsblureffect.sip
  6. +1 −1 python/core/effects/qgscoloreffect.sip
  7. +1 −1 python/core/effects/qgseffectstack.sip
  8. +2 −2 python/core/effects/qgsgloweffect.sip
  9. +1 −1 python/core/effects/qgspainteffect.sip
  10. +2 −2 python/core/effects/qgsshadoweffect.sip
  11. +1 −1 python/core/effects/qgstransformeffect.sip
  12. +1 −1 python/core/layertree/qgslayertreegroup.sip
  13. +1 −1 python/core/layertree/qgslayertreelayer.sip
  14. +4 −4 python/core/qgscolorscheme.sip
  15. +3 −3 python/core/qgsdiagramrendererv2.sip
  16. +1 −1 python/core/qgspallabeling.sip
  17. +1 −1 python/core/raster/qgsbilinearrasterresampler.sip
  18. +1 −1 python/core/raster/qgsbrightnesscontrastfilter.sip
  19. +1 −1 python/core/raster/qgscubicrasterresampler.sip
  20. +1 −1 python/core/raster/qgshuesaturationfilter.sip
  21. +1 −1 python/core/raster/qgsmultibandcolorrenderer.sip
  22. +1 −1 python/core/raster/qgspalettedrasterrenderer.sip
  23. +1 −1 python/core/raster/qgsrasternuller.sip
  24. +1 −1 python/core/raster/qgsrasterprojector.sip
  25. +1 −1 python/core/raster/qgsrasterrenderer.sip
  26. +1 −1 python/core/raster/qgsrasterresamplefilter.sip
  27. +1 −1 python/core/raster/qgssinglebandcolordatarenderer.sip
  28. +1 −1 python/core/raster/qgssinglebandgrayrenderer.sip
  29. +1 −1 python/core/raster/qgssinglebandpseudocolorrenderer.sip
  30. +1 −1 python/core/symbology-ng/qgscategorizedsymbolrendererv2.sip
  31. +1 −1 python/core/symbology-ng/qgsellipsesymbollayerv2.sip
  32. +8 −8 python/core/symbology-ng/qgsfillsymbollayerv2.sip
  33. +1 −1 python/core/symbology-ng/qgsgraduatedsymbolrendererv2.sip
  34. +1 −1 python/core/symbology-ng/qgsheatmaprenderer.sip
  35. +1 −1 python/core/symbology-ng/qgsinvertedpolygonrenderer.sip
  36. +2 −2 python/core/symbology-ng/qgslinesymbollayerv2.sip
  37. +4 −4 python/core/symbology-ng/qgsmarkersymbollayerv2.sip
  38. +1 −1 python/core/symbology-ng/qgspointdisplacementrenderer.sip
  39. +1 −1 python/core/symbology-ng/qgsrulebasedrendererv2.sip
  40. +1 −1 python/core/symbology-ng/qgssinglesymbolrendererv2.sip
  41. +3 −3 python/core/symbology-ng/qgssymbolv2.sip
  42. +6 −6 python/core/symbology-ng/qgsvectorcolorrampv2.sip
  43. +1 −1 python/core/symbology-ng/qgsvectorfieldsymbollayer.sip
  44. +1 −1 src/app/composer/qgscomposerarrowwidget.cpp
  45. +1 −1 src/app/composer/qgscomposershapewidget.cpp
  46. +1 −1 src/app/composer/qgscompositionwidget.cpp
  47. +2 −2 src/app/qgsannotationwidget.cpp
  48. +4 −4 src/app/qgsdecorationgriddialog.cpp
  49. +1 −1 src/core/composer/qgscomposermap.cpp
  50. +1 −1 src/core/diagram/qgshistogramdiagram.cpp
  51. +1 −1 src/core/diagram/qgshistogramdiagram.h
  52. +1 −1 src/core/diagram/qgspiediagram.cpp
  53. +1 −1 src/core/diagram/qgspiediagram.h
  54. +1 −1 src/core/diagram/qgstextdiagram.cpp
  55. +1 −1 src/core/diagram/qgstextdiagram.h
  56. +1 −1 src/core/effects/qgsblureffect.cpp
  57. +1 −1 src/core/effects/qgsblureffect.h
  58. +1 −1 src/core/effects/qgscoloreffect.cpp
  59. +1 −1 src/core/effects/qgscoloreffect.h
  60. +1 −1 src/core/effects/qgseffectstack.cpp
  61. +1 −1 src/core/effects/qgseffectstack.h
  62. +2 −2 src/core/effects/qgsgloweffect.cpp
  63. +2 −2 src/core/effects/qgsgloweffect.h
  64. +1 −1 src/core/effects/qgspainteffect.cpp
  65. +1 −1 src/core/effects/qgspainteffect.h
  66. +2 −2 src/core/effects/qgsshadoweffect.cpp
  67. +2 −2 src/core/effects/qgsshadoweffect.h
  68. +1 −1 src/core/effects/qgstransformeffect.cpp
  69. +1 −1 src/core/effects/qgstransformeffect.h
  70. +1 −1 src/core/layertree/qgslayertreegroup.cpp
  71. +1 −1 src/core/layertree/qgslayertreegroup.h
  72. +1 −1 src/core/layertree/qgslayertreelayer.cpp
  73. +1 −1 src/core/layertree/qgslayertreelayer.h
  74. +4 −4 src/core/qgscolorscheme.cpp
  75. +4 −4 src/core/qgscolorscheme.h
  76. +2 −2 src/core/qgsdiagramrendererv2.cpp
  77. +2 −2 src/core/qgsdiagramrendererv2.h
  78. +1 −1 src/core/qgspallabeling.cpp
  79. +1 −1 src/core/qgspallabeling.h
  80. +1 −1 src/core/raster/qgsbilinearrasterresampler.cpp
  81. +1 −1 src/core/raster/qgsbilinearrasterresampler.h
  82. +1 −1 src/core/raster/qgsbrightnesscontrastfilter.cpp
  83. +1 −1 src/core/raster/qgsbrightnesscontrastfilter.h
  84. +1 −1 src/core/raster/qgscubicrasterresampler.cpp
  85. +1 −1 src/core/raster/qgscubicrasterresampler.h
  86. +1 −1 src/core/raster/qgshuesaturationfilter.cpp
  87. +1 −1 src/core/raster/qgshuesaturationfilter.h
  88. +1 −1 src/core/raster/qgsmultibandcolorrenderer.cpp
  89. +1 −1 src/core/raster/qgsmultibandcolorrenderer.h
  90. +1 −1 src/core/raster/qgspalettedrasterrenderer.cpp
  91. +1 −1 src/core/raster/qgspalettedrasterrenderer.h
  92. +1 −1 src/core/raster/qgsrasternuller.cpp
  93. +1 −1 src/core/raster/qgsrasternuller.h
  94. +1 −1 src/core/raster/qgsrasterprojector.cpp
  95. +1 −1 src/core/raster/qgsrasterprojector.h
  96. +1 −1 src/core/raster/qgsrasterrenderer.h
  97. +1 −1 src/core/raster/qgsrasterresamplefilter.cpp
  98. +1 −1 src/core/raster/qgsrasterresamplefilter.h
  99. +1 −1 src/core/raster/qgssinglebandcolordatarenderer.cpp
  100. +1 −1 src/core/raster/qgssinglebandcolordatarenderer.h
  101. +1 −1 src/core/raster/qgssinglebandgrayrenderer.cpp
  102. +1 −1 src/core/raster/qgssinglebandgrayrenderer.h
  103. +1 −1 src/core/raster/qgssinglebandpseudocolorrenderer.cpp
  104. +1 −1 src/core/raster/qgssinglebandpseudocolorrenderer.h
  105. +1 −1 src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp
  106. +1 −1 src/core/symbology-ng/qgscategorizedsymbolrendererv2.h
  107. +2 −2 src/core/symbology-ng/qgsellipsesymbollayerv2.cpp
  108. +1 −1 src/core/symbology-ng/qgsellipsesymbollayerv2.h
  109. +9 −9 src/core/symbology-ng/qgsfillsymbollayerv2.cpp
  110. +8 −8 src/core/symbology-ng/qgsfillsymbollayerv2.h
  111. +1 −1 src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
  112. +1 −1 src/core/symbology-ng/qgsgraduatedsymbolrendererv2.h
  113. +1 −1 src/core/symbology-ng/qgsheatmaprenderer.cpp
  114. +1 −1 src/core/symbology-ng/qgsheatmaprenderer.h
  115. +1 −1 src/core/symbology-ng/qgsinvertedpolygonrenderer.cpp
  116. +1 −1 src/core/symbology-ng/qgsinvertedpolygonrenderer.h
  117. +2 −2 src/core/symbology-ng/qgslinesymbollayerv2.cpp
  118. +2 −2 src/core/symbology-ng/qgslinesymbollayerv2.h
  119. +3 −3 src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
  120. +3 −3 src/core/symbology-ng/qgsmarkersymbollayerv2.h
  121. +2 −2 src/core/symbology-ng/qgspointdisplacementrenderer.cpp
  122. +1 −1 src/core/symbology-ng/qgspointdisplacementrenderer.h
  123. +1 −1 src/core/symbology-ng/qgsrulebasedrendererv2.cpp
  124. +1 −1 src/core/symbology-ng/qgsrulebasedrendererv2.h
  125. +1 −1 src/core/symbology-ng/qgssinglesymbolrendererv2.cpp
  126. +1 −1 src/core/symbology-ng/qgssinglesymbolrendererv2.h
  127. +6 −6 src/core/symbology-ng/qgssymbolv2.cpp
  128. +3 −3 src/core/symbology-ng/qgssymbolv2.h
  129. +5 −5 src/core/symbology-ng/qgsvectorcolorrampv2.cpp
  130. +5 −5 src/core/symbology-ng/qgsvectorcolorrampv2.h
  131. +2 −2 src/core/symbology-ng/qgsvectorfieldsymbollayer.cpp
  132. +1 −1 src/core/symbology-ng/qgsvectorfieldsymbollayer.h
  133. +1 −1 src/gui/symbology-ng/qgspointdisplacementrendererwidget.cpp
  134. +1 −1 src/gui/symbology-ng/qgssymbollayerv2widget.cpp
  135. +1 −1 src/providers/gdal/qgsgdalprovider.cpp
  136. +1 −1 src/providers/gdal/qgsgdalprovider.h
  137. +1 −1 src/providers/wcs/qgswcsprovider.cpp
  138. +1 −1 src/providers/wcs/qgswcsprovider.h
  139. +1 −1 src/providers/wms/qgswmsprovider.cpp
  140. +1 −1 src/providers/wms/qgswmsprovider.h
  141. +1 −1 src/server/qgswmsserver.cpp
@@ -7,7 +7,7 @@ class QgsDiagram
virtual ~QgsDiagram();
/** Returns an instance that is equivalent to this one
* @note added in 2.4 */
virtual QgsDiagram* clone() const = 0;
virtual QgsDiagram* clone() const = 0 /Factory/;

void clearCache();
QgsExpression* getExpression( const QString& expression, const QgsFields* fields ) /Deprecated/;
@@ -7,7 +7,7 @@ class QgsHistogramDiagram: QgsDiagram
QgsHistogramDiagram();
~QgsHistogramDiagram();

virtual QgsDiagram* clone() const;
virtual QgsHistogramDiagram* clone() const /Factory/;

void renderDiagram( const QgsFeature& feature, QgsRenderContext& c, const QgsDiagramSettings& s, const QPointF& position );

@@ -7,7 +7,7 @@ class QgsPieDiagram: QgsDiagram
QgsPieDiagram();
~QgsPieDiagram();

virtual QgsDiagram* clone() const;
virtual QgsPieDiagram* clone() const /Factory/;

void renderDiagram( const QgsFeature& feature, QgsRenderContext& c, const QgsDiagramSettings& s, const QPointF& position );

@@ -20,7 +20,7 @@ class QgsTextDiagram: QgsDiagram

QgsTextDiagram();
~QgsTextDiagram();
virtual QgsDiagram* clone() const;
virtual QgsTextDiagram* clone() const /Factory/;

void renderDiagram( const QgsFeature& feature, QgsRenderContext& c, const QgsDiagramSettings& s, const QPointF& position );

@@ -33,7 +33,7 @@ class QgsBlurEffect : QgsPaintEffect
virtual QString type() const;
virtual QgsStringMap properties() const;
virtual void readProperties( const QgsStringMap& props );
virtual QgsPaintEffect* clone() const /Factory/;
virtual QgsBlurEffect* clone() const /Factory/;

/** Sets blur level (strength)
* @param level blur level. Depending on the current @link blurMethod @endlink, this parameter
@@ -26,7 +26,7 @@ class QgsColorEffect : QgsPaintEffect
virtual QString type() const;
virtual QgsStringMap properties() const;
virtual void readProperties( const QgsStringMap& props );
virtual QgsPaintEffect* clone() const /Factory/;
virtual QgsColorEffect* clone() const /Factory/;

/** Sets the brightness modification for the effect.
* @param brightness Valid values are between -255 and 255, where 0 represents
@@ -45,7 +45,7 @@ class QgsEffectStack : QgsPaintEffect
virtual ~QgsEffectStack();

virtual QString type() const;
virtual QgsPaintEffect* clone() const /Factory/;
virtual QgsEffectStack* clone() const /Factory/;
virtual bool saveProperties( QDomDocument& doc, QDomElement& element ) const;
virtual bool readProperties( const QDomElement& element );

@@ -210,7 +210,7 @@ class QgsOuterGlowEffect : QgsGlowEffect
QgsOuterGlowEffect();
virtual ~QgsOuterGlowEffect();
virtual QString type() const;
virtual QgsPaintEffect* clone() const /Factory/;
virtual QgsOuterGlowEffect* clone() const /Factory/;

protected:

@@ -243,7 +243,7 @@ class QgsInnerGlowEffect : QgsGlowEffect
virtual ~QgsInnerGlowEffect();

virtual QString type() const;
virtual QgsPaintEffect* clone() const /Factory/;
virtual QgsInnerGlowEffect* clone() const /Factory/;

protected:

@@ -269,7 +269,7 @@ class QgsDrawSourceEffect : QgsPaintEffect
static QgsPaintEffect* create( const QgsStringMap& map ) /Factory/;

virtual QString type() const;
virtual QgsPaintEffect* clone() const /Factory/;
virtual QgsDrawSourceEffect* clone() const /Factory/;
virtual QgsStringMap properties() const;
virtual void readProperties( const QgsStringMap& props );

@@ -175,7 +175,7 @@ class QgsDropShadowEffect : QgsShadowEffect
virtual ~QgsDropShadowEffect();

virtual QString type() const;
virtual QgsPaintEffect* clone() const /Factory/;
virtual QgsDropShadowEffect* clone() const /Factory/;

protected:

@@ -209,7 +209,7 @@ class QgsInnerShadowEffect : QgsShadowEffect
virtual ~QgsInnerShadowEffect();

virtual QString type() const;
virtual QgsPaintEffect* clone() const /Factory/;
virtual QgsInnerShadowEffect* clone() const /Factory/;

protected:

@@ -26,7 +26,7 @@ class QgsTransformEffect : QgsPaintEffect
virtual QString type() const;
virtual QgsStringMap properties() const;
virtual void readProperties( const QgsStringMap& props );
virtual QgsPaintEffect* clone() const /Factory/;
virtual QgsTransformEffect* clone() const /Factory/;

/** Sets the transform x translation.
* @param translateX distance to translate along the x axis
@@ -66,7 +66,7 @@ class QgsLayerTreeGroup : QgsLayerTreeNode
virtual QString dump() const;

//! Return a clone of the group. The children are cloned too.
virtual QgsLayerTreeNode* clone() const /Factory/;
virtual QgsLayerTreeGroup* clone() const /Factory/;

//! Return the check state of the group node
Qt::CheckState isVisible() const;
@@ -42,7 +42,7 @@ class QgsLayerTreeLayer : QgsLayerTreeNode

virtual QString dump() const;

virtual QgsLayerTreeNode* clone() const /Factory/;
virtual QgsLayerTreeLayer* clone() const /Factory/;

signals:
//! emitted when a previously unavailable layer got loaded
@@ -134,7 +134,7 @@ class QgsUserColorScheme : QgsGplColorScheme

virtual QString schemeName() const;

virtual QgsColorScheme* clone() const;
virtual QgsUserColorScheme* clone() const /Factory/;

virtual bool isEditable() const;

@@ -178,7 +178,7 @@ class QgsRecentColorScheme : QgsColorScheme
virtual QgsNamedColorList fetchColors( const QString &context = QString(),
const QColor &baseColor = QColor() );

QgsColorScheme* clone() const /Factory/;
virtual QgsRecentColorScheme* clone() const /Factory/;
};

/** \ingroup core
@@ -209,7 +209,7 @@ class QgsCustomColorScheme : QgsColorScheme

virtual bool setColors( const QgsNamedColorList &colors, const QString &context = QString(), const QColor &baseColor = QColor() );

QgsColorScheme* clone() const /Factory/;
virtual QgsCustomColorScheme* clone() const /Factory/;
};

/** \ingroup core
@@ -239,5 +239,5 @@ class QgsProjectColorScheme : QgsColorScheme

virtual bool setColors( const QgsNamedColorList &colors, const QString &context = QString(), const QColor &baseColor = QColor() );

QgsColorScheme* clone() const /Factory/;
virtual QgsProjectColorScheme* clone() const /Factory/;
};
@@ -137,7 +137,7 @@ class QgsDiagramRendererV2

/** Returns new instance that is equivalent to this one
* @note added in 2.4 */
virtual QgsDiagramRendererV2* clone() const = 0;
virtual QgsDiagramRendererV2* clone() const = 0 /Factory/;

/** Returns size of the diagram for a feature in map units. Returns an invalid QSizeF in case of error*/
virtual QSizeF sizeMapUnits( const QgsFeature& feature, const QgsRenderContext& c );
@@ -198,7 +198,7 @@ class QgsSingleCategoryDiagramRenderer : QgsDiagramRendererV2
QgsSingleCategoryDiagramRenderer();
~QgsSingleCategoryDiagramRenderer();

QgsDiagramRendererV2* clone() const;
virtual QgsSingleCategoryDiagramRenderer* clone() const /Factory/;

QString rendererName() const;

@@ -229,7 +229,7 @@ class QgsLinearlyInterpolatedDiagramRenderer : QgsDiagramRendererV2
QgsLinearlyInterpolatedDiagramRenderer();
~QgsLinearlyInterpolatedDiagramRenderer();

QgsDiagramRendererV2* clone() const;
virtual QgsLinearlyInterpolatedDiagramRenderer* clone() const /Factory/;

/** Returns list with all diagram settings in the renderer*/
QList<QgsDiagramSettings> diagramSettings() const;
@@ -786,7 +786,7 @@ class QgsPalLabeling : QgsLabelingEngineInterface
QgsLabelingResults* takeResults() /TransferBack/;

//! called when passing engine among map renderers
virtual QgsLabelingEngineInterface* clone() /Factory/;
virtual QgsPalLabeling* clone() /Factory/;

//! @note not available in python bindings
// void drawLabelCandidateRect( pal::LabelPosition* lp, QPainter* painter, const QgsMapToPixel* xform );
@@ -9,5 +9,5 @@ class QgsBilinearRasterResampler : QgsRasterResampler

void resample( const QImage& srcImage, QImage& dstImage );
QString type() const;
QgsRasterResampler * clone() const /Factory/;
virtual QgsBilinearRasterResampler * clone() const /Factory/;
};
@@ -7,7 +7,7 @@ class QgsBrightnessContrastFilter : QgsRasterInterface
QgsBrightnessContrastFilter( QgsRasterInterface *input = 0 );
~QgsBrightnessContrastFilter();

QgsRasterInterface * clone() const /Factory/;
virtual QgsBrightnessContrastFilter * clone() const /Factory/;

int bandCount() const;

@@ -6,7 +6,7 @@ class QgsCubicRasterResampler: QgsRasterResampler
public:
QgsCubicRasterResampler();
~QgsCubicRasterResampler();
QgsRasterResampler * clone() const /Factory/;
virtual QgsCubicRasterResampler * clone() const /Factory/;
void resample( const QImage& srcImage, QImage& dstImage );
QString type() const;
};
@@ -17,7 +17,7 @@ class QgsHueSaturationFilter : QgsRasterInterface
QgsHueSaturationFilter( QgsRasterInterface *input = 0 );
~QgsHueSaturationFilter();

QgsRasterInterface * clone() const /Factory/;
virtual QgsHueSaturationFilter * clone() const /Factory/;

int bandCount() const;

@@ -8,7 +8,7 @@ class QgsMultiBandColorRenderer: QgsRasterRenderer
QgsContrastEnhancement* redEnhancement = 0, QgsContrastEnhancement* greenEnhancement = 0,
QgsContrastEnhancement* blueEnhancement = 0 );
~QgsMultiBandColorRenderer();
QgsRasterInterface * clone() const /Factory/;
virtual QgsMultiBandColorRenderer * clone() const /Factory/;

static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider ) /Factory/;

@@ -7,7 +7,7 @@ class QgsPalettedRasterRenderer : QgsRasterRenderer
/** Renderer owns color array*/
QgsPalettedRasterRenderer( QgsRasterInterface* input, int bandNumber, QColor* colorArray /Array,Transfer/, int nColors /ArraySize/, const QVector<QString>& labels = QVector<QString>() );
~QgsPalettedRasterRenderer();
QgsRasterInterface * clone() const /Factory/;
virtual QgsPalettedRasterRenderer * clone() const /Factory/;
static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterInterface* input ) /Factory/;

QgsRasterBlock *block( int bandNo, const QgsRectangle & extent, int width, int height ) /Factory/;
@@ -13,7 +13,7 @@ class QgsRasterNuller : QgsRasterInterface
double max;
};

QgsRasterInterface * clone() const /Factory/;
virtual QgsRasterNuller * clone() const /Factory/;

int bandCount() const;

@@ -44,7 +44,7 @@ class QgsRasterProjector : QgsRasterInterface
/** \brief The destructor */
~QgsRasterProjector();

QgsRasterInterface *clone() const /Factory/;
virtual QgsRasterProjector *clone() const /Factory/;

int bandCount() const;

@@ -9,7 +9,7 @@ class QgsRasterRenderer : QgsRasterInterface
QgsRasterRenderer( QgsRasterInterface* input = 0, const QString& type = "" );
virtual ~QgsRasterRenderer();

virtual QgsRasterInterface * clone() const = 0 /Factory/;
virtual QgsRasterRenderer * clone() const = 0 /Factory/;

virtual int bandCount() const;

@@ -11,7 +11,7 @@ class QgsRasterResampleFilter : QgsRasterInterface
QgsRasterResampleFilter( QgsRasterInterface *input = 0 );
~QgsRasterResampleFilter();

QgsRasterInterface * clone() const /Factory/;
virtual QgsRasterResampleFilter * clone() const /Factory/;

int bandCount() const;

@@ -6,7 +6,7 @@ class QgsSingleBandColorDataRenderer: QgsRasterRenderer
public:
QgsSingleBandColorDataRenderer( QgsRasterDataProvider* provider, int band );
~QgsSingleBandColorDataRenderer();
QgsRasterInterface * clone() const /Factory/;
virtual QgsSingleBandColorDataRenderer * clone() const /Factory/;

static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider ) /Factory/;

@@ -12,7 +12,7 @@ class QgsSingleBandGrayRenderer: QgsRasterRenderer

QgsSingleBandGrayRenderer( QgsRasterDataProvider* provider, int grayBand );
~QgsSingleBandGrayRenderer();
QgsRasterInterface * clone() const /Factory/;
virtual QgsSingleBandGrayRenderer * clone() const /Factory/;

static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider ) /Factory/;

@@ -7,7 +7,7 @@ class QgsSingleBandPseudoColorRenderer: QgsRasterRenderer
/** Note: takes ownership of QgsRasterShader*/
QgsSingleBandPseudoColorRenderer( QgsRasterDataProvider* provider, int band, QgsRasterShader* shader /Transfer/ );
~QgsSingleBandPseudoColorRenderer();
QgsRasterInterface * clone() const /Factory/;
virtual QgsSingleBandPseudoColorRenderer * clone() const /Factory/;

static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider ) /Factory/;

@@ -59,7 +59,7 @@ class QgsCategorizedSymbolRendererV2 : QgsFeatureRendererV2

virtual QString dump() const;

virtual QgsFeatureRendererV2* clone() const /Factory/;
virtual QgsCategorizedSymbolRendererV2* clone() const /Factory/;

virtual void toSld( QDomDocument& doc, QDomElement &element ) const;

@@ -15,7 +15,7 @@ class QgsEllipseSymbolLayerV2 : QgsMarkerSymbolLayerV2
QString layerType() const;
void startRender( QgsSymbolV2RenderContext& context );
void stopRender( QgsSymbolV2RenderContext& context );
QgsSymbolLayerV2* clone() const /Factory/;
virtual QgsEllipseSymbolLayerV2* clone() const /Factory/;
QgsStringMap properties() const;

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

0 comments on commit cdf21b7

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