Skip to content
Permalink
Browse files

Update QgsRuleBasedRenderer::RenderJob

  • Loading branch information
pblottiere authored and nyalldawson committed Jun 16, 2020
1 parent 0ca4517 commit 21d5bf610fbc28d3092fd1f7c3faeb4d82dfd353
@@ -40,13 +40,15 @@ the rules and draws features with symbols from rules that match.
{
RenderJob( QgsRuleBasedRenderer::FeatureToRender &_ftr, QgsSymbol *_s );


QgsRuleBasedRenderer::FeatureToRender &ftr;
%Docstring
Feature to render
%End

QgsSymbol *symbol;

private:
RenderJob &operator=( const RenderJob & );
};

struct RenderLevel
@@ -67,21 +67,19 @@ class CORE_EXPORT QgsRuleBasedRenderer : public QgsFeatureRenderer
{
RenderJob( QgsRuleBasedRenderer::FeatureToRender &_ftr, QgsSymbol *_s )
: ftr( _ftr )
, symbol( _s )
, symbol( _s )
{}

QgsRuleBasedRenderer::RenderJob &operator=( const QgsRuleBasedRenderer::RenderJob &rj )
{
symbol = rj.symbol;
ftr = rj.ftr;
return *this;
}

//! Feature to render
QgsRuleBasedRenderer::FeatureToRender &ftr;

//! Symbol to render feature with (not owned by this object).
QgsSymbol *symbol = nullptr;

private:
#ifdef SIP_RUN
RenderJob &operator=( const RenderJob & );
#endif
};

/**

0 comments on commit 21d5bf6

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