QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
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.
 
QgsPaintEffectCreateFunc createFunction () const
 Returns the paint effect creation function for the paint effect class.
 
QgsPaintEffectcreatePaintEffect (const QVariantMap &map) override
 Creates a new paint effect of the metadata's effect class.
 
QgsPaintEffectWidgetcreateWidget () override
 Creates a new paint effect properties widget for the metadata's effect class.
 
void setWidgetFunction (QgsPaintEffectWidgetFunc f)
 Sets the paint effect properties widget creation function for the paint effect class.
 
QgsPaintEffectWidgetFunc widgetFunction () const
 Returns the paint effect properties widget creation function for the paint effect class.
 

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

Definition at line 96 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 109 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 122 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 147 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 155 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 138 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 130 of file qgspainteffectregistry.h.

Member Data Documentation

◆ mCreateFunc

QgsPaintEffectCreateFunc QgsPaintEffectMetadata::mCreateFunc
protected

Definition at line 158 of file qgspainteffectregistry.h.

◆ mWidgetFunc

QgsPaintEffectWidgetFunc QgsPaintEffectMetadata::mWidgetFunc
protected

Definition at line 159 of file qgspainteffectregistry.h.


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