|
QGIS API Documentation 3.99.0-Master (26c88405ac0)
|
Registry of available plot types. More...
#include <qgsplotregistry.h>

Signals | |
| void | plotAboutToBeRemoved (const QString &type) |
| Emitted whenever a plot type is about to be remove from the registry, with the specified type and visible name. | |
| 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. | |
Public Member Functions | |
| QgsPlotRegistry (const QgsPlotRegistry &rh)=delete | |
| QgsPlotRegistry (QObject *parent=nullptr) | |
| Creates a new empty plot registry. | |
| ~QgsPlotRegistry () override | |
| bool | addPlotType (QgsPlotAbstractMetadata *metadata) |
| Registers a new plot type. | |
| QgsPlot * | createPlot (const QString &type) const |
| Creates a new instance of a plot given the type. | |
| QgsPlotRegistry & | operator= (const QgsPlotRegistry &rh)=delete |
| QgsPlotAbstractMetadata * | plotMetadata (const QString &type) const |
| Returns the metadata for the specified plot type. | |
| QMap< QString, QString > | plotTypes () const |
| Returns a map of available plot types to translated name. | |
| bool | populate () |
| Populates the registry with standard plot types. | |
| bool | removePlotType (const QString &type) |
| Removes a new a plot type from the registry. | |
Registry of available plot types.
QgsPlotRegistry is not usually directly created, but rather accessed through QgsApplication::plotRegistry().
Definition at line 171 of file qgsplotregistry.h.
| QgsPlotRegistry::QgsPlotRegistry | ( | QObject * | parent = nullptr | ) |
Creates a new empty plot registry.
QgsPlotRegistry is not usually directly created, but rather accessed through QgsApplication::plotRegistry().
Definition at line 27 of file qgsplotregistry.cpp.
|
override |
Definition at line 32 of file qgsplotregistry.cpp.
|
delete |
| bool QgsPlotRegistry::addPlotType | ( | QgsPlotAbstractMetadata * | metadata | ) |
Registers a new plot type.
Definition at line 54 of file qgsplotregistry.cpp.
| QgsPlot * QgsPlotRegistry::createPlot | ( | const QString & | type | ) | const |
Creates a new instance of a plot given the type.
Definition at line 74 of file qgsplotregistry.cpp.
|
delete |
|
signal |
Emitted whenever a plot type is about to be remove from the registry, with the specified type and visible name.
|
signal |
Emitted whenever a new plot type is added to the registry, with the specified type and visible name.
| QgsPlotAbstractMetadata * QgsPlotRegistry::plotMetadata | ( | const QString & | type | ) | const |
Returns the metadata for the specified plot type.
Returns nullptr if a corresponding type was not found in the registry.
Definition at line 49 of file qgsplotregistry.cpp.
| QMap< QString, QString > QgsPlotRegistry::plotTypes | ( | ) | const |
Returns a map of available plot types to translated name.
Definition at line 82 of file qgsplotregistry.cpp.
| bool QgsPlotRegistry::populate | ( | ) |
Populates the registry with standard plot types.
If called on a non-empty registry then this will have no effect and will return false.
Definition at line 37 of file qgsplotregistry.cpp.
| bool QgsPlotRegistry::removePlotType | ( | const QString & | type | ) |
Removes a new a plot type from the registry.
Definition at line 64 of file qgsplotregistry.cpp.