QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
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... | |
virtual QgsPaintEffect * | createPaintEffect (const QgsStringMap &map) override |
Creates a new paint effect of the metadata's effect class. More... | |
virtual 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 () |
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 87 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 99 of file qgspainteffectregistry.h.
|
inline |
Returns the paint effect creation function for the paint effect class.
Definition at line 111 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 133 of file qgspainteffectregistry.h.
|
inlineoverridevirtual |
Creates a new paint effect properties widget for the metadata's effect class.
Reimplemented from QgsPaintEffectAbstractMetadata.
Definition at line 140 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 125 of file qgspainteffectregistry.h.
|
inline |
Returns the paint effect properties widget creation function for the paint effect class.
Definition at line 118 of file qgspainteffectregistry.h.
|
protected |
Definition at line 143 of file qgspainteffectregistry.h.
|
protected |
Definition at line 144 of file qgspainteffectregistry.h.