|
| | Qgs2DXyPlot () |
| | Constructor for Qgs2DXyPlot.
|
| | Qgs2DXyPlot (const Qgs2DXyPlot &other)=delete |
| | ~Qgs2DXyPlot () override |
| void | calculateOptimisedIntervals (QgsRenderContext &context, QgsPlotRenderContext &plotContext) |
| | Automatically sets the grid and label intervals to optimal values for display in the given render context.
|
| QgsFillSymbol * | chartBackgroundSymbol () |
| | Returns the fill symbol used to render the background of the chart.
|
| QgsFillSymbol * | chartBorderSymbol () |
| | Returns the symbol used to render the border of the chart.
|
| QRectF | interiorPlotArea (QgsRenderContext &context, QgsPlotRenderContext &plotContext) const override |
| | Returns the area of the plot which corresponds to the actual plot content (excluding all titles and other components which sit outside the plot area).
|
| Qgs2DXyPlot & | operator= (const Qgs2DXyPlot &other)=delete |
| bool | readXml (const QDomElement &element, const QgsReadWriteContext &context) override |
| | Reads the plot's properties from an XML element.
|
| void | render (QgsRenderContext &context, QgsPlotRenderContext &plotContext, const QgsPlotData &plotData=QgsPlotData()) override |
| | Renders the plot.
|
| void | setChartBackgroundSymbol (QgsFillSymbol *symbol) |
| | Sets the fill symbol used to render the background of the chart.
|
| void | setChartBorderSymbol (QgsFillSymbol *symbol) |
| | Sets the symbol used to render the border of the chart.
|
| void | setXMaximum (double maximum) |
| | Sets the maximum value of the x axis.
|
| void | setXMinimum (double minimum) |
| | Sets the minimum value of the x axis.
|
| void | setYMaximum (double maximum) |
| | Sets the maximum value of the y axis.
|
| void | setYMinimum (double minimum) |
| | Sets the minimum value of the y axis.
|
| bool | writeXml (QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const override |
| | Writes the plot's properties into an XML element.
|
| QgsPlotAxis & | xAxis () |
| | Returns a reference to the plot's x axis.
|
| const QgsPlotAxis & | xAxis () const |
| | Returns a reference to the plot's x axis.
|
| double | xMaximum () const |
| | Returns the maximum value of the x axis.
|
| double | xMinimum () const |
| | Returns the minimum value of the x axis.
|
| QgsPlotAxis & | yAxis () |
| | Returns a reference to the plot's y axis.
|
| const QgsPlotAxis & | yAxis () const |
| | Returns a reference to the plot's y axis.
|
| double | yMaximum () const |
| | Returns the maximum value of the y axis.
|
| double | yMinimum () const |
| | Returns the minimum value of the y axis.
|
| | Qgs2DPlot () |
| | Constructor for Qgs2DPlot.
|
| | Qgs2DPlot (const Qgs2DPlot &other)=delete |
| | ~Qgs2DPlot () override |
| const QgsMargins & | margins () const |
| | Returns the margins of the plot area (in millimeters).
|
| Qgs2DPlot & | operator= (const Qgs2DPlot &other)=delete |
| virtual void | renderContent (QgsRenderContext &context, QgsPlotRenderContext &plotContext, const QRectF &plotArea, const QgsPlotData &plotData=QgsPlotData()) |
| | Renders the plot content.
|
| void | setMargins (const QgsMargins &margins) |
| | Sets the margins of the plot area (in millimeters).
|
| void | setSize (QSizeF size) |
| | Sets the overall size of the plot (including titles and over components which sit outside the plot area).
|
| QSizeF | size () const |
| | Returns the overall size of the plot (in millimeters) (including titles and other components which sit outside the plot area).
|
| | QgsPlot ()=default |
| virtual | ~QgsPlot () |
| QgsPropertyCollection & | dataDefinedProperties () |
| | Returns a reference to the plot's property collection, used for data defined overrides.
|
| const QgsPropertyCollection & | dataDefinedProperties () const |
| | Returns a reference to the plot's property collection, used for data defined overrides.
|
| void | setDataDefinedProperties (const QgsPropertyCollection &collection) |
| | Sets the plot's property collection, used for data defined overrides.
|
| void | setDataDefinedProperty (DataDefinedProperty key, const QgsProperty &property) |
| | Sets a data defined property for the plot.
|
| virtual QString | type () const |
| | Returns the plot's type.
|
Base class for 2-dimensional plot/chart/graphs with an X and Y axes.
The base class is responsible for rendering the axis, grid lines and chart area. Subclasses can implement the renderContent() method to render their actual plot content.
- Warning
- This class is not considered stable API, and may change in future!
- Since
- QGIS 3.26
Definition at line 658 of file qgsplot.h.