QGIS API Documentation  3.14.0-Pi (9f7028fd23)
Public Member Functions | Protected Attributes | List of all members
QgsPaintEffectMetadata Class Reference

Convenience metadata class that uses static functions to create an effect and its widget. More...

#include <qgspainteffectregistry.h>

Inheritance diagram for QgsPaintEffectMetadata:
Inheritance graph
[legend]

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...
 
QgsPaintEffectcreatePaintEffect (const QgsStringMap &map) override
 Creates a new paint effect of the metadata's effect class. More...
 
QgsPaintEffectWidgetcreateWidget () 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...
 

Protected Attributes

QgsPaintEffectCreateFunc mCreateFunc
 
QgsPaintEffectWidgetFunc mWidgetFunc
 

Detailed Description

Convenience metadata class that uses static functions to create an effect and its widget.

Note
not available in Python bindings
Since
QGIS 2.9

Definition at line 97 of file qgspainteffectregistry.h.

Constructor & Destructor Documentation

◆ QgsPaintEffectMetadata()

QgsPaintEffectMetadata::QgsPaintEffectMetadata ( const QString &  name,
const QString &  visibleName,
QgsPaintEffectCreateFunc  pfCreate,
QgsPaintEffectWidgetFunc  pfWidget = nullptr 
)
inline

Create effect metadata from static functions.

Parameters
nameunique string representing paint effect class
visibleNameuser visible name representing paint effect class
pfCreatepaint effect creation function
pfWidgetwidget creation function
Note
not available in Python bindings

Definition at line 110 of file qgspainteffectregistry.h.

Member Function Documentation

◆ createFunction()

QgsPaintEffectCreateFunc QgsPaintEffectMetadata::createFunction ( ) const
inline

Returns the paint effect creation function for the paint effect class.

Returns
creation function
Note
not available in Python bindings

Definition at line 123 of file qgspainteffectregistry.h.

◆ createPaintEffect()

QgsPaintEffect* QgsPaintEffectMetadata::createPaintEffect ( const QgsStringMap map)
inlineoverridevirtual

Creates a new paint effect of the metadata's effect class.

Parameters
mapstring map of effect properties
Returns
new paint effect
Note
not available in Python bindings
See also
createWidget

Implements QgsPaintEffectAbstractMetadata.

Definition at line 148 of file qgspainteffectregistry.h.

◆ createWidget()

QgsPaintEffectWidget* QgsPaintEffectMetadata::createWidget ( )
inlineoverridevirtual

Creates a new paint effect properties widget for the metadata's effect class.

Returns
effect properties widget
Note
not available in Python bindings
See also
createWidget

Reimplemented from QgsPaintEffectAbstractMetadata.

Definition at line 156 of file qgspainteffectregistry.h.

◆ setWidgetFunction()

void QgsPaintEffectMetadata::setWidgetFunction ( QgsPaintEffectWidgetFunc  f)
inline

Sets the paint effect properties widget creation function for the paint effect class.

Parameters
fwidget creation function
Note
not available in Python bindings
See also
widgetFunction

Definition at line 139 of file qgspainteffectregistry.h.

◆ widgetFunction()

QgsPaintEffectWidgetFunc QgsPaintEffectMetadata::widgetFunction ( ) const
inline

Returns the paint effect properties widget creation function for the paint effect class.

Returns
widget creation function
Note
not available in Python bindings
See also
setWidgetFunction

Definition at line 131 of file qgspainteffectregistry.h.

Member Data Documentation

◆ mCreateFunc

QgsPaintEffectCreateFunc QgsPaintEffectMetadata::mCreateFunc
protected

Definition at line 159 of file qgspainteffectregistry.h.

◆ mWidgetFunc

QgsPaintEffectWidgetFunc QgsPaintEffectMetadata::mWidgetFunc
protected

Definition at line 160 of file qgspainteffectregistry.h.


The documentation for this class was generated from the following file: