57 virtual bool writeXml( QDomElement &element, QDomDocument &document,
QgsReadWriteContext &context )
const;
92 bool writeXml( QDomElement &element, QDomDocument &document,
QgsReadWriteContext &context )
const;
209 double mGridIntervalMinor = 1;
210 double mGridIntervalMajor = 5;
212 double mLabelInterval = 1;
214 std::unique_ptr< QgsNumericFormat > mNumericFormat;
216 std::unique_ptr< QgsLineSymbol > mGridMajorSymbol;
217 std::unique_ptr< QgsLineSymbol > mGridMinorSymbol;
250 bool writeXml( QDomElement &element, QDomDocument &document,
QgsReadWriteContext &context )
const override;
269 virtual void renderContent(
QgsRenderContext &context,
const QRectF &plotArea );
283 void setSize( QSizeF size );
444 std::unique_ptr< QgsFillSymbol > mChartBackgroundSymbol;
445 std::unique_ptr< QgsFillSymbol > mChartBorderSymbol;
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
Qgs2DPlot cannot be copied.
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
Qgs2DPlot cannot be copied.
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 cannot be copied.
QgsPlotAxis(const QgsPlotAxis &other)=delete
QgsPlotAxis cannot be copied.
Base class for plot/chart/graphs.
QgsPlot()=default
Constructor for QgsPlot.
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.