Skip to content

Commit

Permalink
Update QgsRuleBasedRenderer::RenderJob
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere authored and nyalldawson committed Jun 16, 2020
1 parent 0ca4517 commit 21d5bf6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Expand Up @@ -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
Expand Down
14 changes: 6 additions & 8 deletions src/core/symbology/qgsrulebasedrenderer.h
Expand Up @@ -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
};

/**
Expand Down

0 comments on commit 21d5bf6

Please sign in to comment.