Skip to content
Permalink
Browse files

Update QgsRuleBasedRenderer::RenderJob

  • Loading branch information
pblottiere authored and nyalldawson committed Jun 10, 2020
1 parent 71cf5af commit 01e879c5b07bccf58fb45bf858aec5aa8358b218
@@ -38,15 +38,17 @@ the rules and draws features with symbols from rules that match.

struct RenderJob
{
RenderJob( QgsRuleBasedRenderer::FeatureToRender &_ftr, QgsSymbol *_s );
RenderJob( QgsRuleBasedRenderer::FeatureToRender &_ftr, QgsSymbol *_s );


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

QgsSymbol *symbol;
QgsSymbol *symbol;

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

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

QgsRuleBasedRenderer::RenderJob &operator=( const QgsRuleBasedRenderer::RenderJob &rj )
{
symbol = rj.symbol;
ftr = rj.ftr;
return *this;
}
//! Feature to render
QgsRuleBasedRenderer::FeatureToRender &ftr;

//! Feature to render
QgsRuleBasedRenderer::FeatureToRender &ftr;
//! Symbol to render feature with (not owned by this object).
QgsSymbol *symbol = nullptr;

//! 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 01e879c

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