QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
|
Convenience metadata class that uses static functions to create an effect and its widget. More...
#include <qgspainteffectregistry.h>
Public Member Functions | |
QgsPaintEffectMetadata (const QString &name, const QString &visibleName, QgsPaintEffectCreateFunc pfCreate, QgsPaintEffectWidgetFunc pfWidget=nullptr) | |
Create effect metadata from static functions. More... | |
QgsPaintEffectCreateFunc | createFunction () const |
Returns the paint effect creation function for the paint effect class. More... | |
QgsPaintEffect * | createPaintEffect (const QVariantMap &map) override |
Creates a new paint effect of the metadata's effect class. More... | |
QgsPaintEffectWidget * | createWidget () override |
Creates a new paint effect properties widget for the metadata's effect class. More... | |
void | setWidgetFunction (QgsPaintEffectWidgetFunc f) |
Sets the paint effect properties widget creation function for the paint effect class. More... | |
QgsPaintEffectWidgetFunc | widgetFunction () const |
Returns the paint effect properties widget creation function for the paint effect class. More... | |
Public Member Functions inherited from QgsPaintEffectAbstractMetadata | |
QgsPaintEffectAbstractMetadata (const QString &name, const QString &visibleName) | |
Construct a new QgsPaintEffectAbstractMetadata. More... | |
virtual | ~QgsPaintEffectAbstractMetadata ()=default |
QString | name () const |
Returns the unique string representing the paint effect class. More... | |
QString | visibleName () const |
Returns the user visible string representing the paint effect class. More... | |
Protected Attributes | |
QgsPaintEffectCreateFunc | mCreateFunc |
QgsPaintEffectWidgetFunc | mWidgetFunc |
Protected Attributes inherited from QgsPaintEffectAbstractMetadata | |
QString | mName |
QString | mVisibleName |
Convenience metadata class that uses static functions to create an effect and its widget.
Definition at line 98 of file qgspainteffectregistry.h.
|
inline |
Create effect metadata from static functions.
name | unique string representing paint effect class |
visibleName | user visible name representing paint effect class |
pfCreate | paint effect creation function |
pfWidget | widget creation function |
Definition at line 111 of file qgspainteffectregistry.h.
|
inline |
Returns the paint effect creation function for the paint effect class.
Definition at line 124 of file qgspainteffectregistry.h.
|
inlineoverridevirtual |
Creates a new paint effect of the metadata's effect class.
map | string map of effect properties |
Implements QgsPaintEffectAbstractMetadata.
Definition at line 149 of file qgspainteffectregistry.h.
|
inlineoverridevirtual |
Creates a new paint effect properties widget for the metadata's effect class.
Reimplemented from QgsPaintEffectAbstractMetadata.
Definition at line 157 of file qgspainteffectregistry.h.
|
inline |
Sets the paint effect properties widget creation function for the paint effect class.
f | widget creation function |
Definition at line 140 of file qgspainteffectregistry.h.
|
inline |
Returns the paint effect properties widget creation function for the paint effect class.
Definition at line 132 of file qgspainteffectregistry.h.
|
protected |
Definition at line 160 of file qgspainteffectregistry.h.
|
protected |
Definition at line 161 of file qgspainteffectregistry.h.