|
QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
|
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 void | initFromPlot (const QgsPlot *plot) |
| Initializes properties of this plot from an existing plot, transferring all applicable settings. | |
| 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.
|
virtual |
Initializes properties of this plot from an existing plot, transferring all applicable settings.
Subclasses should override this method and call the base class implementation first.
Reimplemented in QgsBarChartPlot, QgsLineChartPlot, and QgsPieChartPlot.
Definition at line 101 of file qgsplot.cpp.
|
static |
Returns the plot property definitions.
Definition at line 95 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 56 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 45 of file qgsplot.cpp.
|
protected |