16#ifndef QGSPLOTREGISTRY_H
17#define QGSPLOTREGISTRY_H
52 QString
type()
const {
return mType; }
237 QMap<QString, QString>
plotTypes()
const;
245 void plotAdded(
const QString &type,
const QString &name );
259 QMap<QString, QgsPlotAbstractMetadata *> mMetadata;
QgsPlot * createPlot(const QString &type) const
Creates a new instance of a plot given the type.
QMap< QString, QString > plotTypes() const
Returns a map of available plot types to translated name.
bool removePlotType(const QString &type)
Removes a new a plot type from the registry.
QgsPlotRegistry(QObject *parent=nullptr)
Creates a new empty plot registry.
bool addPlotType(QgsPlotAbstractMetadata *metadata)
Registers a new plot type.
void plotAdded(const QString &type, const QString &name)
Emitted whenever a new plot type is added to the registry, with the specified type and visible name.
QgsPlotRegistry(const QgsPlotRegistry &rh)=delete
bool populate()
Populates the registry with standard plot types.
QgsPlotAbstractMetadata * plotMetadata(const QString &type) const
Returns the metadata for the specified plot type.
QgsPlotRegistry & operator=(const QgsPlotRegistry &rh)=delete
void plotAboutToBeRemoved(const QString &type)
Emitted whenever a plot type is about to be remove from the registry, with the specified type and vis...
Base class for plot/chart/graphs.
An abstract vector layer plot data gatherer base class.
std::function< QgsVectorLayerAbstractPlotDataGatherer *(QgsPlot *plot)> QgsPlotDataGathererCreateFunc
std::function< QgsPlot *()> QgsPlotCreateFunc
Plot creation function.
std::function< QgsPlotWidget *(QWidget *parent)> QgsPlotWidgetCreateFunc