mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -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
761 B
Plaintext
19 lines
761 B
Plaintext
class QgsHistogramDiagram: QgsDiagram
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgshistogramdiagram.h>
|
|
%End
|
|
public:
|
|
QgsHistogramDiagram();
|
|
~QgsHistogramDiagram();
|
|
|
|
virtual QgsHistogramDiagram* 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;
|
|
};
|