Singleton registry of available paint effects.  
 More...
#include <qgspainteffectregistry.h>
Singleton registry of available paint effects. 
- Note
 - Added in version 2.9 
 
Definition at line 154 of file qgspainteffectregistry.h.
 
◆ QgsPaintEffectRegistry()
  
  
      
        
          | QgsPaintEffectRegistry::QgsPaintEffectRegistry  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ ~QgsPaintEffectRegistry()
  
  
      
        
          | QgsPaintEffectRegistry::~QgsPaintEffectRegistry  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ addEffectType()
Registers a new effect type. 
- Parameters
 - 
  
    | metadata | effect metadata. Ownership is transferred to the registry.  | 
  
   
- Returns
 - true if add was successful. 
 
Definition at line 73 of file qgspainteffectregistry.cpp.
 
 
◆ createEffect() [1/2]
Creates a new paint effect given the effect name and properties map. 
- Parameters
 - 
  
    | name | unique name representing paint effect class  | 
    | properties | encoded string map of effect properties  | 
  
   
- Returns
 - new paint effect of specified class, or nullptr if matching paint effect could not be created 
 
Definition at line 82 of file qgspainteffectregistry.cpp.
 
 
◆ createEffect() [2/2]
Creates a new paint effect given a DOM element storing paint effect properties. 
- Parameters
 - 
  
    | element | encoded DOM element of effect properties  | 
  
   
- Returns
 - new paint effect, or nullptr if matching paint effect could not be created 
 
Definition at line 91 of file qgspainteffectregistry.cpp.
 
 
◆ defaultStack()
Returns a new effect stack consisting of a sensible selection of default effects. 
All effects except the standard draw source effect are disabled, but are included so that they can be easily drawn just by enabling the effect. 
- Returns
 - default effects stack 
 
- See also
 - isDefaultStack() 
 
Definition at line 119 of file qgspainteffectregistry.cpp.
 
 
◆ effectMetadata()
Returns the metadata for a specific effect. 
- Parameters
 - 
  
    | name | unique string name for paint effect class  | 
  
   
- Returns
 - paint effect metadata if found, otherwise nullptr 
 
Definition at line 65 of file qgspainteffectregistry.cpp.
 
 
◆ effects()
◆ instance()
◆ isDefaultStack()
  
  
      
        
          | bool QgsPaintEffectRegistry::isDefaultStack  | 
          ( | 
          QgsPaintEffect *  | 
          effect | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Tests whether a paint effect matches the default effects stack. 
- Parameters
 - 
  
    | effect | paint effect to test  | 
  
   
- Returns
 - true if effect is default stack 
 
- Note
 - added in QGIS 2.12 
 
- See also
 - defaultStack() 
 
Definition at line 139 of file qgspainteffectregistry.cpp.
 
 
◆ mMetadata
The documentation for this class was generated from the following files: