|
QGIS API Documentation 3.99.0-Master (21b3aa880ba)
|
Convenience metadata class that uses static functions to create plots. More...
#include <qgsplotregistry.h>

Public Member Functions | |
| QgsPlotMetadata (const QString &type, const QString &visibleName, const QgsPlotCreateFunc &pfCreate, const QgsPlotDataGathererCreateFunc &pdgfCreate=nullptr, const QgsPlotWidgetCreateFunc &pwfCreate=nullptr) | |
| Constructor for QgsPlotMetadata with the specified class type. | |
| QgsPlotCreateFunc | createFunction () const |
| Returns the classes' plot creation function. | |
| QgsPlot * | createPlot () override |
| Creates a plot of this class. | |
| QgsVectorLayerAbstractPlotDataGatherer * | createPlotDataGatherer (QgsPlot *plot=nullptr) override |
| Creates a plot data gatherer of this class. | |
| QgsPlotDataGathererCreateFunc | createPlotDataGathererFunction () const |
| Returns the classes' plot data gatherer creation function. | |
| QgsPlotWidget * | createPlotWidget (QWidget *parent=nullptr) override |
| Creates a widget for configuring plot of this type. | |
| void | setWidgetCreateFunction (QgsPlotWidgetCreateFunc function) |
| Sets the classes' plot widget creation function. | |
| QgsPlotWidgetCreateFunc | widgetCreateFunction () const |
| Returns the classes' plot widget creation function. | |
| Public Member Functions inherited from QgsPlotAbstractMetadata | |
| QgsPlotAbstractMetadata (const QString &type, const QString &visibleName) | |
| Constructor for QgsPlotAbstractMetadata with the specified class type. | |
| virtual | ~QgsPlotAbstractMetadata ()=default |
| QString | type () const |
| Returns the unique type code for the plot class. | |
| QString | visibleName () const |
| Returns a translated, user visible name for the plot class. | |
Protected Attributes | |
| QgsPlotCreateFunc | mCreateFunc = nullptr |
| QgsPlotDataGathererCreateFunc | mDataGathererCreateFunc = nullptr |
| QgsPlotWidgetCreateFunc | mWidgetCreateFunc = nullptr |
Convenience metadata class that uses static functions to create plots.
Definition at line 111 of file qgsplotregistry.h.
|
inline |
Constructor for QgsPlotMetadata with the specified class type.
Definition at line 118 of file qgsplotregistry.h.
|
inline |
Returns the classes' plot creation function.
Definition at line 131 of file qgsplotregistry.h.
|
inlineoverridevirtual |
Creates a plot of this class.
Implements QgsPlotAbstractMetadata.
Definition at line 148 of file qgsplotregistry.h.
|
inlineoverridevirtual |
Creates a plot data gatherer of this class.
Implements QgsPlotAbstractMetadata.
Definition at line 149 of file qgsplotregistry.h.
|
inline |
Returns the classes' plot data gatherer creation function.
Definition at line 136 of file qgsplotregistry.h.
|
inlineoverridevirtual |
Creates a widget for configuring plot of this type.
Can return nullptr if there's no GUI registered.
Ownership of the widget is transferred to the caller.
Implements QgsPlotAbstractMetadata.
Definition at line 150 of file qgsplotregistry.h.
|
inline |
Sets the classes' plot widget creation function.
Definition at line 146 of file qgsplotregistry.h.
|
inline |
Returns the classes' plot widget creation function.
Definition at line 141 of file qgsplotregistry.h.
|
protected |
Definition at line 153 of file qgsplotregistry.h.
|
protected |
Definition at line 154 of file qgsplotregistry.h.
|
protected |
Definition at line 155 of file qgsplotregistry.h.