|
QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
|
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 109 of file qgsplotregistry.h.
|
inline |
Constructor for QgsPlotMetadata with the specified class type.
Definition at line 115 of file qgsplotregistry.h.
|
inline |
Returns the classes' plot creation function.
Definition at line 127 of file qgsplotregistry.h.
|
inlineoverridevirtual |
Creates a plot of this class.
Implements QgsPlotAbstractMetadata.
Definition at line 144 of file qgsplotregistry.h.
|
inlineoverridevirtual |
Creates a plot data gatherer of this class.
Implements QgsPlotAbstractMetadata.
Definition at line 145 of file qgsplotregistry.h.
|
inline |
Returns the classes' plot data gatherer creation function.
Definition at line 132 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 146 of file qgsplotregistry.h.
|
inline |
Sets the classes' plot widget creation function.
Definition at line 142 of file qgsplotregistry.h.
|
inline |
Returns the classes' plot widget creation function.
Definition at line 137 of file qgsplotregistry.h.
|
protected |
Definition at line 149 of file qgsplotregistry.h.
|
protected |
Definition at line 150 of file qgsplotregistry.h.
|
protected |
Definition at line 151 of file qgsplotregistry.h.