Registry of available paint effects.
More...
#include <qgspainteffectregistry.h>
Registry of available paint effects.
QgsPaintEffectRegistry is not usually directly created, but rather accessed through QgsApplication::paintEffectRegistry().
- Since
- QGIS 2.9
Definition at line 175 of file qgspainteffectregistry.h.
◆ QgsPaintEffectRegistry() [1/2]
QgsPaintEffectRegistry::QgsPaintEffectRegistry |
( |
| ) |
|
◆ ~QgsPaintEffectRegistry()
QgsPaintEffectRegistry::~QgsPaintEffectRegistry |
( |
| ) |
|
◆ QgsPaintEffectRegistry() [2/2]
◆ addEffectType()
Registers a new effect type.
- Parameters
-
metadata | effect metadata. Ownership is transferred to the registry. |
- Returns
true
if add was successful.
Definition at line 68 of file qgspainteffectregistry.cpp.
◆ createEffect() [1/2]
QgsPaintEffect * QgsPaintEffectRegistry::createEffect |
( |
const QDomElement & |
element | ) |
const |
Creates a new paint effect given a DOM element storing paint effect properties.
- Parameters
-
element | encoded DOM element of effect properties |
- Returns
- new paint effect, or
nullptr
if matching paint effect could not be created
Definition at line 86 of file qgspainteffectregistry.cpp.
◆ createEffect() [2/2]
QgsPaintEffect * QgsPaintEffectRegistry::createEffect |
( |
const QString & |
name, |
|
|
const QVariantMap & |
properties = QVariantMap() |
|
) |
| const |
Creates a new paint effect given the effect name and properties map.
- Parameters
-
name | unique name representing paint effect class |
properties | encoded string map of effect properties |
- Returns
- new paint effect of specified class, or
nullptr
if matching paint effect could not be created
Definition at line 77 of file qgspainteffectregistry.cpp.
◆ defaultStack()
Returns a new effect stack consisting of a sensible selection of default effects.
All effects except the standard draw source effect are disabled, but are included so that they can be easily drawn just by enabling the effect.
- Returns
- default effects stack
- See also
- isDefaultStack()
Definition at line 114 of file qgspainteffectregistry.cpp.
◆ effectMetadata()
Returns the metadata for a specific effect.
- Parameters
-
name | unique string name for paint effect class |
- Returns
- paint effect metadata if found, otherwise
nullptr
Definition at line 60 of file qgspainteffectregistry.cpp.
◆ effects()
QStringList QgsPaintEffectRegistry::effects |
( |
| ) |
const |
◆ isDefaultStack()
bool QgsPaintEffectRegistry::isDefaultStack |
( |
QgsPaintEffect * |
effect | ) |
|
|
static |
Tests whether a paint effect matches the default effects stack.
- Parameters
-
effect | paint effect to test |
- Returns
true
if effect is default stack
- See also
- defaultStack()
- Since
- QGIS 2.12
Definition at line 134 of file qgspainteffectregistry.cpp.
◆ operator=()
The documentation for this class was generated from the following files: