17#ifndef QGSPIECHARTPLOT_H
18#define QGSPIECHARTPLOT_H
29using namespace Qt::StringLiterals;
48 QString
type()
const override {
return u
"pie"_s; }
126 static std::unique_ptr<QgsPieChartPlot> create();
138 std::vector<std::unique_ptr<QgsFillSymbol>> mFillSymbols;
139 std::vector<std::unique_ptr<QgsColorRamp>> mColorRamps;
141 std::unique_ptr< QgsNumericFormat > mNumericFormat;
PieChartLabelType
Pie chart label types.
@ NoLabels
Labels are not drawn.
bool writeXml(QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const override
Writes the plot's properties into an XML element.
virtual void renderContent(QgsRenderContext &context, QgsPlotRenderContext &plotContext, const QRectF &plotArea, const QgsPlotData &plotData=QgsPlotData())
Renders the plot content.
Qgs2DPlot()
Constructor for Qgs2DPlot.
bool readXml(const QDomElement &element, const QgsReadWriteContext &context) override
Reads the plot's properties from an XML element.
Abstract base class for color ramps.
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
QgsTextFormat textFormat() const
Returns the text format used for the pie chart labels.
~QgsPieChartPlot() override=default
QgsNumericFormat * numericFormat() const
Returns the numeric format used for the pie chart labels.
Qgis::PieChartLabelType labelType() const
Returns the pie chart label type.
int fillSymbolCount() const
Returns the fill symbols list count.
int colorRampCount() const
Returns the color ramps list count.
QString type() const override
Returns the plot's type.
Encapsulates one or more plot series.
Contains information about the context of a plot rendering operation.
Base class for plot/chart/graphs.
virtual void initFromPlot(const QgsPlot *plot)
Initializes properties of this plot from an existing plot, transferring all applicable settings.
A container for the context for various read/write operations on objects.
Contains information about the context of a rendering operation.
Container for all settings relating to text rendering.
An abstract vector layer plot data gatherer base class.