Skip to content
Permalink
Browse files

Add documentation for onlyActive parameter

  • Loading branch information
pblottiere committed Mar 29, 2018
1 parent 624e446 commit 810e531bfc487ddfd18e5649cc9d9fd09137ce1b
Showing with 14 additions and 2 deletions.
  1. +6 −1 python/core/symbology/qgsrulebasedrenderer.sip.in
  2. +8 −1 src/core/symbology/qgsrulebasedrenderer.h
@@ -326,7 +326,12 @@ Returns which legend keys match the feature

QgsRuleBasedRenderer::RuleList rulesForFeature( QgsFeature &feat, QgsRenderContext *context = 0, bool onlyActive = true );
%Docstring
tell which rules will be used to render the feature
Returns the list of rules used to render the feature in a specific
context.

:param feat: The feature for which rules have to be find
:param context: The rendering context
:param onlyActive: True to search for active rules only, false otherwise
%End

void stopRender( QgsRenderContext &context );
@@ -342,7 +342,14 @@ class CORE_EXPORT QgsRuleBasedRenderer : public QgsFeatureRenderer
*/
QSet< QString > legendKeysForFeature( QgsFeature &feat, QgsRenderContext *context = nullptr );

//! tell which rules will be used to render the feature
/**
* Returns the list of rules used to render the feature in a specific
* context.
*
* \param feat The feature for which rules have to be find
* \param context The rendering context
* \param onlyActive True to search for active rules only, false otherwise
*/
QgsRuleBasedRenderer::RuleList rulesForFeature( QgsFeature &feat, QgsRenderContext *context = nullptr, bool onlyActive = true );

/**

0 comments on commit 810e531

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