QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
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 QVariantMap &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 98 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 111 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 124 of file qgspainteffectregistry.h.

◆ createPaintEffect()

QgsPaintEffect * QgsPaintEffectMetadata::createPaintEffect ( const QVariantMap &  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 149 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 157 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 140 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 132 of file qgspainteffectregistry.h.

Member Data Documentation

◆ mCreateFunc

QgsPaintEffectCreateFunc QgsPaintEffectMetadata::mCreateFunc
protected

Definition at line 160 of file qgspainteffectregistry.h.

◆ mWidgetFunc

QgsPaintEffectWidgetFunc QgsPaintEffectMetadata::mWidgetFunc
protected

Definition at line 161 of file qgspainteffectregistry.h.


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