mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
A new "legend" tab has been added to diagram properties, allowing both the existing attribute legend and a new size legend to be enabled/disabled. The size legend has a configurable marker symbol. Also includes unit tests for both diagram attribute and size legends. Sponsored by ADUGA
19 lines
731 B
Plaintext
19 lines
731 B
Plaintext
class QgsPieDiagram: QgsDiagram
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgspiediagram.h>
|
|
%End
|
|
public:
|
|
QgsPieDiagram();
|
|
~QgsPieDiagram();
|
|
|
|
virtual QgsPieDiagram* clone() const /Factory/;
|
|
|
|
void renderDiagram( const QgsFeature& feature, QgsRenderContext& c, const QgsDiagramSettings& s, QPointF position );
|
|
|
|
QSizeF diagramSize( const QgsAttributes& attributes, const QgsRenderContext& c, const QgsDiagramSettings& s );
|
|
QSizeF diagramSize( const QgsFeature& feature, const QgsRenderContext& c, const QgsDiagramSettings& s, const QgsDiagramInterpolationSettings& is );
|
|
double legendSize( double value, const QgsDiagramSettings& s, const QgsDiagramInterpolationSettings& is ) const;
|
|
QString diagramName() const;
|
|
};
|