Skip to content

Commit 85719e8

Browse files
committed
API documentation
1 parent 7e9aeda commit 85719e8

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

python/core/symbology/qgsgraduatedsymbolrenderer.sip.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ Will return null if the functionality is disabled.
442442

443443
QgsSymbol *symbolForValue( double value ) const;
444444
%Docstring
445-
attribute index (derived from attribute name in startRender)
445+
Get the symbol which is used to represent ``value``.
446446
%End
447447

448448
QString legendKeyForValue( double value ) const;

python/core/symbology/qgsrenderer.sip.in

+6
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,12 @@ implementation does not use subrenderers and will always return null.
482482
int layer,
483483
bool selected,
484484
bool drawVertexMarker );
485+
%Docstring
486+
Render the ``feature`` with the ``symbol`` using ``context``.
487+
Use ``layer`` to specify the symbol layer, ``selected`` to
488+
specify if it should be rendered as selected and ``drawVertexMarker``
489+
to specify if vertex markers should be rendered.
490+
%End
485491

486492
void renderVertexMarker( QPointF pt, QgsRenderContext &context );
487493
%Docstring

src/core/symbology/qgsgraduatedsymbolrenderer.h

+3
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,9 @@ class CORE_EXPORT QgsGraduatedSymbolRenderer : public QgsFeatureRenderer
408408

409409
std::unique_ptr<QgsDataDefinedSizeLegend> mDataDefinedSizeLegend;
410410

411+
/**
412+
* Get the symbol which is used to represent \a value.
413+
*/
411414
QgsSymbol *symbolForValue( double value ) const;
412415

413416
/**

src/core/symbology/qgsrenderer.h

+6
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,12 @@ class CORE_EXPORT QgsFeatureRenderer
462462
protected:
463463
QgsFeatureRenderer( const QString &type );
464464

465+
/**
466+
* Render the \a feature with the \a symbol using \a context.
467+
* Use \a layer to specify the symbol layer, \a selected to
468+
* specify if it should be rendered as selected and \a drawVertexMarker
469+
* to specify if vertex markers should be rendered.
470+
*/
465471
void renderFeatureWithSymbol( const QgsFeature &feature,
466472
QgsSymbol *symbol,
467473
QgsRenderContext &context,

0 commit comments

Comments
 (0)