54 virtual bool writeXml( QDomElement &element, QDomDocument &document,
const QgsReadWriteContext &context )
const;
87 bool writeXml( QDomElement &element, QDomDocument &document,
const QgsReadWriteContext &context )
const;
206 QString labelSuffix()
const;
216 void setLabelSuffix(
const QString &suffix );
244 double mGridIntervalMinor = 1;
245 double mGridIntervalMajor = 5;
247 double mLabelInterval = 1;
249 QString mLabelSuffix;
252 std::unique_ptr< QgsNumericFormat > mNumericFormat;
254 std::unique_ptr< QgsLineSymbol > mGridMajorSymbol;
255 std::unique_ptr< QgsLineSymbol > mGridMinorSymbol;
286 bool writeXml( QDomElement &element, QDomDocument &document,
const QgsReadWriteContext &context )
const override;
305 virtual void renderContent(
QgsRenderContext &context,
const QRectF &plotArea );
319 void setSize( QSizeF size );
479 std::unique_ptr< QgsFillSymbol > mChartBackgroundSymbol;
480 std::unique_ptr< QgsFillSymbol > mChartBorderSymbol;
PlotAxisSuffixPlacement
Placement options for suffixes in the labels for axis of plots.
@ EveryLabel
Place suffix after every value label.
Base class for 2-dimensional plot/chart/graphs.
double yMaximum() const
Returns the maximum value of the y axis.
QgsPlotAxis & xAxis()
Returns a reference to the plot's x axis.
void setXMinimum(double minimum)
Sets the minimum value of the x axis.
const QgsPlotAxis & xAxis() const
Returns a reference to the plot's x axis.
Qgs2DPlot & operator=(const Qgs2DPlot &other)=delete
double xMaximum() const
Returns the maximum value of the x axis.
void setYMaximum(double maximum)
Sets the maximum value of the y axis.
double xMinimum() const
Returns the minimum value of the x axis.
QgsPlotAxis & yAxis()
Returns a reference to the plot's y axis.
double yMinimum() const
Returns the minimum value of the y axis.
Qgs2DPlot(const Qgs2DPlot &other)=delete
const QgsPlotAxis & yAxis() const
Returns a reference to the plot's y axis.
void setXMaximum(double maximum)
Sets the maximum value of the x axis.
void setYMinimum(double minimum)
Sets the minimum value of the y axis.
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
A line symbol type, for rendering LineString and MultiLineString geometries.
The QgsMargins class defines the four margins of a rectangle.
Encapsulates the properties of a plot axis.
double gridIntervalMinor() const
Returns the interval of minor grid lines for the axis.
double gridIntervalMajor() const
Returns the interval of major grid lines for the axis.
void setGridIntervalMajor(double interval)
Sets the interval of major grid lines for the axis.
void setGridIntervalMinor(double interval)
Sets the interval of minor grid lines for the axis.
void setLabelInterval(double interval)
Sets the interval of labels for the axis.
double labelInterval() const
Returns the interval of labels for the axis.
QgsPlotAxis & operator=(const QgsPlotAxis &other)=delete
QgsPlotAxis(const QgsPlotAxis &other)=delete
Manages default settings for plot objects.
Base class for plot/chart/graphs.
The class is used as a container of context for various read/write operations on other objects.
Contains information about the context of a rendering operation.
Container for all settings relating to text rendering.