|
QGIS API Documentation 3.99.0-Master (2fe06baccd8)
|
Base class for plot/chart/graphs. More...
#include <qgsplot.h>

Public Types | |
| enum class | DataDefinedProperty : int { MarginLeft , MarginTop , MarginRight , MarginBottom , XAxisMajorInterval , XAxisMinorInterval , XAxisLabelInterval , YAxisMajorInterval , YAxisMinorInterval , YAxisLabelInterval , XAxisMinimum , XAxisMaximum , YAxisMinimum , YAxisMaximum } |
| Data defined properties for different plot types. More... | |
Public Member Functions | |
| 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. | |
| virtual bool | readXml (const QDomElement &element, const QgsReadWriteContext &context) |
| Reads the plot's properties from an XML element. | |
| 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. | |
| virtual bool | writeXml (QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const |
| Writes the plot's properties into an XML element. | |
Static Public Member Functions | |
| static const QgsPropertiesDefinition & | propertyDefinitions () |
| Returns the plot property definitions. | |
Protected Attributes | |
| QgsPropertyCollection | mDataDefinedProperties |
Base class for plot/chart/graphs.
|
strong |
Data defined properties for different plot types.
|
default |
|
virtualdefault |
|
inline |
Returns a reference to the plot's property collection, used for data defined overrides.
|
inline |
Returns a reference to the plot's property collection, used for data defined overrides.
|
static |
Returns the plot property definitions.
Definition at line 84 of file qgsplot.cpp.
|
virtual |
Reads the plot's properties from an XML element.
Reimplemented in Qgs2DPlot, Qgs2DXyPlot, QgsBarChartPlot, QgsLineChartPlot, and QgsPieChartPlot.
Definition at line 52 of file qgsplot.cpp.
|
inline |
Sets the plot's property collection, used for data defined overrides.
| collection | property collection. Existing properties will be replaced. |
|
inline |
Sets a data defined property for the plot.
Any existing property with the same key will be overwritten.
|
inlinevirtual |
Returns the plot's type.
Reimplemented in QgsBarChartPlot, QgsLineChartPlot, and QgsPieChartPlot.
|
virtual |
Writes the plot's properties into an XML element.
Reimplemented in Qgs2DPlot, Qgs2DXyPlot, QgsBarChartPlot, QgsLineChartPlot, and QgsPieChartPlot.
Definition at line 41 of file qgsplot.cpp.
|
protected |