File tree 4 files changed +16
-1
lines changed
4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ Will return null if the functionality is disabled.
442
442
443
443
QgsSymbol *symbolForValue( double value ) const;
444
444
%Docstring
445
- attribute index (derived from attribute name in startRender)
445
+ Get the symbol which is used to represent ``value``.
446
446
%End
447
447
448
448
QString legendKeyForValue( double value ) const;
Original file line number Diff line number Diff line change @@ -482,6 +482,12 @@ implementation does not use subrenderers and will always return null.
482
482
int layer,
483
483
bool selected,
484
484
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
485
491
486
492
void renderVertexMarker( QPointF pt, QgsRenderContext &context );
487
493
%Docstring
Original file line number Diff line number Diff line change @@ -408,6 +408,9 @@ class CORE_EXPORT QgsGraduatedSymbolRenderer : public QgsFeatureRenderer
408
408
409
409
std::unique_ptr<QgsDataDefinedSizeLegend> mDataDefinedSizeLegend ;
410
410
411
+ /* *
412
+ * Get the symbol which is used to represent \a value.
413
+ */
411
414
QgsSymbol *symbolForValue ( double value ) const ;
412
415
413
416
/* *
Original file line number Diff line number Diff line change @@ -462,6 +462,12 @@ class CORE_EXPORT QgsFeatureRenderer
462
462
protected:
463
463
QgsFeatureRenderer ( const QString &type );
464
464
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
+ */
465
471
void renderFeatureWithSymbol ( const QgsFeature &feature,
466
472
QgsSymbol *symbol,
467
473
QgsRenderContext &context,
You can’t perform that action at this time.
0 commit comments