|
QGIS API Documentation 4.1.0-Master (3b8ef1f72a3)
|
A registry of known symbol converters. More...
#include <qgssymbolconverterregistry.h>

Public Member Functions | |
| QgsSymbolConverterRegistry (QObject *parent=nullptr) | |
| Creates a new empty symbol converter registry. | |
| ~QgsSymbolConverterRegistry () override | |
| bool | addConverter (QgsAbstractSymbolConverter *converter) |
| Adds a converter to the registry. | |
| QgsAbstractSymbolConverter * | converter (const QString &name) const |
Returns the converter with matching name, or nullptr if no matching converter is registered. | |
| QStringList | converterNames () const |
| Returns a list of the registered converter names (IDs). | |
| void | populate () |
| Adds the default symbol converters to the registry. | |
| bool | removeConverter (const QString &name) |
| Removes the converter with matching name. | |
A registry of known symbol converters.
QgsSymbolConverterRegistry is not usually directly created, but rather accessed through QgsApplication::symbolConverterRegistry().
Definition at line 41 of file qgssymbolconverterregistry.h.
| QgsSymbolConverterRegistry::QgsSymbolConverterRegistry | ( | QObject * | parent = nullptr | ) |
Creates a new empty symbol converter registry.
QgsSymbolConverterRegistry is not usually directly created, but rather accessed through QgsApplication::symbolConverterRegistry().
Definition at line 29 of file qgssymbolconverterregistry.cpp.
|
override |
Definition at line 33 of file qgssymbolconverterregistry.cpp.
| bool QgsSymbolConverterRegistry::addConverter | ( | QgsAbstractSymbolConverter * | converter | ) |
Adds a converter to the registry.
Ownership of the converter is transferred to the registry.
true if the converter was successfully added. Definition at line 47 of file qgssymbolconverterregistry.cpp.
| QgsAbstractSymbolConverter * QgsSymbolConverterRegistry::converter | ( | const QString & | name | ) | const |
Returns the converter with matching name, or nullptr if no matching converter is registered.
Definition at line 59 of file qgssymbolconverterregistry.cpp.
| QStringList QgsSymbolConverterRegistry::converterNames | ( | ) | const |
Returns a list of the registered converter names (IDs).
Definition at line 73 of file qgssymbolconverterregistry.cpp.
| void QgsSymbolConverterRegistry::populate | ( | ) |
Adds the default symbol converters to the registry.
Definition at line 38 of file qgssymbolconverterregistry.cpp.
| bool QgsSymbolConverterRegistry::removeConverter | ( | const QString & | name | ) |
Removes the converter with matching name.
The converter will be deleted.
true if the converter was successfully removed. Definition at line 64 of file qgssymbolconverterregistry.cpp.