QGIS API Documentation
3.6.0-Noosa (5873452)
|
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 QgsStringMap &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 97 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 110 of file qgspainteffectregistry.h.
|
inline |
Returns the paint effect creation function for the paint effect class.
Definition at line 123 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 148 of file qgspainteffectregistry.h.
|
inlineoverridevirtual |
Creates a new paint effect properties widget for the metadata's effect class.
Reimplemented from QgsPaintEffectAbstractMetadata.
Definition at line 156 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 139 of file qgspainteffectregistry.h.
|
inline |
Returns the paint effect properties widget creation function for the paint effect class.
Definition at line 131 of file qgspainteffectregistry.h.
|
protected |
Definition at line 159 of file qgspainteffectregistry.h.
|
protected |
Definition at line 160 of file qgspainteffectregistry.h.